photos: Add bambulab timelapse fetcher

This commit is contained in:
polyfloyd 2024-06-30 18:02:11 +02:00
parent fedc15a1d7
commit 7911bc0d7d
5 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,37 @@
---
- name: Install dependencies
apt:
name: curl
- name: Install fetch script
template:
src: bambulab-fetch.sh
dest: /opt/bambulab-fetch.sh
owner: root
group: root
mode: 0755
- name: Install service
template:
src: bambulab-fetch.service
dest: /etc/systemd/system/bambulab-fetch.service
owner: root
group: root
mode: 0644
notify: daemon reload
- name: Install timer
template:
src: bambulab-fetch.timer
dest: /etc/systemd/system/bambulab-fetch.timer
owner: root
group: root
mode: 0644
notify: daemon reload
- name: Enable timer
systemd:
name: bambulab-fetch
state: started
enabled: yes
daemon_reload: true

View file

@ -4,3 +4,6 @@
- tags: photos_mqtt
import_tasks: photos2mqtt.yaml
- tags: bambulab-fetch
import_tasks: bambulab-fetch.yaml