A web application that estimates carbon footprint based on your location using weather data and electricity carbon intensity information.
- Real-time geolocation using browser's built-in capabilities
- Interactive 2D world map showing user location
- Weather data from OpenWeather API
- Carbon intensity data from Electricity Map API
- Fallback values when APIs are unavailable
- Modern, responsive design
-
Get API keys:
- Sign up for a free API key at OpenWeather
- Sign up for an API key at Electricity Map
-
Configure API keys:
- Open
config.js - Replace
YOUR_OPENWEATHER_API_KEYwith your OpenWeather API key - Replace
YOUR_ELECTRICITYMAP_API_KEYwith your Electricity Map API key
- Open
-
Run the application:
- Open
index.htmlin a modern web browser - Allow location access when prompted
- Open
- HTML5 Geolocation API
- Leaflet.js for map visualization
- OpenWeather API for weather data
- Electricity Map API for carbon intensity data
- Modern CSS with responsive design
The application includes fallback values when APIs are unavailable or not responding. These values are approximations and should not be used for critical decisions.