Add systemd files and passing room-id for matrix

This commit is contained in:
Jeena 2023-02-19 13:42:01 +09:00
parent 52f935a084
commit 85fd862db4
8 changed files with 96 additions and 16 deletions

View file

@ -0,0 +1,8 @@
[Unit]
Description=Synology Pictures on TV
[Service]
User=jeena
Type=simple
WorkingDirectory=/home/jeena/Projects/synology-pictures/
ExecStart=/home/jeena/Projects/synology-pictures/run.sh

View file

@ -0,0 +1,8 @@
[Unit]
Description=Run Synology Photos on TV hourly
[Timer]
OnCalendar=*-*-* *:00:00
[Install]
WantedBy=timers.target

View file

@ -0,0 +1,8 @@
[Unit]
Description=Synology Pictures on TV
[Service]
User=jeena
Type=simple
WorkingDirectory=/home/jeena/Projects/synology-pictures/
ExecStart=/home/jeena/Projects/synology-pictures/run-matrix.sh

View file

@ -0,0 +1,8 @@
[Unit]
Description=Run Synology picture of the day in matrix daily
[Timer]
OnCalendar=*-*-* 06:00:00
[Install]
WantedBy=timers.target