ComEd Hourly Pricing iCal Feed

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

Query Parameters

All optional. Defaults give a ~48-hour window with fine-grained sensitivity.

ParamDefaultUnitDescription
sensitivity0.1cents/kWhMinimum price change to generate an event. 0.1 = $0.001/kWh.
lookback24hoursHow far back to fetch historical 5-minute prices.
lookforward24hoursHow far forward to include day-ahead prices. Set to 0 to skip.

Examples

# 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

Data Sources

  • Historical (past): ComEd 5-Minute Price API — returns 5-minute interval prices, which we average into hourly buckets.
  • Day-ahead (future): ComEd's /rrtp/ServletFeed?type=daynexttomorrow — returns hourly day-ahead market prices for the next day (when available).

Calendar Events

Each event spans one hour and represents a price change from the previous hour:

  • Summary: ↑ 3.7c/kWh (+0.9c) or ↓ 2.1c/kWh (-0.3c)
  • Description: Plain text explanation with a link to ComEd Live Prices

Hours where the price is stable (change below the sensitivity threshold) produce no event, so gaps in the calendar mean steady pricing.

Deploying

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.