1
0
Fork 0

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
Dustin 2023-12-28 17:07:43 -06:00
parent ad65a12b66
commit b9d48d0df8
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
curl -fsSL -o /tmp/snapshot.jpg "http://frigate.pyrocufflink.blue:5000/api/events/$1/snapshot.jpg"

View File

@ -23,6 +23,7 @@ configMapGenerator:
- name: home-assistant
files:
- configuration.yaml
- event-snapshot.sh
- groups.yaml
- shell-command.yaml
options:

View File

@ -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