Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OSW-APP resolve #23, #206, #207, #215, #220 #223

Merged
Merged
Show file tree
Hide file tree
Changes from 72 commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
35ebc3f
OSW-CONFIG : add new config key list
RuffaloLavoisier May 7, 2022
5736300
HAL : merged and default param
RuffaloLavoisier May 8, 2022
24379d3
Apps/watchfaces : add dual hour-tick
RuffaloLavoisier May 9, 2022
f480cb7
OSW-CONFIG : add user weight
RuffaloLavoisier May 9, 2022
3a7c166
src/osw_config_keys : add spacing for unit
RuffaloLavoisier May 9, 2022
af0716c
OSW-UI : remove line change
RuffaloLavoisier May 11, 2022
124dde0
Apps/watchfaces : refactor -> variable
RuffaloLavoisier May 11, 2022
494fe5c
Apps/watchfaces : remove setup
RuffaloLavoisier May 11, 2022
b8df9f0
Apps/watchfaces : revert
RuffaloLavoisier May 11, 2022
2ecdb88
OSW : rename web server libraries
RuffaloLavoisier May 17, 2022
d191097
Apps/watchfaces : rename origin watchface
RuffaloLavoisier May 17, 2022
787e61b
Apps/watchfaces : rename digital watchface
RuffaloLavoisier May 17, 2022
8afbfcf
Apps/watchfaces : rename mix watchface
RuffaloLavoisier May 17, 2022
e5c6189
Apps/watchfaces : rename binary watchface
RuffaloLavoisier May 17, 2022
4acdae4
OSW : update libraries
RuffaloLavoisier May 17, 2022
ec0941e
OSW-CONFIG : sort watchface
RuffaloLavoisier May 17, 2022
7c2e43d
HAL : merging similar features
simonmicro May 18, 2022
7be17a7
OSW-Watchface : update Dual-Time
RuffaloLavoisier May 19, 2022
21faa00
Dual-time : update half-digitalTime
RuffaloLavoisier May 19, 2022
e325ef4
Dual-Time : update watchface (Dual-Time)
RuffaloLavoisier May 19, 2022
e90a5d6
Apps/watchfaces : rename stepDisplay
RuffaloLavoisier May 19, 2022
9148baa
Dual-Analog : change dual-time variable area
RuffaloLavoisier May 19, 2022
e7fedc9
Apps/watchfaces : refactoring drawSteps usage
RuffaloLavoisier May 19, 2022
9d1d8f3
Apps/watchfaces : mix-face backlog
RuffaloLavoisier May 20, 2022
d8d8877
OSW-Watchface : refactoring time function
RuffaloLavoisier May 20, 2022
dada696
Apps/watchfaces : fix compile warning (update ui param)
RuffaloLavoisier May 20, 2022
0d3077a
Apps/watchfaces : refactoring re-use time/date output
RuffaloLavoisier May 20, 2022
20a5242
OSW-Watchface : update Fitness-Tracking resolve #220
RuffaloLavoisier May 20, 2022
b9fd77c
Apps/watchface : unused code in WF-Fitness
RuffaloLavoisier May 20, 2022
ad01b71
Apps/watchface : typo in WF-Fitness
RuffaloLavoisier May 20, 2022
75858b3
OSW : update Fitness App
RuffaloLavoisier May 20, 2022
77ff424
Apps/tools : fix ci warning
RuffaloLavoisier May 20, 2022
4239505
OSW : fix steps stats from edition
RuffaloLavoisier May 20, 2022
f9021cf
Apps/tools : fix steps stats compile warning from DEV_LUA
RuffaloLavoisier May 20, 2022
045a321
Kcal-stats : update detail description for fitness tracking info
RuffaloLavoisier May 20, 2022
57296f5
Submodule : update lib-open-smartwatch
RuffaloLavoisier May 20, 2022
f47fd11
OSW : exclude compilation files from preprocessing in DEV_LUA
RuffaloLavoisier May 25, 2022
a6228da
Apps/watchfaces : add inline in getDateformat
RuffaloLavoisier May 25, 2022
f9e1568
HAL : remove dead code
RuffaloLavoisier May 25, 2022
2a6672e
Apps/tools : remove dead code
RuffaloLavoisier May 25, 2022
0d93b12
Apps/watchfaces : remove dead code
RuffaloLavoisier May 25, 2022
0caff71
Apps/tools : update init value in header
RuffaloLavoisier May 25, 2022
430bd5e
Apps/tools : fix color and dead code
RuffaloLavoisier May 25, 2022
a0ca7b5
Include/locales : update translation
RuffaloLavoisier May 25, 2022
d595bdd
Apps/tools : update translation
RuffaloLavoisier May 25, 2022
483c8bb
Apps/watchfaces : update translation
RuffaloLavoisier May 25, 2022
571711a
apps/tools : fix comment
RuffaloLavoisier May 25, 2022
a3ea285
Apps/tools : color adjustment through web-interface
RuffaloLavoisier May 25, 2022
0ed7303
Apps/watchfaces : color adjustment through web-interface
RuffaloLavoisier May 25, 2022
5d9f448
Apps/tools : clean variable name
RuffaloLavoisier May 25, 2022
358e2ef
Apps/tools : fix style-guide
RuffaloLavoisier May 25, 2022
ab6687d
Apps/watchfaces : fix style-guide
RuffaloLavoisier May 25, 2022
0578b78
Apps/tools : fix cursor-position
RuffaloLavoisier May 25, 2022
6f58087
OSW-CONFIG : update description about user-info
RuffaloLavoisier May 25, 2022
aa1617e
Fitness-Watchface : get free-space and change coordinate starting point
RuffaloLavoisier May 26, 2022
5541f6e
Mix-Watchface : get free-space
RuffaloLavoisier May 26, 2022
e9fbbfe
Step-stats : change x-axis settings for correct value alignment
RuffaloLavoisier May 26, 2022
897dd85
Kcal-stats : modify cursor to point to correct value
RuffaloLavoisier May 26, 2022
6cc26c4
Apps/tools : insert space between value and unit
RuffaloLavoisier May 26, 2022
bf3b390
Apps/watchfaces : fix variable type for distance
RuffaloLavoisier May 26, 2022
89750b0
Apps/tools : change color and remove unit
RuffaloLavoisier May 26, 2022
0b5b3ff
Apps/tools : re-sort name and change variable type
RuffaloLavoisier May 26, 2022
1d73175
Curved-stats : fix for loop and error
RuffaloLavoisier May 26, 2022
e0d127d
OSW-CONFIG : remove model
RuffaloLavoisier May 26, 2022
61ea29a
Fitness-Tracking : remove dead code for date week-day
RuffaloLavoisier May 26, 2022
dbd4812
Apps/watchfaces : correct display fitness type
RuffaloLavoisier May 27, 2022
f3633b4
Apps/tools : output decimal point to string
RuffaloLavoisier May 27, 2022
6fefb26
HAL : enable sharing of date names
RuffaloLavoisier May 27, 2022
a074e9b
Apps/tools : display the day of the week that cursor
RuffaloLavoisier May 27, 2022
68b079e
HAL : add return to specific days
RuffaloLavoisier May 28, 2022
a3c39e0
Apps/tools : refactor display weekday info
RuffaloLavoisier May 28, 2022
1e0424a
Apps/tools : refactor display cursor data-info
RuffaloLavoisier May 28, 2022
c5efe56
Apps/tools : revert ready-value arr
RuffaloLavoisier May 28, 2022
c9f0d4d
Kcalstats : fix bug from operator
RuffaloLavoisier May 29, 2022
9844403
OSW-CONFIG : change default value
RuffaloLavoisier May 29, 2022
405b49e
Apps/tools : fix compile warning
RuffaloLavoisier May 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions include/apps/tools/OswAppFitnessStats.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef OSW_APP_FITNESS_STATS_H
#define OSW_APP_FITNESS_STATS_H

