Skip to content

Add Scheduled day & night cycle mode - #1230

Open
leafyboat wants to merge 1 commit into
117HD:masterfrom
leafyboat:scheduled-cycle-mode
Open

leafyboat wants to merge 1 commit into
117HD:masterfrom
leafyboat:scheduled-cycle-mode

Conversation

@leafyboat

@leafyboat leafyboat commented Oct 22, 2026 •

Copy link
Copy Markdown

Sample code implementation to go along with #1229

Lets the sun rise and set at configured times of day on the system clock. This works by letting the user set sunrise and sunset times, then we remap the cycle times proportionally to match.

Tested locally at about 19:27 local time, here's what it does:

daynight_compressed.mp4

Lets the sun rise and set at configured times of day on the system clock.
Each scheduled day and night is stretched over the sun's actual day and
night at the configured location, preserving its seasonal path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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