diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-10 14:21:27 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-10 14:21:27 +0100 |
commit | 5b1d2d056ec846e47fdc259521513a06a70a7125 (patch) | |
tree | 5d331d54d246b2b00d396698f77fb681214cb6a0 /.local/share/bin/lights | |
parent | e679621edc8ca542f396f6e7a4682636a5d30d73 (diff) |
update darkroom script and add `lights` script
Diffstat (limited to '.local/share/bin/lights')
-rwxr-xr-x | .local/share/bin/lights | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/share/bin/lights b/.local/share/bin/lights new file mode 100755 index 0000000..d76782f --- /dev/null +++ b/.local/share/bin/lights @@ -0,0 +1,5 @@ +#!/bin/sh +cmd="$1" +[[ -z "$cmd" ]] && cmd="toggle" +curl -X POST "$HASS_SERVER/api/webhook/$cmd" + |