How depuntism/weather_station_pi works
Weather News Station runs a one-shot update cycle: it fetches weather and French headlines, composes a two-color dashboard, then updates or sleeps the e-paper display. Its optional pressure/temperature history graph uses persisted readings; the README also documents nighttime clearing, periodic hardware recovery, and six-minute scheduling. Weather/news API details and the rendering/driver calls are visible in excerpts; scheduling and several recovery branches are documented but not fully sampled.
Main entry points: Assistant_main.py Cycle coordinator · graph.py History graph · weather.py Forecast data · news.py French headlines
Components 14
Update cycle
- Cycle coordinator
Assistant_main.py - Six-minute trigger
weathernews.timer
Weather and news
- Forecast data
weather.py - French headlines
news.py - Air quality
weather.py
Dashboard rendering
- Canvas and icons
display.py - History graph
tools/graph.py - Graph history
E-paper hardware
- Panel driver
epd7in5b_V2.py - GPIO and SPI
epdconfig.py
Other components
- Station operator
- Open-Meteo
- CurrentsAPI
- Waveshare e-paper
Connections 14
- Station operator → Cycle coordinator: starts cycle
README.md - Six-minute trigger → Cycle coordinator: triggers cycle
README.md - Cycle coordinator → Forecast data: requests forecasts
Assistant_main.py - Forecast data → Open-Meteo: fetches forecast
weather.py - Cycle coordinator → French headlines: requests headlines
Assistant_main.py - French headlines → CurrentsAPI: fetches headlines
news.py - Cycle coordinator → Canvas and icons: draws dashboard
Assistant_main.py - Cycle coordinator → History graph: draws optional graph
Assistant_main.py - History graph → Forecast data: reads history inputs
tools/graph.py - History graph → Graph history: reads/writes
tools/graph.py - Cycle coordinator → Panel driver: initializes and updates
README.md - Panel driver → GPIO and SPI: uses hardware interface
epd7in5b_V2.py - GPIO and SPI → Waveshare e-paper: controls panel
README.md - Cycle coordinator → Air quality: optional data use
Assistant_main.py