#include <osw_hal.h>
#include <osw_ui.h>

#include "osw_app.h"

class OswAppFitnessStats : public OswApp {
public:
OswAppFitnessStats(void) { ui = OswUI::getInstance(); };
virtual void setup() override;
virtual void loop() override;
virtual void stop() override;
~OswAppFitnessStats(){};
void showFitnessTracking();

private:
OswUI* ui;
};

#endif
26 changes: 26 additions & 0 deletions include/apps/tools/OswAppKcalStats.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef OSW_APP_KCAL_STATS_H
#define OSW_APP_KCAL_STATS_H

#include <osw_hal.h>
#include <osw_ui.h>

#include "osw_app.h"

class OswAppKcalStats : public OswApp {
public:
OswAppKcalStats(void) { ui = OswUI::getInstance(); };
virtual void setup() override;
virtual void loop() override;
virtual void stop() override;
~OswAppKcalStats(){};

private:
uint8_t cursorPos = 6; // WeekDay position
void drawCurvedChart();
void showCurvedChart();
void readyValue(int type = 0, uint8_t cursor = 6, uint32_t* cursorValue = nullptr);
uint16_t weekValue[7] = {};
OswUI* ui;
};

#endif
23 changes: 23 additions & 0 deletions include/apps/tools/OswAppStepStats.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef OSW_APP_STEP_STATS_H
#define OSW_APP_STEP_STATS_H

