diff --git a/systemdfiles/cod_stats.service b/systemdfiles/cod_stats.service new file mode 100644 index 0000000..391f442 --- /dev/null +++ b/systemdfiles/cod_stats.service @@ -0,0 +1,10 @@ +[Unit] +Description=Call of Duty Statistiken lesen + +[Service] +Type=simple +ExecStart=/home/pi/cod_stats_tracker/venv/bin/python3 /home/pi/cod_stats_tracker/get_cod_stats.py +User=pi + +[Install] +WantedBy=multi-user.target diff --git a/systemdfiles/cod_stats.timer b/systemdfiles/cod_stats.timer new file mode 100644 index 0000000..8a688bf --- /dev/null +++ b/systemdfiles/cod_stats.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Timer zum Aufruf der Call of Duty Statistiken lesen + +[Timer] +OnCalendar=*-*-* 00,08,16,20:00:00 +Unit=cod_stats.service + +[Install] +WantedBy=multi-user.target \ No newline at end of file