An iCal calendar feed of ComEd electricity price changes, generated from their real-time and day-ahead pricing APIs. Subscribe to it in any calendar app to see when prices shift.
The feed pulls the last 24 hours of 5-minute prices (averaged into hourly buckets) and the next day's hourly day-ahead prices, then emits a calendar event for each hour where the price changed significantly from the previous hour.
Live endpoint:
joshbeckman--d23ef674150811f1a11742dde27851f2.web.val.run
All optional. Defaults give a ~48-hour window with fine-grained sensitivity.
| Param | Default | Unit | Description |
|---|---|---|---|
sensitivity | 0.1 | cents/kWh | Minimum price change to generate an event. 0.1 = $0.001/kWh. |
lookback | 24 | hours | How far back to fetch historical 5-minute prices. |
lookforward | 24 | hours | How far forward to include day-ahead prices. Set to 0 to skip. |
# Default: ~48hr window, events on any 0.1¢+ change
/
# Only show large price swings (0.5¢+), last 12 hours + next 12
/?sensitivity=0.5&lookback=12&lookforward=12
# Historical only, no day-ahead prices
/?lookforward=0
# Very sensitive, full window
/?sensitivity=0.01
/rrtp/ServletFeed?type=daynexttomorrow —
returns hourly day-ahead market prices for the next day (when available).Each event spans one hour and represents a price change from the previous hour:
↑ 3.7c/kWh (+0.9c) or ↓ 2.1c/kWh (-0.3c)Hours where the price is stable (change below the sensitivity threshold) produce no event, so gaps in the calendar mean steady pricing.
This is a Val.town HTTP val. The source is in
comed-ical.ts — deploy it as a new val with the "HTTP" type and it will serve
the iCal feed at the val's URL.