Skip to content

Dark theme for charts (DARKMODE) and a 🔄 under the dashboard - #59

Merged
robdevops merged 2 commits into
mainfrom
claude/envirobot-next
Nov 1, 2026
Merged

robdevops merged 2 commits into
mainfrom
claude/envirobot-next

Conversation

@robdevops

Copy link
Copy Markdown
Owner

DARKMODE

DARKMODE=off (default) keeps the light charts; on draws every chart dark; auto draws them dark from 21:00 to 07:00 in the bot's time zone. The chart furniture (background, text, grid, axis, panel cards, rain bars and scale, the wind rose) comes from a light or dark theme chosen as each chart is drawn; wind, CO₂ and humidity lines are lifted on the dark background. Cached charts (period buttons, drawn ahead, uploaded, alert charts) remember their theme and are redrawn after the switch. Four dark reference images join the chart tests; documented in docs/configuration.md and docs/features.md.

Dashboard refresh

The dashboard carries a 🔄 (rp:dashboard) like the report's: a press draws the gauges again with the latest readings and the time in the title, in the same message; a station that doesn't answer leaves it as it was with a toast.

Also

The interrupted-archive test stops its first run after six fetches instead of 0.6 s of wall time, which made it fail on fast machines whatever the code did.

Checks: python -m pytest -q (1081 passed) and python scripts/eval_prompts.py (90 of 90).


Generated by Claude Code

Like the report's: the button (rp:dashboard, report_menu.dashboard_keyboard) rides on the dashboard's picture, and a press draws the
gauges again with the latest readings and the time in the title, editing the picture in place; a station that doesn't answer leaves
it as it was with a toast, and a press with no station gets the out-of-date button answer.

Also: the interrupted-archive test stops the first run after six fetches instead of 0.6 s of wall time, which on a fast machine
was enough to fetch everything (or nothing) and made it fail whatever the code did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… bot's time zone) for every chart

The charts' furniture (background, text, grid, axis, panel cards, rain bars and scale, the wind rose's speeds) comes from a light or
a dark theme, chosen per chart as it is drawn; lines that would be lost on the dark background (wind, CO2, humidity) are lifted, and
blends and dot rims that went towards white go towards the background. The dark background is the dashboard's. A chart kept for
the period buttons, drawn ahead or uploaded remembers its theme and is not reused after the theme changes. Four dark reference
images join the chart tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
@robdevops
robdevops merged commit c18a7b3 into main Nov 1, 2026
4 checks passed
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.

2 participants