Theme Sender
RustEvery screen's theme, from the sun
Works out where you are, when the sun rises and sets there today, and publishes a theme for each part of the day over MQTT, so every screen subscribed to it goes dark at night and light by day together.
The day is split the way the sky is: night, astronomical, nautical and civil dawn, sunrise, day, and the same dusks back down, each with its own theme from dark through dark-dimmed and dark-soft to light-soft and light. It republishes every few minutes, so a screen that has just woken up catches up.
Send a theme to the override topic, or use the theme-override tool, and that theme holds until the next change in the sky, then the sun takes over again. Reverting early is one more message.
HIGHLIGHTS
- Themes from sunrise, sunset and every twilight
- Location from your IP, no setup
- Published over MQTT on a schedule
- Overrides that last until the next solar change
- theme-override CLI to set and revert
- MQTT username and password auth