All work
01 / 19Mobile and desktop web app· PWA · offline · push alerts

Lanka Weather

Floods, rivers and warnings for Sri Lanka on one map.

One map for floods and weather in Sri Lanka: river gauges, live rain, reservoirs, Google flood forecasts and the DMC warnings together, with alerts that reach your phone about ten minutes after a warning is posted.

  • 28 public feeds
  • River gauges and live rain
  • DMC warnings from the PDFs
  • English · සිංහල · தமிழ்
Open the mapweather.prabhavalabs.com
Lanka Weather on a desktop browser with layer switches, the map and the Sri Lanka now panel
Lanka Weather on a phone with rivers coloured by flood risk, rain gauges and reservoirs across western Sri Lanka

DMC warning to your phone

~10 min

down from 80 to 170 minutes

Public feeds on one map

28

gauges, rain, reservoirs, forecasts, warnings

One map

  1. Official warnings and gauges
  2. Google flood forecasts
  3. Our estimate, clearly labelled

Not an official warning service

28
Public feeds on one map
~10 min
From a DMC warning to your phone
0
Accounts, emails or phone numbers
3
Languages

Why I built it

Every time there’s heavy rain in Sri Lanka, I end up doing the same routine. I open the Irrigation Department’s gauge dashboard, then the DMC website to find the latest PDF, then a couple of community sites, and I try to put the whole picture together in my head. The data is public. It’s just spread across too many places, and nobody wants to check five websites at night during a storm.

It actually started as a test. I wanted to see whether Google’s Flood Forecasting API really forecasts floods here, and how early. To judge that I needed real gauge readings next to it, then rain, then the official warnings, then the reservoirs, and it slowly turned into a proper map.

Every reading shows its age

A gauge that stopped reporting three hours ago should never look calm, so every reading keeps its source, when the source recorded it and when we fetched it. When a layer goes past its limit, the app says it in plain words and fades it. It never calls a place safe. The most it will say is that no two sources point to flooding there right now.

The river risk you see is my own estimate. It scores each district on eight kinds of evidence, like measured rain, the rain forecast, gauges, Google’s forecasts, DMC bulletins and spilling reservoirs, and only raises a level when two of them agree. The app always labels it as an estimate.

Alerts that arrive in time

My first alerts were late. DMC warnings were reaching people 80 to 170 minutes after they were posted, because I was reading them from a mirror that only updates every couple of hours. Now a collector checks the DMC’s report lists every 10 minutes, reads each new PDF straight away, and works out which districts it covers. Warnings reach phones in about ten minutes.

There’s no sign-up. You pick your areas and topics, and every notice says what happened, where, when and who reported it, in English, Sinhala or Tamil. I wrote the Web Push encryption myself on Go’s standard library and tested it byte for byte against the spec.

Where it stands

It’s live at weather.prabhavalabs.com and installs as an app on your phone. Please don’t fully trust it, though. It’s an experiment, and the DMC, the Department of Meteorology, NBRO and the Irrigation Department always come first. The full engineering story is on Prabhava Labs.