# odstavky-voda: water outages, faults and meter replacements in Senec

14 records from the page „Poruchy a odstávky“ of Bratislavská vodárenská spoločnosť (BVS), the water
company for Senec, and 2 from the town's notices of water cuts BVS asked it to post. Built by
`scripts/fetch_bvs_odstavky.py`; first fetch 2026-10-15, latest 2026-11-30 (39 fetches); 3 records are on the
page now.

| List on the page | `category` | Lines now (all towns) | Senec records on the page now |
| --- | --- | --- | --- |
| Plánované odstávky | `planned_outage` | 5 | 1 |
| Poruchy | `fault` | 1 | 0 |
| Prerušenie dodávky | `interruption` | 0 | 0 |
| Výmena VDM | `meter_replacement` | 94 | 2 |

- Planned outages, faults and supply interruptions: one record per event, read from its detail page
  (`detail_url`): the kind of event as printed, every affected street, the time window (`starts`, `ends`)
  or the estimated repair time as printed, and whether a water tanker is provided. The line on the main
  page names at most one street; the detail page names all of them.
- Meter replacements („Výmena VDM“, BVS's list of planned water-meter replacements on the same page): street
  level only, one record per date and street, with `entries`, the number of lines the page lists, and the
  first and last appointment time. The page gives a house number and a connection-point id for each, which
  is one household's connection; neither is stored. The 15 Oct review read the Robotnícka lines of 21 October
  as outages; they are meter replacements.
- The town's notices (`town_notice`, since 10 Nov 2026): BVS also asks the town to post a cut, often a fault
  fixed within hours that never reaches BVS's page. Every water notice on the town's board
  (`data/uradna-tabula.json`) since 2026-10-15 is read by hand into `sources/odstavky-voda/mesto.csv`: the kind
  and the expected end as the notice gives them (`event_kind`, `repair_estimate`), the day, the streets and
  whether a tanker is provided. House numbers are not kept; the notice, linked, names them. A notice BVS's page
  also lists is recorded once, as BVS's. Notices not read yet: none.
- Append-only. Past dates leave the page; their records stay with `on_page` = false.
- Cancelled: BVS keeps a cancelled event's line and marks it „ZRUŠENÉ“. Its record has `cancelled` = true and
  `on_page` = false: it is not going ahead, so it is not an outage, even while its day is still to come. Its detail
  page is not read again; the record keeps what an earlier fetch read there (or only what the line gives, for an
  event first seen cancelled). The mark is read since 11 Nov 2026; none of the pages kept since 15 Oct 2026 marks
  an event in Senec cancelled.
- `street_ids` join to `data/ulice.json` by name. Streets not matched: none.

Source: <https://www.bvsas.sk/poruchy-odstavky/> and the pages it links. Public pages of BVS; no licence is
stated. robots.txt allows them. Every response is kept in `data/atlas/raw/odstavky-voda/` with a log of every
fetch and its SHA-256 in `manifest.json`. The town's notices: <https://www.senec.sk/oznamy-mesta/>, CC BY 4.0 by
the town's open-data catalogue.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id` | string | `<category>-<detail page slug>`, `meter_replacement-<date>-<street_id>` or `town_notice-<notice slug>`; stable. |
| `category`, `category_label` | string | Which list, and its title as printed; `town_notice`, „Oznamy mesta“, for the town's notices. |
| `event_kind` | string or null | The detail page's heading („Plánovaná odstávka“, „Porucha na vodovodnej sieti“ …), or the kind the town's notice gives. |
| `date` | date | The day the line on the main page (or the town's notice) gives. |
| `starts`, `ends` | datetime or null | The window a planned outage gives. |
| `repair_estimate` | string or null | „Predbežný čas opravy“ of a fault, as printed; for a town notice, the end it gives („do 16:00“). |
| `time_first`, `time_last` | string or null | `HH:MM`, meter replacements only. |
| `entries` | integer | Lines on the main page behind the record (1 for an event). |
| `municipality` | string | The main page's line, house number removed. |
| `street` | string or null | The main page's line, house number removed; null for a cut of the whole town, whose line names no street (since 25 Nov 2026). |
| `streets_affected` | list | Streets as the detail page names them (for a meter replacement: its street). |
| `street_ids` | list | The matched streets in `data/ulice.json`. |
| `water_tanker` | boolean or null | Whether the detail page (or the notice) says a water tanker is provided; null if it does not say. |
| `page_updated` | datetime or null | „Aktualizované“ on the detail page; for a town notice, when the town last updated it. |
| `detail_url` | string or null | The event's detail page, or the town's notice. |
| `on_page` | boolean or null | Whether the latest fetch still listed it as going ahead: false once it left the page or BVS marked it cancelled; null for a town notice. |
| `cancelled` | boolean or null | True when the latest fetch that listed it marked it „ZRUŠENÉ“ (cancelled by BVS); false when it was listed without the mark; null for a town notice, which no page marks either way. |
| `first_seen`, `last_seen` | date | First and latest fetch that listed it (a town notice: the board's latest read). |
| `source_url`, `licence` | string | The page and its terms. |
| `raw_sha256` | string or null | SHA-256 of the latest main-page response that listed it (detail pages: `manifest.json`); null for a town notice. |
| `fetched` | date | Latest fetch that listed it. |
| `last_update` | date | When the record last changed. |

## License

Published by Som Senec without a licence of its own (Podmienky zdroja): https://somsenec.sk/data#podmienky-zdroja. The records are an extract from a source that states no licence; the README above names it and each record links to it. Credit that source and "Som Senec, somsenec.sk", and keep to the source's terms.
