A lightweight web application that displays GB's green energy forecast, helping users identify the "greener nights" when electricity is sourced from more renewable wind energy.
π Live Demo: https://jpsingleton.github.io/green-british-energy-forecast/
Greener Nights visualizes GB's green energy forecast over several days, indicating when electricity is likely to come from cleaner, more renewable sources. The application uses a "greenness index" to rate each day as HIGH, MEDIUM, or LOW based on renewable energy availability.
This tool can help you:
- Plan energy-intensive tasks (like running appliances, charging electric vehicles, etc.) during greener periods
- Reduce your carbon footprint by shifting electricity usage to times with higher renewable energy generation
- Stay informed about GB's energy mix trends
- π Visual Forecast Display: Shows multiple days of green energy forecast data
- π¨ Color-Coded Ratings:
- π’ GREEN (HIGH): Best time for energy consumption
- π‘ ORANGE (MEDIUM): Moderate renewable energy
- π΄ RED (LOW): Lower renewable energy availability
- π Live Data: Fetches real-time forecast data
- π± Responsive Design: Works on desktop and mobile devices
- π Easter Egg: Special surprise on Christmas Day!
The application fetches green energy forecast data from a JSON API and displays:
- Date: The forecast date
- Greenness Score: A numerical score (0-100) indicating renewable energy levels
- Visual Indicators: Symbols showing the intensity of renewable energy
+for HIGH greennessβ’for MEDIUM greenness-for LOW greenness
- Greener Night Markers: Arrows (
βandβ) highlight the optimal nights- Smaller grey arrows for nights that were previously optimal but now superseded
Simply open in your browser. The forecast automatically loads and can be refreshed using the "Refresh" button.
The application fetches forecast data from https://github.com/jpsingleton/greener-nights-history:
https://jpsingleton.github.io/greener-nights-history/greener-nights-history.jsonThis works without needing CORS headers.
- HTML5: Structure
- CSS3: Styling with a dark theme optimized for readability
- Vanilla JavaScript: Async data fetching and DOM manipulation
- GitHub Pages: Hosting
π Help reduce your carbon footprint, use energy during greener nights.