From 85383b7f8fa0ea682c93e58deb165c84ae7c75d3 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 4 Apr 2023 23:56:41 +0200 Subject: Added configuration files for systemd-powered distros --- contrib/waterspout-pull.service | 7 +++++++ contrib/waterspout-pull.timer | 15 +++++++++++++++ contrib/waterspout-radar.conf | 14 ++++++++++++++ contrib/waterspout-user.conf | 1 + contrib/waterspout-web.service | 10 ++++++++++ 5 files changed, 47 insertions(+) create mode 100644 contrib/waterspout-pull.service create mode 100644 contrib/waterspout-pull.timer create mode 100644 contrib/waterspout-radar.conf create mode 100644 contrib/waterspout-user.conf create mode 100644 contrib/waterspout-web.service (limited to 'contrib') diff --git a/contrib/waterspout-pull.service b/contrib/waterspout-pull.service new file mode 100644 index 0000000..509a290 --- /dev/null +++ b/contrib/waterspout-pull.service @@ -0,0 +1,7 @@ +[Unit] +Description=Pull data for Waterspout Radar + +[Service] +Type=oneshot +ExecStart=/usr/bin/env waterspout-radar -c /etc/waterspout-radar.conf pull +User=waterspout diff --git a/contrib/waterspout-pull.timer b/contrib/waterspout-pull.timer new file mode 100644 index 0000000..26c9b99 --- /dev/null +++ b/contrib/waterspout-pull.timer @@ -0,0 +1,15 @@ +[Unit] +Description=Pull data for Waterspout Radar + +[Timer] +OnCalendar=*-*-* 1:00 +OnCalendar=*-*-* 4:00 +OnCalendar=*-*-* 7:00 +OnCalendar=*-*-* 10:00 +OnCalendar=*-*-* 13:00 +OnCalendar=*-*-* 16:00 +OnCalendar=*-*-* 19:00 +OnCalendar=*-*-* 22:00 + +[Install] +WantedBy=timers.target diff --git a/contrib/waterspout-radar.conf b/contrib/waterspout-radar.conf new file mode 100644 index 0000000..441c48e --- /dev/null +++ b/contrib/waterspout-radar.conf @@ -0,0 +1,14 @@ +[Storage] +db = /srv/waterspout-radar/db.json + +[Locations] +;; Put desired locations here, by name or by coords: +; Szczecin +; 54.372, 18.648 + +[Windy] +;; Put your private Windy API key here: +; key = ... + +[Web] +port = 40732 diff --git a/contrib/waterspout-user.conf b/contrib/waterspout-user.conf new file mode 100644 index 0000000..30feacb --- /dev/null +++ b/contrib/waterspout-user.conf @@ -0,0 +1 @@ +u waterspout - "Waterspout Radar" diff --git a/contrib/waterspout-web.service b/contrib/waterspout-web.service new file mode 100644 index 0000000..d177cde --- /dev/null +++ b/contrib/waterspout-web.service @@ -0,0 +1,10 @@ +[Unit] +Description=Waterspout Radar Web Interface + +[Service] +Type=simple +ExecStart=/usr/bin/env waterspout-radar -c /etc/waterspout-radar.conf web +User=waterspout + +[Install] +WantedBy=multi-user.target -- cgit v1.1