projects / ev-charging-optimizer
EV Charging Optimizer
Charges your EV by the grid, not the clock. Nord Pool spot prices for SE1 to SE4 plus grid carbon intensity, before your deadline.
- SE1 to SE4 Nord Pool price zones Region-aware fetch
- 5 s Live price and carbon tick WebSocket /api/live
- 1 Railway service for API and PWA Deploy config
Overview
Problem
Wallbox and car apps schedule charging by the clock, not by what the grid costs or emits.
Approach
An Ionic 8 and Angular 19 PWA over an Express API blends spot price and carbon intensity into one score and picks the best hours before the deadline.
Result
Every optimize response carries savingsVsNaive, the saving against charging straight away. One Railway service serves both the API and the PWA.
Wallbox and car apps schedule by clock. This one schedules by the grid.
On the idea
Decisions · why this stack
-
One score for price and carbon
Each hour scores (1 − w) · norm(price) + w · norm(carbon), min-max normalised over the window, with the weight on a slider.
-
Prove the saving
savingsVsNaive compares every plan with charging straight through from now, so the headline number comes with each response.
-
PWA over native
An installable PWA with a custom service worker gets an offline shell and Web Push without App Store review.
-
One service, one origin
Express serves /api, the /api/live WebSocket and the built PWA from one Railway service, so there is no CORS setup and no separate frontend host.
Stack
- TypeScript
- Node.js 20
- Express 4
- Zod
- Angular 19
- Ionic 8
- PWA
- Web Push
- WebSocket
- Docker
- Railway