mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:03:15 +02:00
- Add python-kasa-based smart-plug control (_smart_plug.py) with turn_on_plug / turn_off_plug called around the alarm window. Reads ~/.config/wake_alarm/tapo.json (host/email/password). - Hard timeout (TAPO_TIMEOUT_SECONDS) so plug never blocks the alarm. - Install fan-control script + sudoers entry (install.sh step 6); _max_fans / _restore_fans now invoke it via /usr/bin/sudo -n so pwm1_enable writes succeed. - Remove ntfy.sh push notifications entirely (silent no-op was useless). - Replace every silent skip with _logger.warning() so failures are loud: missing xset / xrandr / speaker-test, unreadable hwmon files, fan script errors, missing Tapo config, kasa import failure, etc. - wake-alarm.service: Restart=on-failure with 10s backoff. - Tests: 100% line+branch coverage on python_pkg/wake_alarm. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| _alarm.py | ||
| _constants.py | ||
| _smart_plug.py | ||
| _state.py | ||
| install.sh | ||
| shutdown-wrapper.sh | ||
| sleep-hook.sh | ||
| wake_state.json | ||
| wake-alarm-fans.sh | ||
| wake-alarm.service | ||