Skip to content

Fix failing build: add EnergyZero API fallback for price data#3

Merged
LeipeLeon merged 1 commit intomainfrom
claude/fix-github-action-t9PIr
Mar 23, 2026
Merged

Fix failing build: add EnergyZero API fallback for price data#3
LeipeLeon merged 1 commit intomainfrom
claude/fix-github-action-t9PIr

Conversation

@LeipeLeon
Copy link
Owner

The Zonneplan website appears to have changed its structure (likely
migrated from Next.js Pages Router to App Router), causing the
NEXT_DATA scraping to fail since Feb 6.

This adds the EnergyZero public API (api.energyzero.nl) as a fallback
data source for Dutch day-ahead electricity prices. The script now:

  • Tries the original Zonneplan scraping first
  • Falls back to EnergyZero API if scraping fails
  • Logs diagnostic info to stderr for easier debugging
  • Calculates pricing profiles (low/normal/high) based on quartiles

https://claude.ai/code/session_01VmtABXetZibNe335hc87C7

The Zonneplan website appears to have changed its structure (likely
migrated from Next.js Pages Router to App Router), causing the
__NEXT_DATA__ scraping to fail since Feb 6.

This adds the EnergyZero public API (api.energyzero.nl) as a fallback
data source for Dutch day-ahead electricity prices. The script now:
- Tries the original Zonneplan scraping first
- Falls back to EnergyZero API if scraping fails
- Logs diagnostic info to stderr for easier debugging
- Calculates pricing profiles (low/normal/high) based on quartiles

https://claude.ai/code/session_01VmtABXetZibNe335hc87C7
@LeipeLeon LeipeLeon merged commit 88f84c3 into main Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants