How mguenther-build/wetterapp works
This is a bilingual weather website combining live forecasts with historical station data. Visitors navigate localized pages, choose a city for a forecast, or select a station and date to view archived temperatures and yearly charts. Flask routes serve pages and JSON APIs; the browser scripts request data and render the interactive views. The source excerpts show these main calls, but not the templates’ script wiring or the contents of the referenced weather-data directory.
Main entry points: script.js Navigation and language · archive_route.py Archive endpoints · base.py Flask app setup · appRoutes.py Page routes
Components 19
Website and navigation
- Page routes
app/routes/appRoutes.py - Page templates
app/templates - Navigation and language
app/static/js/script.js - Language strings
app/static/languages
Live forecast
- Forecast interface
app/static/js/forecast.js - Forecast page
app/templates/forecast.html - Forecast endpoint
app/routes/forecast_route.py - Forecast retrieval
app/api/forecast_API.py - City geocoding
app/api/geo_API.py
Weather archive
- Archive interface
app/static/js/archive.js - Archive page
app/templates/archive.html - Archive endpoints
app/routes/archive_route.py - Archive file access
app/api/archive_API.py - Station weather files
Application services
- Flask app setup
app/base.py - Response cache
app/base.py
Other components
- Visitor
- Forecast provider
- Geocoding provider
Connections 19
- Visitor → Page routes: opens pages
app/routes/appRoutes.py - Page routes → Page templates: renders
app/routes/appRoutes.py - Visitor → Navigation and language: uses navigation
- Navigation and language → Language strings: fetches language
app/static/js/script.js - Page routes → Archive file access: loads stations
app/routes/appRoutes.py - Navigation and language → Forecast interface: initializes
app/static/js/script.js - Navigation and language → Archive interface: initializes
app/static/js/script.js - Forecast interface → City geocoding: requests geocoding
app/static/js/forecast.js - Forecast interface → Forecast endpoint: requests forecast
app/static/js/forecast.js - Forecast endpoint → Forecast retrieval: gets forecast
app/routes/forecast_route.py - Forecast retrieval → Forecast provider: requests data
app/api/forecast_API.py - City geocoding → Geocoding provider: requests locations
app/api/geo_API.py - Archive interface → Archive endpoints: requests archive data
app/static/js/archive.js - Archive endpoints → Archive file access: loads station data
app/routes/archive_route.py - Archive file access → Station weather files: reads files
app/api/archive_API.py - Archive endpoints → Response cache: memoizes results
app/routes/archive_route.py - Flask app setup → City geocoding: registers geocoding
app/base.py - Flask app setup → Archive endpoints: registers routes
app/base.py - Flask app setup → Forecast endpoint: registers routes
app/base.py