Day/night backlight color#265
Conversation
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com> Co-Authored-By: GPT-5.5-xhigh
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com> Co-Authored-By: GPT-5.5-xhigh
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com> Co-Authored-By: GPT-5.5-xhigh
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com> Co-Authored-By: GPT-5.5-xhigh
|
Per your sunrise/sunset comment - any way this could be tied to the timeline pins the watch is already generating for this? If so, then there would be no need to set manually (this might be what you're doing already!) |
|
This is way too complicated - the watch already knows sunrise/sunset times via the weather blobdb. This only needs to be literally adding two prefs (enabled/color). Also this doesn't need a capability bit - the watch will ignore unknown pref keys. |
Thanks for the review, will take another crack at it today or tomorrow. |
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com> Co-Authored-By: GPT-5.5-xhigh
|
I spent some time thinking about your review and also the feedback I got over on coredevices/PebbleOS#1596, specifically the desire to allow user configuration of when to start/end night ("sunset and sunrise"). Changes in c2ad6c6 Currently, sunrise/sunset from the weather API is communicated to timeline via timelinedb, not weatherdb. And although we could, in principle, read out those pins for the original scope (where user cannot configure night start/stop), that won't work well for a user-configurable case: we need to be able to send the times over whether they're sourced from the weather API or from the user setting them manually. Hence, I ripped out the (overcomplicated, as you said) solar calculation code and replaced it with code to grab the times from the weather API -- if the user has so configured. There are also some UI changes to allow user to choose to set by weather API or manually. Screenshots attached. I left in the prefs for sunrise/sunset times, since:
The other thing worth calling out here is that I left in the cap bit. The reason is that the UI should not display the options for night time color setting if the watch doesn't have firmware to support it. The only other way I could figure to do this would be to have a condition around the firmware version i.e. Open to alternatives here.
|
Signed-off-by: Nick Ludwig <nick.b.ludwig@gmail.com> Co-Authored-By: GPT-5.5-xhigh
|
@sjp4 PTAL again when you have time |



Problem
Would be nice if watches with RGB backlight could automatically switch backlight color, with one color for day and one for night.
See coredevices/PebbleOS#1139.
Solution
For watches that have RGB backlight, add
default_color_nightstate along with time tracking for sunset/sunrise.Notes
Backlight Colorthere is (for supported watches):Change Backlight Color at Night; when checked, show twoColors:Day ColorandNight Color