# odstavky-elektrina: planned power cuts in Senec, per street

73 planned interruptions of the electricity supply in Senec since 2024-10-14, from 73 letters of Západoslovenská
distribučná, a.s. (ZSD) that the town posts as notices; 1 of them are from 2026-11-30 on. Built by
`scripts/build_odstavky_elektrina.py` from the board feed of `fetch_uradna_tabula.py`.

- `kind`: `public_notice` is a letter asking the town to announce the cut to the public: the day, then one record
  per time window, with the streets as printed. `supply_point` is a letter to the town as a customer about one of
  its own supply points: the start, the expected end and the place (often a locality, such as Slnečné jazerá).
- `streets_affected` are the streets as the letter prints them; `street_ids` join them to `data/ulice.json`. Names
  that are no street (areas and the like) are also in `localities`. An area that lies on one street of the register
  joins it through `street_parts` (since 5 Nov 2026: „Slnečné jazerá-juh“ and „-sever“ are parts of the street
  „Slnečné jazerá“), so the cut shows on that street with the area named, or both areas when the letter names
  both. Not matched: LOKA STARÁ TEHEĽŇA, LOKA STRIEBORNÉ JAZERO.
- House numbers are not kept: the site answers by street. `house_numbers_in_letter` says whether the letter lists
  them; the letter is `letter_url`. Supply-point codes and the names and contacts of the ZSD staff who sign the
  letters are not kept either.
- Append-only: a record stays when its notice or letter leaves the town's feed, with `in_feed` = false (0 now).
  The town takes a notice down or replaces it without saying why, so a cut with `in_feed` = false may have been
  called off or announced again in another letter: it is what was once announced, not a cut to expect.
- A letter the parser cannot read stops the build until a person has read it and listed it in
  `sources/odstavky-elektrina/neparsovane.csv`; letters listed there now: 0. Notices posted before
  2026-11-05 that carry no PDF letter (the town's own text as a .docx) were never read: 8.
- The cut can still be shortened or called off: ZSD's own pages (zsdis.sk, vypadokelektriny.sk) give the current
  state. This dataset shows what was announced.

## Fields

| Field | Type | Meaning |
| --- | --- | --- |
| `record_id` | string | `zsd-<date>-<letter file>-<n>`, the letter and its n-th window; stable. |
| `kind` | string | `public_notice` or `supply_point` (see above). |
| `date` | date | The day of the cut. |
| `starts`, `ends` | datetime or null | The window as announced. |
| `streets_affected` | list | Streets or places as the letter prints them. |
| `street_ids` | list | The matched streets in `data/ulice.json`. |
| `localities` | list | Names that are no street (an area such as Slnečné jazerá-juh). |
| `street_parts` | object | The areas joined to the street they lie on, `{"<street_id>": ["<area>", …]}`, in the letter's order; empty when none. A list since 14 Nov 2026 (one string per street before, which kept only the last area a letter named). In the CSV `<street_id>=<area>; <area>`, streets joined by a vertical bar. |
| `house_numbers_in_letter` | boolean | Whether the letter lists house numbers (not kept here). |
| `operator` | string | The distributor. |
| `notice_title`, `notice_url` | string | The town's notice that carries the letter. |
| `letter_url` | string | The letter (PDF). |
| `posted` | date | When the town posted the notice. |
| `in_feed` | boolean | Whether the latest build read the record from a letter in the town's feed. False: the notice or its letter left the feed, or the letter no longer gives this window; the record is kept as it last was. |
| `first_seen` | date | The first build that read the letter. |
| `source_url` | string | The letter. |
| `licence` | string | Terms of the notice and the letter. |
| `last_update` | date | When the record last changed. |

Source: the letters on www.senec.sk, found through the town's notice board feed
(<https://www.senec.sk/wp-json/sc/v1/opendata/office-announcements?_profile=ofn-uredni-desky>, CC BY 4.0). Every
letter is kept in `data/atlas/raw/odstavky-elektrina/` with its SHA-256 in `manifest.json`.

## 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.
