How pcarballo07/clim_app works
clim_app is a console application for recording and consulting weather observations in Madrid, backed by JSON history. Its main workflow starts at the menu, then registers a dated station measurement (validating inputs and handling duplicates) or searches history by zone. The README also documents historical data prepared from AEMET; the repository has an AEMET fetch-and-transform script and a separate alert evaluator, but the sampled application entry point does not connect either to the menu workflow. The data-file relationship is explicit in the source; other unsampled data contents are not inferred.
Main entry points: main.py App menu · store.py JSON persistence · descargar_aemet.py AEMET extraction and normalization · validations.py Input validation
Components 11
Console app
- App menu
main.py - Measurement registration
main.py - Zone history search
main.py
Weather domain
- Input validation
validations.py - Alert evaluation
alerts.py
JSON data
- JSON persistence
store.py - Observation history
data/mock_real.json
Historical ingestion
- AEMET extraction and normalization
utils/descargar_aemet.py - Historical climate dataset
data/clima_mock.json
Other components
- Operator
- AEMET OpenData
Connections 10
- Operator → App menu: selects action
main.py - App menu → Measurement registration: routes to
main.py - App menu → Zone history search: routes to
main.py - Measurement registration → JSON persistence: loads and saves
main.py - Measurement registration → Input validation: validates with
main.py - Zone history search → Input validation: selects zone with
main.py - Zone history search → JSON persistence: loads history
main.py - JSON persistence → Observation history: reads and writes
store.py - AEMET extraction and normalization → AEMET OpenData: requests observations
utils/descargar_aemet.py - AEMET extraction and normalization → Historical climate dataset: writes dataset
utils/descargar_aemet.py