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
Changes from 1 commit
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: 9 additions & 13 deletions src/apps/tools/OswAppKcalStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,20 @@ void OswAppKcalStats::showCurvedChart() {
hal->gfx()->drawLine(DISP_W / 2, 150 + 15, 120, 220, ui->getPrimaryColor());

// Data info

// Show the day of the week that cursor (Dynamic weekDay--info)
uint32_t d, wD = 0;
hal->getLocalDate(&d, &wD);
uint32_t wDay = wD - (6 - this->cursorPos) >= 0 ? wD - (6 - this->cursorPos) : (wD - (6 - this->cursorPos)) + 7;
RuffaloLavoisier marked this conversation as resolved.
Show resolved Hide resolved

hal->gfx()->setTextSize(1);
hal->gfx()->setTextCenterAligned();
hal->gfx()->setTextBottomAligned();
hal->gfx()->setTextColor(ui->getForegroundColor());

hal->gfx()->setTextCenterAligned();
hal->gfx()->setTextCursor(80, 140 + 25);
hal->gfx()->print(LANG_KCAL_AVG);
hal->gfx()->setTextCursor(160, 140 + 25);

// Show the day of the week that cursor (Dynamic weekDay)
uint32_t d, wD = 0;
hal->getLocalDate(&d, &wD);
uint32_t wDay = wD - (6 - this->cursorPos) >= 0 ? wD - (6 - this->cursorPos) : (wD - (6 - this->cursorPos)) + 7;
hal->gfx()->print(hal->getLocalWeekday(&wDay));
hal->gfx()->setTextRightAligned();
hal->gfx()->setTextCursor(DISP_W / 2 - 7, 160 + 25);
Expand All @@ -114,15 +114,11 @@ void OswAppKcalStats::showCurvedChart() {
hal->gfx()->print(OswAppWatchfaceFitness::calculateKcalorie(hal->environment->getStepsTotal())/7); // total step counter
hal->gfx()->setTextLeftAligned();
hal->gfx()->setTextCursor(DISP_W / 2 + 7, 160 + 25);
uint32_t cursorBox = 0;
readyValue(2, this->cursorPos, &cursorBox);
hal->gfx()->print(cursorBox+String(" m"));
hal->gfx()->print(OswAppWatchfaceFitness::calculateDistance(hal->environment->getStepsOnDay(wDay))+String(" m"));
hal->gfx()->setTextCursor(DISP_W / 2 + 7, 160 + 25 + 10);
readyValue(1,this->cursorPos,&cursorBox);
hal->gfx()->print(cursorBox + String(" ") + String(LANG_KCAL_STEP)); // total step counter
hal->gfx()->print(hal->environment->getStepsOnDay(wDay) + String(" ") + String(LANG_KCAL_STEP)); // total step counter
hal->gfx()->setTextCursor(DISP_W / 2 + 7, 160 + 25 + 20);
readyValue(3,this->cursorPos,&cursorBox);
hal->gfx()->print(cursorBox+String(" kcal")); // total step counter
hal->gfx()->print(OswAppWatchfaceFitness::calculateKcalorie(hal->environment->getStepsOnDay(wDay))+String(" kcal")); // total step counter
}

void OswAppKcalStats::setup() {}
Expand Down