tog: is my power going out today?
A one-screen app that matches Ulaanbaatar's power maintenance schedule to where you live and returns one verdict.
- For
- Personal
- Role
- Everything: data pipeline, app, design
- Stack
- Vite, Python, DuckDB, OpenStreetMap, Overture Maps
- Status
- Live
- Links
- tog-nu.vercel.app ↗

The problem
Every month the electricity distributor in Ulaanbaatar publishes a PDF of planned maintenance, and it runs a live feed of faults. Both are public. Neither answers the question people actually have, which is whether the power at their place goes out today.
tog is a single screen in Mongolian. You type where you live, it reads the schedule and the fault feed, and it gives you one verdict. There is no backend. A Python and DuckDB pipeline turns the monthly PDF and the map data into static files, and a Vite site serves them.
What was hard
The two vocabularies don't meet. The utility names a khoroo (a sub-district) and a handful of buildings, in wording that changes from month to month. People search for their own building, or the name everyone uses for their neighbourhood. Those two sets of names barely intersect, and fuzzy matching can't close a gap like that. So tog resolves by geography: both the notice and the search end up as places on a map, and the comparison happens there.
Most notices are a proximity claim. 85% of notices end with "and their surroundings". That isn't a list you can test membership against. It's a statement about distance, so the app has to reason spatially about what is near what.
No single map has the names people use. Search runs over a gazetteer of 28,020 places built from OpenStreetMap and Overture Maps, each resolved to a khoroo at build time. Neither source contains the other: 96% of what Overture holds for Ulaanbaatar is absent from OpenStreetMap under the same name, including most housing complexes.
It must never be confidently wrong. The schedule only covers planned work, the boundary data is incomplete, and the two sources disagree in places. Where the app is unsure, it says so. Where it knows nothing, it shows МЭДЭГДЭХГҮЙ ("not known") instead of inventing a clear day.
How I checked it
The unit suite has 208 assertions, and all of them pass. The pipeline also prints a health report on every run, so a change in next month's PDF wording shows up as a number moving rather than as a silent mis-parse.
Result
A working app, live at tog-nu.vercel.app, with a monthly refresh that is one command plus a test run. (tog.mn is the utility's own site, not this app.)
The part I'd keep from this project is the stance. An answer of "not known" is a valid answer, and it's better than a green tick the data can't back up.