feat(cli): add height-aware compact outage schedule
All checks were successful
Test blackout notifier / test (push) Successful in 5s
Hourly blackout check / check (push) Successful in 5s

This commit is contained in:
2026-07-27 18:03:18 +03:30
parent 0b24d544d3
commit bf09d4d99c
3 changed files with 153 additions and 26 deletions

View File

@@ -232,11 +232,16 @@ The terminal output uses English-only labels and omits the stored address and
reason text. When there are no qualifying events for any bill it prints an `ALL
CLEAR` screen and exits successfully.
Schedule entries use one compact row each. When every outage cannot fit below
the countdown, the dashboard keeps the nearest entries visible and reports how
many additional outages were omitted. Resizing the terminal reveals more rows.
Colors are enabled only when output is attached to a terminal. Set `NO_COLOR` to
disable them explicitly, or set `COLUMNS` to control the rendered width:
disable them explicitly, or set `COLUMNS` and `LINES` to control the rendered
size:
```sh
NO_COLOR=1 COLUMNS=80 ./main.sh
NO_COLOR=1 COLUMNS=80 LINES=24 ./main.sh
```
When `pyfiglet` or `figlet` provides the `univers` font, the countdown uses it