Add systemd files and passing room-id for matrix
This commit is contained in:
parent
52f935a084
commit
85fd862db4
8 changed files with 96 additions and 16 deletions
8
systemd/synology-ha.service
Normal file
8
systemd/synology-ha.service
Normal 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
|
8
systemd/synology-ha.timer
Normal file
8
systemd/synology-ha.timer
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Run Synology Photos on TV hourly
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
8
systemd/synology-matrix.service
Normal file
8
systemd/synology-matrix.service
Normal 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
|
8
systemd/synology-matrix.timer
Normal file
8
systemd/synology-matrix.timer
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue