feat(fun/idual && nixos/camden): Add light alarm systemd units
Adds a systemd unit to run the idual light alarm using a transient timer created by systemd-run.
This commit is contained in:
parent
28bf77a1f1
commit
6644d0031d
3 changed files with 21 additions and 4 deletions
|
|
@ -62,8 +62,10 @@ if __name__ == "__main__":
|
|||
#
|
||||
# The command sending doesn't always work, hence this brute-force
|
||||
# approach.
|
||||
print('Initialising light controller')
|
||||
ctrl = LightController()
|
||||
|
||||
print('Turning on the lights. Wakey, wakey!')
|
||||
for i in range(9):
|
||||
ctrl.send_cmd('morning')
|
||||
time.sleep(0.2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue