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
bfadb81e82
Merge PR #401 - add fuzzy time watch face
...
Displays the time in a "close enough" manner:
periods of five minutes, relative to the nearest hour.
For example:
- 3:24 -> 25 past 3
- 3:50 -> 10 to 4
- 3:59 -> 4 o'clock
- 1:35 -> 35 past 1
- 1:50 -> 10 to 2
- 2:00 -> 2 o'clock
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
Tested-on-hardware-by: Ruben Nic <RubenSandwich@users.noreply.github.com >
Tested-on-hardware-by: KlingonJane <148595159+KlingonJane@users.noreply.github.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/401
2024-09-07 20:57:24 -03:00
Matheus Afonso Martins Moreira
543788b622
Merge PR #287 - add minimal clock face
...
Add a minimalist clock face that shows only hours and minutes.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/287
2024-09-07 20:14:26 -03:00
Matheus Afonso Martins Moreira
7de53f9fa0
Merge PR #269 - add french revolutionary time face
...
Adds a french revolutionary time watch face which displays the time
divided into ten hours of one hundred minutes each which are in turn
divided into one hundred seconds each.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
Reviewed-by: Wesley Aptekar-Cassels <me@wesleyac.com >
Reviewed-by: Alex Maestas <git@se30.xyz >
Tested-on-hardware-by: CarpeNoctem <cryptomax@pm.me >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/269
2024-09-07 20:00:16 -03:00
CarpeNoctem
07a2a49e72
french_revolutionary face: fix compiler warning and uninitialized date_time variable
2024-09-07 19:47:17 -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
Matheus Afonso Martins Moreira
879c48ce4d
Merge PR #417 - improve 24h only mode
...
Enhances 24 hour only mode by setting defaults properly
and skipping past the 12/24 hour settings page in the
preferences watch face.
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com >
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/417
2024-08-30 16:47:47 -03:00
David Volovskiy
f85a7f2c78
Swapped the bell and alarm icon on the clock face to match Casio's doc
2024-08-10 06:38:46 -04:00
David Volovskiy
598e876186
check_and_act_on_daylight_savings now only occurs in one spot
2024-08-04 10:11:33 -04:00
David Volovskiy
2824a62908
Bugfix on not registering the top of an hour
2024-08-04 09:53:04 -04:00
David Volovskiy
aebea960c0
Cleanup to the default branch
2024-08-03 10:08:24 -04:00
David Volovskiy
e50390b673
DST roll is now a global variable in watch_rtc
2024-08-03 10:07:57 -04:00
David Volovskiy
74421c7e65
Day roll back repeat fix
2024-08-03 09:39:02 -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
149911e4ad
Time now auto-updates with DST
2024-08-02 01:23:21 -04:00
David Volovskiy
2afc2c6721
isolating this bit of complexity in movement function; Add ifdefs in clock faces for DCE
2024-07-10 07:22:55 -04:00
David Volovskiy
b923d50652
CLOCK_FACE_24H_ONLY hides the preference to change the setting and defaults the mode to 24Hr mode
2024-07-08 18:32:41 -04:00
Ruben Nic
7a2ecad334
Custom setting of switch from past to to index
2024-05-25 18:16:50 -04:00
Ruben Nic
af0f8d2732
If the alarm is enabled show bell not signal
2024-05-18 10:44:43 -04:00
Ruben Nic
53f11cbd1e
have close enough to update less and clean up code
2024-05-15 12:30:00 -04:00
Ruben Nic
fa35b8bb77
Add close enough clock face
2024-05-06 20:32:59 -04:00
Matheus Afonso Martins Moreira
955ac94de3
faces: restore simple_clock_face
...
Restore the original simple clock face as requested.
2024-03-16 20:04:08 -03:00
Matheus Afonso Martins Moreira
4a66035f77
faces/clock: add 24h only feature
...
The clock watch face can now be configured at build time
to only display the time in 24h mode. Also enabled in forced 24h mode.
This should result in smaller code size due to dead code elimination.
2024-03-05 00:46:27 -03:00
Matheus Afonso Martins Moreira
4cca3a0fac
faces/clock: update copyrights and credits
...
Update the copyrights to include full name attribution to all
who contributed to the clock watch face, including myself.
Also add an SPDX license identifier header comment to the files.
2024-03-05 00:46:27 -03:00
Matheus Afonso Martins Moreira
69639a5736
faces/clock: indicate low power only when needed
...
There is no need to set the indicator on every clock tick.
Indicate only when the battery is checked.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
5c376d9b9a
faces/clock: indicate alarm only when necessary
...
The alarm state is not modified within the clock face.
Therefore, it only needs to be set when the face is activated.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
2df6b2879a
faces/clock: refactor time signal toggling code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
1e2c23cf13
faces/clock: refactor clock display code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:15 -03:00
Matheus Afonso Martins Moreira
830200f9c3
faces/clock: reorder periodic battery check
...
Check the battery after the time has been updated.
Place all the indication code next to each other.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
bf4d7a3f2b
faces/clock: refactor partial time display code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
8f07192053
faces/clock: refactor full time display code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
76add5a2da
faces/clock: refactor tick tock animation code
...
Simplifies the code by defining dedicated functions for this.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
1d79930ab7
faces/clock: refactor low power tick function
...
Simplifies the code by defining dedicated functions
and separating the case from the main ones.
Also use the snprintf function since the buffer size is known.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
e7052fe4e2
faces/clock: simplify LAP indication function
...
Simplifies the code by adding a dedicated function for this.
Also documents the meaning of the LAP indicator: Low Available Power.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
0773439a49
faces/clock: refactor daily battery check
...
Move the code in question to a dedicated function. Better organized.
Add overridable preprocessor definition for the low battery threshold.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
91713392a5
faces/clock: simplify PM indication function
...
Simplifies the code by adding dedicated functions for this.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
113b4bba9c
faces/clock: simplify 24h indication function
...
Simplifies the code by adding a dedicated function for this.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
2132320d5c
faces/clock: simplify signal indication function
...
Simplifies the code and makes it use the correct indicator.
For some reason it had been switched with the alarm indicator.
WATCH_INDICATOR_BELL
The small bell indicating that an alarm is set.
WATCH_INDICATOR_SIGNAL
The hourly signal indicator.
Also useful for indicating that sensors are on.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
e2cba9f2f2
faces/clock: simplify alarm indication function
...
Deduplicates state in the clock state and movement settings.
Makes the code simpler.
Also makes it use the correct indicator.
For some reason it had been switched
with the hourly chime indicator.
WATCH_INDICATOR_BELL
The small bell indicating that an alarm is set.
WATCH_INDICATOR_SIGNAL
The hourly signal indicator.
Also useful for indicating that sensors are on.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
e6d8b6aaff
faces/clock: define general indication function
...
Sets or clears the specified indicator based on some boolean value.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
01312c2deb
faces/clock: move structure definition
...
Instances of the clock state structure
are only passed to the clock face itself
and only via the opaque context pointer.
No other code uses it.
Thus there is no need to expose it in a header file.
So make it an implementation detail of the watch face
by localizing it inside the translation unit.
2024-02-25 15:24:14 -03:00
Matheus Afonso Martins Moreira
8f040252fd
faces: rename simple_clock_face to clock_face
...
It's not actually so simple and will only gain features from now on.
Just "clock face" also feels more canonical.
2024-02-24 18:53:07 -03:00
Wesley Aptekar-Cassels
3703d565ed
Merge pull request #337 from theAlexes/theAlexes/wyoscan-zero
...
make the zero in wyoscan a little more visually appealing
2024-01-21 02:35:32 -05:00
Wesley Aptekar-Cassels
fe48776dae
Merge branch 'main' into watch-face-day-night-percentage
2024-01-21 02:04:20 -05:00
Wesley Aptekar-Cassels
e9fe4aeefe
Enable custom signal tones in LE mode.
...
This makes movement_play_signal synchronous when in LE mode, despite
using the underlying asynchronous API. It's a bit of a hack, but it
should work well enough for now.
This also moves the enabling/disabling of the buzzer into the
movement_play_signal function, so that watch faces no longer have to do
it.
2024-01-09 16:22:21 -05:00
Wesley Aptekar-Cassels
6f4917a0d5
Revert "Merge pull request #283 from neutralinsomniac/fix_hourly_chime_background"
...
This reverts commit 5c94111ea2 , reversing
changes made to bc9b4ce700 .
2024-01-09 16:22:21 -05:00
Alex Maestas
dd9ca10122
make the zero in wyoscan a little more visually appealing
2023-12-08 22:11:56 +00:00
Alex Utter
7802994854
Fix missing documentation for many clock faces:
...
* Move from .c to .h as needed for consistency.
* When missing from both, copy from pull request or wiki.
* When missing entirely, infer functionality from source code.
2023-11-27 23:06:19 -05:00
Wesley Aptekar-Cassels
691f2fe506
day_night_percentage_face: Clear seconds digits when entering LE mode.
2023-11-09 20:31:56 -05:00