A real-time dashboard showing Germany's renewable electricity share with weather conditions and historical progress toward the 2030 renewable energy target.
- Today's Renewable Share: Live percentage of electricity from renewable sources
- Weather Conditions: Sun hours and wind speed affecting renewable generation
- Historical Progress: Visual timeline from 2000 to 2030 EEG target (80%)
- Smart Caching: Efficient data fetching with 1-hour cache
- Incremental Updates: Fast yearly average updates (only fetches new data)
- ENTSO-E: Renewable generation data (15-minute intervals)
- SMARD: Electricity consumption data (hourly)
- Open-Meteo: Weather data (daily forecasts)
- Install dependencies:
pip install -r requirements.txt- Create
.envfile with your ENTSOE API key:
ENTSOE_API_KEY=your_key_here
- Run the dashboard:
streamlit run dashboard.py- Dashboard auto-refreshes data every hour
- Click 🔄 Update button to:
- Refresh today's renewable share
- Update this year's average
- Fetch latest available data
- Today's data: Cached for 1 hour
- Weather: Cached in session state
- Yearly average: Incremental updates (only fetches last 2 weeks + new data)
Bottleneck Filtering: Only uses data where BOTH generation and consumption are available, ensuring accurate calculations.
Incremental Updates: The yearly average is calculated by:
- Storing finalized data (older than 2 weeks)
- Only fetching recent data on updates
- Subsequent daily updates take ~10 seconds instead of minutes