ansible/playbooks/apps/templates/bin/download-octopus.j2

10 lines
354 B
Text
Raw Permalink Normal View History

2024-12-07 11:05:21 +01:00
#!/bin/bash
2024-12-08 18:40:36 +01:00
set -uo pipefail
2024-12-07 11:05:21 +01:00
2024-12-08 18:40:36 +01:00
pushd /mnt/data/paperless-ngx || exit 1
2024-12-07 13:01:10 +01:00
./downloader octopus-energy-address -o consume -u '{{downloader_octopus_username}}' -p '{{downloader_octopus_password}}' --headless
2024-12-08 18:40:36 +01:00
status=$?
curl -X PUT -d 'source=octopus-energy-address' "https://hass.augendre.info/api/webhook/{{ downloader_home_assistant_hook_id }}"
exit $status