#include <osw_hal.h>
#include <osw_ui.h>

#include "osw_app.h"

class OswAppStepStats : public OswApp {
public:
OswAppStepStats(void) { ui = OswUI::getInstance(); };
virtual void setup() override;
virtual void loop() override;
virtual void stop() override;
~OswAppStepStats(){};

private:
void showStickChart();
void drawChart();
OswUI* ui;
};

#endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef OSW_APP_WATCHFACEBINARYA_H
RuffaloLavoisier marked this conversation as resolved.
Show resolved Hide resolved
#define OSW_APP_WATCHFACEBINARYA_H
#ifndef OSW_APP_WATCHFACE_BINARY_H
#define OSW_APP_WATCHFACE_BINARY_H

#include <osw_hal.h>
#include <osw_ui.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ class OswAppWatchfaceDigital : public OswApp {
virtual void loop() override;
virtual void stop() override;
~OswAppWatchfaceDigital(){};
inline static uint8_t getDateFormat(); // Return 0 : mm/dd/yyyy 1 : dd.mm.yyyy 2 : yy.mm/dd
static void drawSteps();
static void digitalWatch(short timeZone, uint8_t fontSize, uint8_t dateCoordY, uint8_t timeCoordY);
RuffaloLavoisier marked this conversation as resolved.
Show resolved Hide resolved
static void timeOutput(uint32_t hour, uint32_t minute, uint32_t second, bool showSecond = true);
static void dateOutput(uint32_t yearInt, uint32_t monthInt, uint32_t dayInt);

private:
uint8_t showDateFormat = 0; // 0 : mm/dd/yyyy 1 : dd.mm.yyyy 2 : yy.mm/dd
OswUI* ui;
};

Expand Down
26 changes: 26 additions & 0 deletions include/apps/watchfaces/OswAppWatchfaceDual.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef OSW_APP_WATCHFACE_DUAL_H
#define OSW_APP_WATCHFACE_DUAL_H

#include <osw_hal.h>
#include <osw_ui.h>

#include "osw_app.h"

class OswAppWatchfaceDual : public OswApp {
public:
OswAppWatchfaceDual(void) { ui = OswUI::getInstance(); };
virtual void setup() override;
virtual void loop() override;
virtual void stop() override;
~OswAppWatchfaceDual(){};
//for dual-time

static void drawProgressBar(OswUI* ui,uint8_t cx, uint8_t cy, uint8_t jump, uint8_t length, uint8_t value,float angle, uint8_t radius, uint16_t color, int* goal=nullptr);
void drawAnim();

private:
OswUI* ui;
// Blank to make the 2 clocks easier to recognize
RuffaloLavoisier marked this conversation as resolved.
Show resolved Hide resolved
};

#endif
24 changes: 24 additions & 0 deletions include/apps/watchfaces/OswAppWatchfaceFitness.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#ifndef OSW_APP_WATCHFACE_FITNESS_H
#define OSW_APP_WATCHFACE_FITNESS_H

#include <osw_hal.h>
#include <osw_ui.h>

#include "osw_app.h"

