DEMO 04 / DASHBOARDS
Riga Now
A live city board on public data: realtime departures from any Riga stop, the weather, and what electricity costs this hour.
01Departures
—
02Riga time
EET--:--:--
03Weather
04Electricity · spot price LV
05Seven days
How it works
-
01
One origin, no keys
The page only talks to its own server. Upstream URLs are fixed server-side; the browser sends stop ids, which are checked against the official stop list before anything leaves the box.
-
02
Shared cache
Each source is hit at most once per window — departures 20 s, weather 10 min, prices 15 min — however many screens are open. Simultaneous misses share one request.
-
03
Degrades, never lies
6-second timeouts and back-off. When a source fails the last good answer is served and marked stale with its age, instead of a blank panel or invented numbers.
-
04
Riga time, exactly
Clocks run in Europe/Riga whatever your device says. Departures arrive as service-day seconds (a 03:00 night bus is "27:00") and are folded against Riga time, corrected for your clock's drift.
Data: Rīgas Satiksme realtime feed · Open-Meteo (CC BY 4.0) · Nord Pool day-ahead via Elering. Prices exclude VAT, network and trader fees.