Files
Sensor-Watch/movement_faces.h
T
Raffael Mancini ff3c8a72fc 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.
2026-02-21 18:06:31 +01:00

85 lines
2.8 KiB
C

/*
* MIT License
*
* Copyright (c) 2022 Joey Castillo
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#pragma once
#include "clock_face.h"
#include "beats_face.h"
#include "world_clock_face.h"
#include "alarm_face.h"
#include "advanced_alarm_face.h"
#include "countdown_face.h"
#include "stopwatch_face.h"
#include "fast_stopwatch_face.h"
#include "sunrise_sunset_face.h"
#include "moon_phase_face.h"
#include "days_since_face.h"
#include "character_set_face.h"
#include "accelerometer_status_face.h"
#include "all_segments_face.h"
#include "temperature_display_face.h"
#include "temperature_logging_face.h"
#include "activity_logging_face.h"
#include "voltage_face.h"
#include "set_time_face.h"
#include "settings_face.h"
#include "light_sensor_face.h"
#include "irda_upload_face.h"
#include "chirpy_demo_face.h"
#include "finetune_face.h"
#include "nanosec_face.h"
#include "mars_time_face.h"
#include "peek_memory_face.h"
#include "ish_face.h"
#include "breathing_face.h"
#include "close_enough_face.h"
#include "tarot_face.h"
#include "kitchen_conversions_face.h"
#include "periodic_table_face.h"
#include "squash_face.h"
#include "totp_face.h"
#include "totp_lfs_face.h"
#include "tally_face.h"
#include "probability_face.h"
#include "ke_decimal_time_face.h"
#include "baby_kicks_face.h"
#include "counter_face.h"
#include "pulsometer_face.h"
#include "interval_face.h"
#include "timer_face.h"
#include "simple_coin_flip_face.h"
#include "lis2dw_monitor_face.h"
#include "wareki_face.h"
#include "deadline_face.h"
#include "wordle_face.h"
#include "blackjack_face.h"
#include "endless_runner_face.h"
#include "higher_lower_game_face.h"
#include "lander_face.h"
#include "simon_face.h"
#include "ping_face.h"
#include "rtccount_face.h"
#include "local_solar_time_face.h"
// New includes go above this line.