class OswAppWatchfaceFitness : public OswApp {
public:
OswAppWatchfaceFitness(void) { ui = OswUI::getInstance(); };
virtual void setup() override;
virtual void loop() override;
virtual void stop() override;
~OswAppWatchfaceFitness(){};
static float calculateDistance(uint32_t steps);
static uint32_t calculateKcalorie(uint32_t steps);

private:
void showFitnessTracking();
OswUI* ui;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ class OswAppWatchfaceMix : public OswApp {
virtual void stop() override;
~OswAppWatchfaceMix(){};

void dateDisplay();
void digitalWatchDisplay();
simonmicro marked this conversation as resolved.
Show resolved Hide resolved

private:
uint8_t showDateFormat = 0; // 0 : mm/dd/yyyy 1 : dd.mm.yyyy 2 : yy.mm/dd
void analogWatchDisplay(); //thin
OswUI* ui;
};

Expand Down
22 changes: 22 additions & 0 deletions include/locales/cs-CZ.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@
// App: Watchface Binary
#define LANG_WATCHFACE_BINARY_STEPS "steps"

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Dist"
#define LANG_WATCHFACE_FITNESS_STEP "Step"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Steps stats"
#define LANG_STEPSTATS_TODAY "Today"
#define LANG_STEPSTATS_TOTAL "Total"
#define LANG_STEPSTATS_STEP "Step"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness stats"
#define LANG_FITNESS_STEP "Step"
#define LANG_FITNESS_DISTANCE "Distance"
#define LANG_FITNESS_TOTAL "Total"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal stats"
#define LANG_KCAL_AVG "Avg"
#define LANG_KCAL_TODAY "Today"
#define LANG_KCAL_STEP "Step"

// Weekdays
#define LANG_MONDAY "Pondeli"
#define LANG_TUESDAY "Utery"
Expand Down
22 changes: 22 additions & 0 deletions include/locales/de-DE.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@
// App: Watchface Binary
#define LANG_WATCHFACE_BINARY_STEPS "Schritte"

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Distanz"
#define LANG_WATCHFACE_FITNESS_STEP "Schritte"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Schritt-Statistik"
#define LANG_STEPSTATS_TODAY "Heute"
#define LANG_STEPSTATS_TOTAL "Insgesamt"
#define LANG_STEPSTATS_STEP "Schritte"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness-Statistik"
#define LANG_FITNESS_STEP "Schritte"
#define LANG_FITNESS_DISTANCE "Distanz"
#define LANG_FITNESS_TOTAL "Insgesamt"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal-Statistik"
#define LANG_KCAL_AVG "AVG"
#define LANG_KCAL_TODAY "Heute"
#define LANG_KCAL_STEP "Schritte"

// Weekdays
#define LANG_MONDAY "Montag"
#define LANG_TUESDAY "Dienstag"
Expand Down
22 changes: 22 additions & 0 deletions include/locales/en-US.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@
// App: Watchface Binary
#define LANG_WATCHFACE_BINARY_STEPS "steps"

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Dist"
#define LANG_WATCHFACE_FITNESS_STEP "Step"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Steps stats"
#define LANG_STEPSTATS_TODAY "Today"
#define LANG_STEPSTATS_TOTAL "Total"
#define LANG_STEPSTATS_STEP "Step"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness stats"
#define LANG_FITNESS_STEP "Step"
#define LANG_FITNESS_DISTANCE "Distance"
#define LANG_FITNESS_TOTAL "Total"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal stats"
#define LANG_KCAL_AVG "Avg"
#define LANG_KCAL_TODAY "Today"
#define LANG_KCAL_STEP "Step"

// Weekdays
#define LANG_MONDAY "Monday"
#define LANG_TUESDAY "Tuesday"
Expand Down
22 changes: 22 additions & 0 deletions include/locales/fr-FR.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@
// App: Watchface Binary
#define LANG_WATCHFACE_BINARY_STEPS "steps"

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Dist"
#define LANG_WATCHFACE_FITNESS_STEP "Step"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Steps stats"
#define LANG_STEPSTATS_TODAY "Today"
#define LANG_STEPSTATS_TOTAL "Total"
#define LANG_STEPSTATS_STEP "Step"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness stats"
#define LANG_FITNESS_STEP "Step"
#define LANG_FITNESS_DISTANCE "Distance"
#define LANG_FITNESS_TOTAL "Total"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal stats"
#define LANG_KCAL_AVG "Avg"
#define LANG_KCAL_TODAY "Today"
#define LANG_KCAL_STEP "Step"

// Weekdays
#define LANG_MONDAY "Lundi"
#define LANG_TUESDAY "Mardi"
Expand Down
22 changes: 22 additions & 0 deletions include/locales/hu-HU.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@
// App: Watchface Binary
#define LANG_WATCHFACE_BINARY_STEPS "steps"

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Dist"
#define LANG_WATCHFACE_FITNESS_STEP "Step"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Steps stats"
#define LANG_STEPSTATS_TODAY "Today"
#define LANG_STEPSTATS_TOTAL "Total"
#define LANG_STEPSTATS_STEP "Step"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness stats"
#define LANG_FITNESS_STEP "Step"
#define LANG_FITNESS_DISTANCE "Distance"
#define LANG_FITNESS_TOTAL "Total"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal stats"
#define LANG_KCAL_AVG "Avg"
#define LANG_KCAL_TODAY "Today"
#define LANG_KCAL_STEP "Step"

// Weekdays
#define LANG_MONDAY "Hétfő"
#define LANG_TUESDAY "Kedd"
Expand Down
22 changes: 22 additions & 0 deletions include/locales/it-IT.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@
// App: Watchface Binary
#define LANG_WATCHFACE_BINARY_STEPS "steps"

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Dist"
#define LANG_WATCHFACE_FITNESS_STEP "Step"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Steps stats"
#define LANG_STEPSTATS_TODAY "Today"
#define LANG_STEPSTATS_TOTAL "Total"
#define LANG_STEPSTATS_STEP "Step"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness stats"
#define LANG_FITNESS_STEP "Step"
#define LANG_FITNESS_DISTANCE "Distance"
#define LANG_FITNESS_TOTAL "Total"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal stats"
#define LANG_KCAL_AVG "Avg"
#define LANG_KCAL_TODAY "Today"
#define LANG_KCAL_STEP "Step"

// Weekdays
#define LANG_MONDAY "Lunedì"
#define LANG_TUESDAY "Martedì"
Expand Down
22 changes: 22 additions & 0 deletions include/locales/ko-KR.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,28 @@
#define LANG_WATCHFACE_BINARY_STEPS "걸음"
#endif

// App: Watchface Fitness
#define LANG_WATCHFACE_FITNESS_DISTANCE "Dist"
#define LANG_WATCHFACE_FITNESS_STEP "Step"

// App: Step Statistics
#define LANG_STEPSTATS_TITLE "Steps stats"
#define LANG_STEPSTATS_TODAY "Today"
#define LANG_STEPSTATS_TOTAL "Total"
#define LANG_STEPSTATS_STEP "Step"

// App: Fitness Statistics
#define LANG_FITNESS_TITLE "Fitness stats"
#define LANG_FITNESS_STEP "Step"
#define LANG_FITNESS_DISTANCE "Distance"
#define LANG_FITNESS_TOTAL "Total"

// App: Kcal Statistics
#define LANG_KCAL_TITLE "Kcal stats"
#define LANG_KCAL_AVG "Avg"
#define LANG_KCAL_TODAY "Today"
#define LANG_KCAL_STEP "Step"

// Weekdays
#define LANG_MONDAY "월요일"
#define LANG_TUESDAY "화요일"
Expand Down
6 changes: 6 additions & 0 deletions include/osw_config_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extern OswConfigKeyShort settingDisplayTimeout;
extern OswConfigKeyShort settingDisplayBrightness;
extern OswConfigKeyBool settingDisplayOverlays;
extern OswConfigKeyBool settingDisplayOverlaysOnWatchScreen;
extern OswConfigKeyBool settingDisplayDualHourTick;
extern OswConfigKeyBool raiseToWakeEnabled;
extern OswConfigKeyShort raiseToWakeSensitivity;
extern OswConfigKeyBool tapToWakeEnabled;
Expand All @@ -54,9 +55,14 @@ extern OswConfigKeyDropDown dateFormat;
extern OswConfigKeyFloat daylightOffset;
extern OswConfigKeyBool timeFormat;
extern OswConfigKeyShort timeZone;
extern OswConfigKeyShort dualTimeZone;
extern OswConfigKeyShort resetDay;
#if OSW_PLATFORM_ENVIRONMENT_ACCELEROMETER == 1
extern OswConfigKeyShort configHeight;
extern OswConfigKeyShort configWeight;
extern OswConfigKeyInt stepsPerDay;
extern OswConfigKeyInt distPerDay;
extern OswConfigKeyInt kcalPerDay;
extern OswConfigKeyBool stepsHistoryClear;
extern OswConfigKeyBool settingDisplayStepsGoal;
#endif
Expand Down
Loading