5 Commits
Author SHA1 Message Date
gurix 4d9f08f21f refactor: make blink_led non-blocking in the state machine 2026-06-18 17:09:10 +02:00
gurix dfc9f0cd94 feat: make alarm music file configurable via env var and CLI arg 2026-06-18 17:01:26 +02:00
Markus Graf ff79224560 feat: make command parameter optional in set_alarm mutation 2026-05-11 15:05:29 +02:00
Markus Graf 5b5b845e41 Fix premature evaluation after blinking completes
When transitioning from STATE_BLINKING to STATE_WAIT_FOR_INPUT, the script used a stale timestamp `now` from before the blocking `blink_led` function. This caused the puzzle to immediately evaluate as failed. Updated to use `time.time()` after blinking finishes to ensure the user gets the full 3 seconds to enter their answer.
2026-05-10 07:41:00 +02:00
Markus Graf a7c4febd67 test: add tests and refactor wecker.py state machine for testability 2026-05-09 22:31:28 +02:00