From 78cc812235eb1e7cd12b8e3233a6f208315c1cbf Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Fri, 1 Aug 2025 18:04:25 -0400 Subject: [PATCH 1/3] Change tag to 'health', bump version --- apps/banglexercise/metadata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/banglexercise/metadata.json b/apps/banglexercise/metadata.json index b2f8e39ea..9598e7a71 100644 --- a/apps/banglexercise/metadata.json +++ b/apps/banglexercise/metadata.json @@ -1,12 +1,12 @@ { "id": "banglexercise", "name": "BanglExercise", "shortName":"BanglExercise", - "version": "0.05", - "description": "Can automatically track exercises while wearing the Bangle.js watch.", + "version": "0.06", + "description": "Automatically tracks exercises while wearing the Bangle.js watch.", "icon": "app.png", "screenshots": [{"url":"screenshot.png"}], "type": "app", - "tags": "sport", + "tags": "health", "supports" : ["BANGLEJS2"], "allow_emulator":true, "readme": "README.md", From 372a29cfad143ad260c8683097ec08d260eeaa98 Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Sat, 2 Aug 2025 23:01:37 -0400 Subject: [PATCH 2/3] Grammar corrections, translations added --- apps/banglexercise/app.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/banglexercise/app.js b/apps/banglexercise/app.js index f4addc05a..c088c7e3e 100644 --- a/apps/banglexercise/app.js +++ b/apps/banglexercise/app.js @@ -24,7 +24,7 @@ let exerciseType = { // add new exercises here: const exerciseTypes = [{ "id": "pushup", - "name": "push ups", + "name": /*LANG*/"Push-ups", "useYaxis": true, "useZaxis": false, "threshold": 2500, @@ -34,7 +34,7 @@ const exerciseTypes = [{ }, { "id": "curl", - "name": "curls", + "name": /*LANG*/"Curls", "useYaxis": true, "useZaxis": false, "threshold": 2500, @@ -44,7 +44,7 @@ const exerciseTypes = [{ }, { "id": "situp", - "name": "sit ups", + "name": /*LANG*/"Sit-ups", "useYaxis": false, "useZaxis": true, "threshold": 3500, @@ -88,7 +88,7 @@ function showMainMenu() { menu["--------"] = { value: "" }; - menu["Last:"] = { + menu[/*LANG*/"Last:"] = { value: exerciseCounter + " " + exerciseType.name }; } @@ -189,10 +189,10 @@ function isValidExercise(slope, t) { if (p1 > 0 && p2 < 0) { if (lastZeroPassCameFromPositive == false) { lastExerciseHalfCompletionTime = t; - console.log(t, exerciseName + " half complete..."); + console.log(t, exerciseName + /*LANG*/" half complete..."); layout.progress.label = "½"; - layout.recording.label = "TRAINING"; + layout.recording.label = /*LANG*/"TRAINING"; g.clear(); layout.render(); } @@ -204,7 +204,7 @@ function isValidExercise(slope, t) { if (lastZeroPassCameFromPositive == true) { const tDiffLastExercise = t - lastExerciseCompletionTime; const tDiffStart = t - tStart; - console.log(t, exerciseName + " maybe complete?", Math.round(tDiffLastExercise), Math.round(tDiffStart)); + console.log(t, exerciseName + /*LANG*/" maybe complete?", Math.round(tDiffLastExercise), Math.round(tDiffStart)); // check minimal time between exercises: if ((lastExerciseCompletionTime <= 0 && tDiffStart >= thresholdMinTime) || tDiffLastExercise >= thresholdMinTime) { @@ -222,7 +222,7 @@ function isValidExercise(slope, t) { layout.count.label = exerciseCounter; layout.progress.label = ""; - layout.recording.label = "Good!"; + layout.recording.label =/*LANG*/"Good!"; g.clear(); layout.render(); @@ -230,26 +230,26 @@ function isValidExercise(slope, t) { if (settings.buzz) Bangle.buzz(200, 0.5); } else { - console.log(t, exerciseName + " too quick for duration time threshold!"); // thresholdMinDurationTime + console.log(t, exerciseName + /*LANG*/" too quick for duration time threshold!"); // thresholdMinDurationTime lastExerciseCompletionTime = t; - layout.recording.label = "Go slower!"; + layout.recording.label = /*LANG*/"Go slower!"; g.clear(); layout.render(); } } else { - console.log(t, exerciseName + " top slow for time threshold!"); // thresholdMaxTime + console.log(t, exerciseName + /*LANG*/" top slow for time threshold!"); // thresholdMaxTime lastExerciseCompletionTime = t; - layout.recording.label = "Go faster!"; + layout.recording.label = /*LANG*/"Go faster!"; g.clear(); layout.render(); } } else { - console.log(t, exerciseName + " too quick for time threshold!"); // thresholdMinTime + console.log(t, exerciseName + /*LANG*/" too quick for time threshold!"); // thresholdMinTime lastExerciseCompletionTime = t; - layout.recording.label = "Go slower!"; + layout.recording.label = /*LANG*/"Go slower!"; g.clear(); layout.render(); } @@ -337,7 +337,7 @@ function startTraining() { type: "txt", id: "recording", font: "6x8:2", - label: "TRAINING", + label: /*LANG*/"TRAINING", bgCol: "#f00", pad: 5, fillx: 1 @@ -345,7 +345,7 @@ function startTraining() { ] }, { btns: [{ - label: "STOP", + label: /*LANG*/"STOP", cb: () => { stopTraining(); } From 3a2ca516d47a889fa42a5313c25ddd4c84021a4f Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Sat, 2 Aug 2025 23:03:50 -0400 Subject: [PATCH 3/3] Update ChangeLog --- apps/banglexercise/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/banglexercise/ChangeLog b/apps/banglexercise/ChangeLog index 06c4adf1b..da89bdb08 100644 --- a/apps/banglexercise/ChangeLog +++ b/apps/banglexercise/ChangeLog @@ -5,3 +5,4 @@ 0.03: Add software back button on main menu 0.04: Minor code improvements 0.05: Minor code improvements +0.06: Fix grammar, add international language support