Generates an e-ink-ready image of Zonneplan's quarter-hourly dynamic electricity prices for the TRMNL display. Use the rendered PNG/BMP with the TRMNL Image display or Alias plugin.
The hourly GitHub Actions workflow publishes the latest images to GitHub Pages:
The raw gnuplot render (hours.png) and its data file (hours.dat) aren't published — each run is archived under history/YYYY/MM/ instead.
self.__next_f.push([...])) for the electricity block's price arrays. The 15-minute quarters array is preferred; the 60-minute hours array is the backstop.https://api.energyzero.nl/v1/energyprices), which only serves hourly prices. Pricing profile (low / normal / high) is then classified by quartile bucketing across the day's prices.set mono, one solid bar per entry shaded by pricing profile) — that's the TRMNL display resolution.priceTotalTaxIncluded is an integer; divide by Zonneplan::PRICE_DIVISOR (100_000) to get EUR/kWh.
.github/workflows/build.yml runs on push to main, PRs, manual dispatch, and an hourly cron (5 * * * *). Each run:
gnuplot-nox + imagemagick (apt archives cached between runs)../script/build.build/index.html.hours.png and hours.dat under history/YYYY/MM/DD-HHMM* and commits the snapshot back to main.build/ to GitHub Pages.Prerequisites:
brew install gnuplot imagemagick # Ruby 3.3 also requiredThen:
./script/buildOutputs land in build/. The script forces TZ=Europe/Amsterdam so the chart aligns with Dutch wall-clock time regardless of host TZ.
bundle exec rspecPlain RSpec unit tests — no fixtures, no HTTP stubbing.