A comprehensive web application for tracking global temperatures and promoting climate change awareness through interactive features and pledge systems.
- Real-time temperature data for multiple cities
- Interactive graphs comparing temperature changes
- 5-day weather forecasts
- Historical temperature analysis
- Educational content about global warming
- Interactive quiz with climate facts
- Carbon footprint calculator
- Timeline of climate change events
- Pledge System: Users can take pledges to help combat climate change
- Voting System: Community polls on climate solutions
- Device-based Tracking: One pledge/vote per device for fair participation
- Real-time Counter: Live display of total pledges taken
- Responsive Design: Works on all devices
- Lazy Loading: Optimized performance
Global_Temperature_Tracker/
├── index.html # Main landing page
├── awareness.html # Climate awareness page with pledge system
├── data.html # Temperature data visualization
├── map.html # Interactive map view
├── pledge_server.py # Flask backend API
├── script.js # Frontend JavaScript
├── styles.css # Styling
├── requirements.txt # Python dependencies
├── global_temperatures.csv # Sample temperature data
└── README.md # This file
pip install -r requirements.txt
python pledge_server.py
The server will run on http://localhost:5000
Open index.html
in your web browser to access the application.
GET /get_pledge
- Get current pledge countPOST /take_pledge
- Take a new pledgePOST /has_pledged
- Check if device has pledgedPOST /reset_pledge
- Reset all pledges (admin)GET /get_votes
- Get current vote countsPOST /vote
- Cast a votePOST /has_voted
- Check if device has votedPOST /reset_votes
- Reset all votes (admin)
- Weather Icons: Added visual weather indicators
- Graph Improvements: Only display completed/current month data
- Enhanced Weather Info: Additional meteorological data
- Responsive Layout: Split page into containers
- Temperature Comparison: Interactive graphs
- 5-Day Forecast: Extended weather predictions
- Mobile Optimization: Improved phone viewing
- Auto-loading Data: Predetermined temperature updates
- Complete Re-theme: Modern design overhaul
- Batch Data Fetching: Optimized data loading
- Removed Satellite Images: Streamlined functionality
- Pledge System: Complete backend integration
- Voting System: Community engagement features
- Performance Optimization: Lazy loading and caching
- Code Cleanup: Removed debug logs and test functions
- Error Handling: Improved reliability and user experience
- All major pages (index, data, map, alert, awareness, earth_pulse) now fully support dark mode.
- Tables, buttons, banners, input fields, and map overlays adapt automatically when the theme is toggled.
- To switch themes, use the "Toggle Theme" button on any page. Your preference is saved for future visits.
- Improved accessibility and color contrast for all interactive elements in both light and dark modes.