How evanputra1/periksa-cuaca works
This is a browser-based weather forecast app. Users search by city or request their current location; the app resolves coordinates, fetches a forecast, selects one entry per day, and renders a current-weather panel plus forecast cards. The sampled JavaScript shows these flows and their OpenWeatherMap and browser geolocation calls. The HTML structure is represented by the tree, but its contents were not sampled.
Main entry points: index.html Weather Page · script.js Forecast Fetch
Components 11
User Inputs
- Weather Page
index.html - City Search
script.js - Location Lookup
script.js
Forecast Workflow
- Forecast Fetch
script.js - Daily Selection
script.js - Weather Cards
script.js
External Services
- Browser Geolocation
- City Geocoding
- Reverse Geocoding
- Forecast API
Other components
- User
Connections 12
- User → Weather Page: uses
- Weather Page → City Search: searches
script.js - Weather Page → Location Lookup: requests location
script.js - City Search → City Geocoding: looks up city
script.js - City Geocoding → Forecast Fetch: passes coordinates
script.js - Location Lookup → Browser Geolocation: gets position
script.js - Location Lookup → Reverse Geocoding: resolves city
script.js - Reverse Geocoding → Forecast Fetch: passes coordinates
script.js - Forecast Fetch → Forecast API: requests forecast
script.js - Forecast Fetch → Daily Selection: filters days
script.js - Daily Selection → Weather Cards: formats entries
script.js - Weather Cards → Weather Page: renders panels
script.js