30 Commits

Author SHA1 Message Date
hueso
8abf6f4f5b Fixed buffer overflows in sunrise_sunset_face
Some checks failed
Build / build (push) Has been cancelled
Build / build-simulator (push) Has been cancelled
GitHub Pages / gh-pages (push) Has been cancelled
2025-05-15 11:59:21 -03:00
Matheus Afonso Martins Moreira
a9d503b807 Revert PR #470 - implement automatic DST toggling
The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.

This reverts commit ac5bf8cfce67cdb5662aeea618c2eb9511f0d190, reversing
changes made to 5a8a49a8c77d6d5ba0f46f0e5b51dec2daba46db.
2024-09-17 17:28:32 -03:00
Matheus Afonso Martins Moreira
683032219e Revert PR #471 - add DST to sunrise/sunset
The DST code has not yet been fully tested, the upcoming movement
refactor is upon us and it will integrate with the micro timezone
library anyway. Revert it so that next can be merged into main.

This reverts commit 0cc28b9811e76de3dc2cc2919d5309cfa48edfeb, reversing
changes made to 337864eb543c9b5cd83667ab0eafb476f63af54c.
2024-09-17 17:02:16 -03:00
David Volovskiy
9d1410780c sunrise sunset fix during DST 2024-09-08 18:18:00 -04:00
David Volovskiy
0d16329574 Sunrise sunset face now warns about using DST 2024-09-08 18:13:17 -04:00
David Volovskiy
f6f427ca7d Daylight offsets now references the timezone of the destination; but it does cause an issue due to DST 2024-09-08 18:13:17 -04:00
Matheus Afonso Martins Moreira
ac5bf8cfce Merge PR #470 - implement automatic DST toggling
Implements logic to automatically offset daylight saving time settings
when calculating timezone offsets. This should make the DST functions
work automatically with no need for user input in most cases.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/470
2024-09-08 13:41:52 -03:00
Matheus Afonso Martins Moreira
4d6a9345f2 Merge PR #299 - leading zero representation
Adds a movement-wide leading zero 024h representation mode
that's toggleable in the preferences watch face.
Also adds support for the new display mode to existing faces.

I modified the logic a bit to ensure the 24h indicator remains lit
in the simple clock face even when in 024h mode. I also added support
to the more advanced clock face. In the future I will add a compile time
toggle to it as well.

Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/299
2024-09-03 18:49:13 -03:00
David Volovskiy
51176344dc Made it so the code works with a completely empty preset list 2024-08-03 11:42:42 -04:00
David Volovskiy
84f0db0654 Fix to remove compiler complaint 2024-08-03 11:38:45 -04:00
David Volovskiy
bae8c65825 Made the faces I care about not need to continuously re-find the timezone 2024-08-02 07:37:30 -04:00
David Volovskiy
4c546b14dc The timezone now auto-corrects with DST (but still displays the same offset in the settings screen to the user) 2024-08-02 01:25:01 -04:00
David Volovskiy
a13c8c35b8 Code review commit 2024-07-20 15:59:42 -04:00
David Volovskiy
a3d23ab45e Long press of Alarm goes back to default 2024-07-20 14:46:42 -04:00
David Volovskiy
a7c0fb7dfd Added ability to add presets to the sunrise and sunset face 2024-07-20 14:35:37 -04:00
Wesley Aptekar-Cassels
1f6409a71c sunrise_sunset_face: Fix use of uninitialized memory.
This was causing a crash in the simulator when setting the location.

Fixes: #198
2023-11-18 23:53:24 -05:00
Jonathan Glines
f633b7634b Support leading zero representation for 24h clock
Toggle between default behavior and leading zero with long-press of alarm
button on page with 24h setting.
2023-10-29 11:15:50 -04:00
joeycastillo
0ef80b62da add movement_default_loop_handler, test with default watch faces 2023-01-14 14:21:04 -05:00
joeycastillo
41d9b00ba6 sunrise/set: return home if no location set 2022-11-29 13:39:14 -06:00
joeycastillo
423c5ec70e address sunrise/set rounding in last 30 seconds of hour (fixes #146) 2022-11-28 00:40:08 -06:00
joeycastillo
444b911e90 fix sunrise/sunset in last 30 seconds of the hour 2022-11-27 17:02:30 -06:00
Joey Castillo
5f0ebd8c66 character map tweaks: add some ligatures and symbols 2022-04-06 15:51:06 -04:00
Joey Castillo
108b9991d2 simulator: add geolocation support 2022-02-09 13:40:29 -05:00
Joey Castillo
505f692037 sunrise/sunset: align date at extreme latitudes 2022-02-05 16:06:02 -05:00
Joey Castillo
74e47f9857 sunrise/sunset: update display after sunrise/sunset 2022-02-05 15:13:50 -05:00
Joey Castillo
7096435738 sunrise/sunset: improve timeout behavior 2022-02-05 14:05:33 -05:00
Joey Castillo
f4bfe45b7c sunrise/sunset: remove test locations 2022-02-05 13:54:02 -05:00
Joey Castillo
658739c880 sunrise/sunset: deal with timezones, other improvements 2022-01-31 21:22:48 -08:00
Joey Castillo
7085f89bfa sunrise/sunset: always set the sign bit 2022-01-31 17:17:34 -08:00
Joey Castillo
2e345d9f66 movement: slight reorganization 2022-01-25 17:04:07 -05:00