Repository navigation
Alerts, report and cache clean-ups - #41
Merged
Merged
Conversation
…default: where they are now) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…resolve, clear unwritable error; Matplotlib cache in the data folder; read the commit without running git Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…start Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Pressing it fetches the report again and redraws it in the same message. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
- Startup Alerts line is built from the alert types that actually started (same names as the buttons), wrapped at 90 chars; a warning names any that did not - Remove the rain-likely alert (the status report's outlook stays) - Rename kinds air/pollen/irrigation to particulates/pollen_and_asthma/irrigation_battery, the monitors and files to match (ParticulatesMonitor, PollenAndAsthmaMonitor, IrrigationDailyCheck) and the saved cursors; the irrigation cursor is split into irrigation_daily_check and irrigation_watchdog - History cache startup line: path and size only Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…py); cursor irrigation_monitor; log results under 90 chars Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
The weather_now rain_outlook field, the status report's outlook, the rain chart caption's outlook line and the scoring in outlook.py are gone. The rain helpers the alerts use live on in lib/ecowitt/rain.py. The status report still says it is raining, from the current rain rate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
…adings summary, archive start line only for long runs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… its heading Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
… mac, cycle, group and field scripts/migrate_cache.py converts an existing file in place (bot stopped); the fixture in tests/data is converted too (1.3 MB -> 0.3 MB, identical contents). Values stay text, so every output is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Report
Weather station (12:18pm); heading names in boldAlerts
Alerts:line lists the alert types that actually started (same names as the buttons), wrapped at 90 characters; a warning names any that did not startair→particulates,pollen→pollen_and_asthma,irrigation→irrigation_battery; monitors and files renamed to match (ParticulatesMonitor,PollenAndAsthmaMonitor,IrrigationMonitor), saved cursors tooLogs
ecobot:prefix on the main script's lines; other modules keep their nameslib/ecowitt/station.pyis nowsource.py, like the other sourcesEcowitt cache
To deploy (stop the bot first)
python scripts/migrate_cache.py <ecowitt_cache.sqlite>(keeps<file>.old; safe to run twice)🤖 Generated with Claude Code
https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Generated by Claude Code