]> git.earman.xyz Git - sensor-watch.git/commit
Implement local solar time face
authorRaffael Mancini <raffael.mancini@mnhn.lu>
Sat, 21 Feb 2026 17:06:19 +0000 (18:06 +0100)
committerRaffael Mancini <raffael.mancini@mnhn.lu>
Sat, 21 Feb 2026 17:06:31 +0000 (18:06 +0100)
commitff3c8a72fced39b858f464c9b5f573450d3e1645
tree2b498b516e733d5e0dba7370bd8ec8f571466c07
parent84c119559dc9a5ba4be0a5f8d51934129a3b6579
Implement local solar time face

Full implementation of the local solar time complication using the
pveducation.org formula set (LSTM, B, EoT, TC, LST, HRA). EoT and TC
are cached by day-of-year and recomputed once at midnight rollover.

Three display modes cycle with the Alarm button:
  SO HH:MM:SS  — Local Solar Time
  nO HH:MM     — Solar Noon in local clock time
  Hr ±DDD      — Hour Angle in degrees

Location is read from location.u32 on the filesystem. In the simulator
the browser lat/lon globals are written to location.u32 on activation
if not already set, fixing the "no Loc" issue in the emulator.
movement_config.h
movement_faces.h
watch-faces.mk
watch-faces/complication/local_solar_time_face.c [new file with mode: 0644]
watch-faces/complication/local_solar_time_face.h [new file with mode: 0644]