Skip to content

Commit d5f5b22

Browse files
author
thyttan
committed
Merge remote-tracking branch 'upstream/master' into spotrem
2 parents 5ed691b + bc375c5 commit d5f5b22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2013
-565
lines changed

apps/banglexercise/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
0.03: Add software back button on main menu
66
0.04: Minor code improvements
77
0.05: Minor code improvements
8+
0.06: Fix grammar, add international language support

apps/banglexercise/app.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let exerciseType = {
2424
// add new exercises here:
2525
const exerciseTypes = [{
2626
"id": "pushup",
27-
"name": "push ups",
27+
"name": /*LANG*/"Push-ups",
2828
"useYaxis": true,
2929
"useZaxis": false,
3030
"threshold": 2500,
@@ -34,7 +34,7 @@ const exerciseTypes = [{
3434
},
3535
{
3636
"id": "curl",
37-
"name": "curls",
37+
"name": /*LANG*/"Curls",
3838
"useYaxis": true,
3939
"useZaxis": false,
4040
"threshold": 2500,
@@ -44,7 +44,7 @@ const exerciseTypes = [{
4444
},
4545
{
4646
"id": "situp",
47-
"name": "sit ups",
47+
"name": /*LANG*/"Sit-ups",
4848
"useYaxis": false,
4949
"useZaxis": true,
5050
"threshold": 3500,
@@ -88,7 +88,7 @@ function showMainMenu() {
8888
menu["--------"] = {
8989
value: ""
9090
};
91-
menu["Last:"] = {
91+
menu[/*LANG*/"Last:"] = {
9292
value: exerciseCounter + " " + exerciseType.name
9393
};
9494
}
@@ -189,10 +189,10 @@ function isValidExercise(slope, t) {
189189
if (p1 > 0 && p2 < 0) {
190190
if (lastZeroPassCameFromPositive == false) {
191191
lastExerciseHalfCompletionTime = t;
192-
console.log(t, exerciseName + " half complete...");
192+
console.log(t, exerciseName + /*LANG*/" half complete...");
193193

194194
layout.progress.label = "½";
195-
layout.recording.label = "TRAINING";
195+
layout.recording.label = /*LANG*/"TRAINING";
196196
g.clear();
197197
layout.render();
198198
}
@@ -204,7 +204,7 @@ function isValidExercise(slope, t) {
204204
if (lastZeroPassCameFromPositive == true) {
205205
const tDiffLastExercise = t - lastExerciseCompletionTime;
206206
const tDiffStart = t - tStart;
207-
console.log(t, exerciseName + " maybe complete?", Math.round(tDiffLastExercise), Math.round(tDiffStart));
207+
console.log(t, exerciseName + /*LANG*/" maybe complete?", Math.round(tDiffLastExercise), Math.round(tDiffStart));
208208

209209
// check minimal time between exercises:
210210
if ((lastExerciseCompletionTime <= 0 && tDiffStart >= thresholdMinTime) || tDiffLastExercise >= thresholdMinTime) {
@@ -222,34 +222,34 @@ function isValidExercise(slope, t) {
222222

223223
layout.count.label = exerciseCounter;
224224
layout.progress.label = "";
225-
layout.recording.label = "Good!";
225+
layout.recording.label =/*LANG*/"Good!";
226226

227227
g.clear();
228228
layout.render();
229229

230230
if (settings.buzz)
231231
Bangle.buzz(200, 0.5);
232232
} else {
233-
console.log(t, exerciseName + " too quick for duration time threshold!"); // thresholdMinDurationTime
233+
console.log(t, exerciseName + /*LANG*/" too quick for duration time threshold!"); // thresholdMinDurationTime
234234
lastExerciseCompletionTime = t;
235235

236-
layout.recording.label = "Go slower!";
236+
layout.recording.label = /*LANG*/"Go slower!";
237237
g.clear();
238238
layout.render();
239239
}
240240
} else {
241-
console.log(t, exerciseName + " top slow for time threshold!"); // thresholdMaxTime
241+
console.log(t, exerciseName + /*LANG*/" top slow for time threshold!"); // thresholdMaxTime
242242
lastExerciseCompletionTime = t;
243243

244-
layout.recording.label = "Go faster!";
244+
layout.recording.label = /*LANG*/"Go faster!";
245245
g.clear();
246246
layout.render();
247247
}
248248
} else {
249-
console.log(t, exerciseName + " too quick for time threshold!"); // thresholdMinTime
249+
console.log(t, exerciseName + /*LANG*/" too quick for time threshold!"); // thresholdMinTime
250250
lastExerciseCompletionTime = t;
251251

252-
layout.recording.label = "Go slower!";
252+
layout.recording.label = /*LANG*/"Go slower!";
253253
g.clear();
254254
layout.render();
255255
}
@@ -337,15 +337,15 @@ function startTraining() {
337337
type: "txt",
338338
id: "recording",
339339
font: "6x8:2",
340-
label: "TRAINING",
340+
label: /*LANG*/"TRAINING",
341341
bgCol: "#f00",
342342
pad: 5,
343343
fillx: 1
344344
},
345345
]
346346
}, {
347347
btns: [{
348-
label: "STOP",
348+
label: /*LANG*/"STOP",
349349
cb: () => {
350350
stopTraining();
351351
}

apps/banglexercise/metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{ "id": "banglexercise",
22
"name": "BanglExercise",
33
"shortName":"BanglExercise",
4-
"version": "0.05",
5-
"description": "Can automatically track exercises while wearing the Bangle.js watch.",
4+
"version": "0.06",
5+
"description": "Automatically tracks exercises while wearing the Bangle.js watch.",
66
"icon": "app.png",
77
"screenshots": [{"url":"screenshot.png"}],
88
"type": "app",
9-
"tags": "sport",
9+
"tags": "health",
1010
"supports" : ["BANGLEJS2"],
1111
"allow_emulator":true,
1212
"readme": "README.md",

apps/clock_info/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
0.17: Fix BLE icon alignment and border on some clocks
1919
0.18: Tweak BLE icon to add gap and ensure middle of B isn't filled
2020
0.19: Fix Altitude ClockInfo after BLE added
21-
Tapping Altitude now updates the reading
21+
Tapping Altitude now updates the reading
22+
0.20: Altitude ClockInfo now uses the distance units set in locale.

apps/clock_info/lib.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ exports.load = function() {
4949
try {
5050
Bangle.getPressure().then(data=>{
5151
if (!data) return;
52-
alt = Math.round(data.altitude) + "m";
52+
53+
alt =require("locale").distance(data.altitude);
5354
bangleItems.find(i=>i.name=="Altitude").emit("redraw");
5455
});
5556
} catch (e) {

apps/clock_info/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "id": "clock_info",
22
"name": "Clock Info Module",
33
"shortName": "Clock Info",
4-
"version":"0.19",
4+
"version":"0.20",
55
"description": "A library used by clocks to provide extra information on the clock face (Altitude, BPM, etc)",
66
"icon": "app.png",
77
"type": "module",

apps/flux/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.01: New App!

apps/flux/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Flux Watchface
2+
3+
This app slightly resembles Apples "Flux" watchface.
4+
5+
## Usage
6+
7+
Install it and set it as your default clock.
8+
It currently has no widget support. In the future, widgets will be a toggle in the settings.
9+
You can change the colors in the settings.
10+
11+
## Features
12+
13+
- Customizeable themes (4 color inputs)
14+
- Random number alignment (every minute or on reload)
15+
- 24h clock (12h not yet supported)
16+
- Power-saving mode
17+
- Color filling effect in 2 directions (`Left > Right` and `Right > Left` are currently unsupported.)
18+
- 12 different colors
19+
20+
## Controls
21+
22+
BTN to go to launcher. No other mappings.
23+
24+
## Requests
25+
26+
If you have a feature request or a bug, please message me at [[email protected]](mailto:[email protected] "Click to send an email").
27+
28+
## Creator
29+
30+
Yanis Ocaña, sossinay
31+
[pixelnet.ocaña.ch](https://pixelnet.ocaña.ch)
32+
33+
## Known issues
34+
- When loading the app in the first 2 seconds of a minute, the numbers fly in from a seemingly random position
35+
- `Left > Right` and `Right > Left` are currently unsupported

apps/flux/app-icon.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)