home-assistant: Add (back) event-snapshot.sh
When transitioning to the ConfigMap for maintaining Home Assistant YAML configuration, I did not bring the `event-snapshot.sh` script because I thought it was no longer in use. It turns out I was mistaken; it is used by the driveway camera alerts.dch-webhooks-secrets
parent
ad65a12b66
commit
b9d48d0df8
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -fsSL -o /tmp/snapshot.jpg "http://frigate.pyrocufflink.blue:5000/api/events/$1/snapshot.jpg"
|
|
@ -23,6 +23,7 @@ configMapGenerator:
|
|||
- name: home-assistant
|
||||
files:
|
||||
- configuration.yaml
|
||||
- event-snapshot.sh
|
||||
- groups.yaml
|
||||
- shell-command.yaml
|
||||
options:
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
event_snapshot: >-
|
||||
sh /run/config/event-snapshot.sh {{ event_id }}
|
||||
|
||||
restart_diddy_mopidy: >-
|
||||
ssh -i /config/homeassistant-ssh.pem -oUserKnownHostsFile=/config/ssh_known_hosts -oBatchMode=yes pi@diddy.pyrocufflink.red restart-mopidy
|
||||
|
|
Loading…
Reference in New Issue