How anslpv/weather-app works
A small browser weather app lets a user search for a city, fetches its current conditions and multi-day forecast from Open-Meteo, and displays the results. It remembers the last searched city in browser storage and reloads it on startup. The graph reflects the workflow visible in script.js; the HTML and CSS were not sampled, so the user-to-form interaction is shown as unverified.
Main entry points: script.js Weather loader
Components 9
App interaction
- Search form
script.js - Weather loader
script.js - Current conditions
script.js - Forecast cards
script.js
Weather data
- Weather labels and icons
script.js - Open-Meteo geocoding
- Open-Meteo forecast
Saved preference
- Last city
Other components
- User
Connections 10
- User → Search form: submits
- Search form → Weather loader: loads city
script.js - Last city → Weather loader: restores city
script.js - Weather loader → Open-Meteo geocoding: looks up city
script.js - Weather loader → Open-Meteo forecast: fetches weather
script.js - Weather loader → Current conditions: renders results
script.js - Current conditions → Forecast cards: renders days
script.js - Current conditions → Weather labels and icons: gets description and icon
script.js - Forecast cards → Weather labels and icons: gets icons
script.js - Weather loader → Last city: saves city
script.js