Skip to content

Conversation

@BaigHack3rss
Copy link

@BaigHack3rss BaigHack3rss commented Nov 29, 2025

Updates

New Helper

  • NSunCalc: Added a helper that computes sunrise and sunset using the NOAA formulas.

Config Enhancements

  • ConfigManager extended with:
    • latitude and longitude options
    • Support for SUN-based profile times (sunrise/sunset–driven scheduling)

Behavior Changes

  • Emit a warning when two profiles share the same clock slot.
  • Skip profiles when required sun events (sunrise/sunset) are missing.

Testing Notes

  • Verified locally.
  • Original features continue to function.
  • Sunset computation works as expected.
  • Sunrise computation works as expected.
  • Automatic updating of sunrise/sunset times functions correctly.
    • The precise update interval is uncertain: likely on restart (possibly daily, but unverified).

- add NSunCalc helper that computes sunrise/sunset with NOAA formulas
- extend ConfigManager with latitude/longitude options and SUN-based profile times
- warn when two profiles share a clock slot and skip profiles with missing sun events

Tests: Tested locally; Original features work, sunset works according to
my knowledge, sunrise not tested (2:00 am right now)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant