How sarveshwaran20/global-temperature-tracker works
The repository is a browser-based temperature-tracking and climate-awareness platform, with a Flask/MySQL community pledge and voting backend. The main user workflow is viewing city temperatures and comparing weather; separate pages provide climate education, maps, alerts, and Earth-pulse content. Sampled JavaScript shows direct calls to OpenWeatherMap and a climate-news service, while the backend routes pledge and vote requests through database operations. Some page wiring and feature implementations are unsampled, so their internal connections are left unspecified.
Main entry points: script.js Browser logic · web_server.py Pledge and vote API · database_operations.py Database operations · generate_sample_data.py Sample data generator
Components 16
Web experience
- Home page
index.html - Temperature views
data.html - Interactive map
map.html - Browser logic
script.js
Climate content
- Awareness page
awareness.html - Climate alerts
alert.html - Earth pulse
earth_pulse.html - Climate news
Community backend
- Pledge and vote API
web_server.py - Database operations
database_operations.py - MySQL store
- Flask runtime
Temperature data
- Weather service
- Temperature CSV
global_temperatures.csv - Sample data generator
generate_sample_data.py
Other components
- Visitor
Connections 12
- Visitor → Home page: opens
README.md - Visitor → Temperature views: views
README.md - Visitor → Interactive map: views
README.md - Visitor → Awareness page: visits
README.md - Visitor → Climate alerts: views
README.md - Visitor → Earth pulse: views
README.md - Browser logic → Weather service: fetches weather
script.js - Browser logic → Climate news: fetches news
script.js - Sample data generator → Temperature CSV: writes sample
generate_sample_data.py - Pledge and vote API → Database operations: calls
web_server.py - Database operations → MySQL store: reads and writes
database_operations.py - Flask runtime → Pledge and vote API: runs routes
web_server.py