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.
This commit is contained in:
@@ -80,4 +80,5 @@
|
||||
#include "simon_face.h"
|
||||
#include "ping_face.h"
|
||||
#include "rtccount_face.h"
|
||||
#include "local_solar_time_face.h"
|
||||
// New includes go above this line.
|
||||
|
||||
Reference in New Issue
Block a user