summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-04-04 23:56:41 +0200
committerAki <please@ignore.pl>2023-04-04 23:56:41 +0200
commit85383b7f8fa0ea682c93e58deb165c84ae7c75d3 (patch)
tree7f471915257af6e9d067e6dd36b10e83ac7ff13e
parentfd4ab7ef4410a435f8c7339e111f791f5fdc9d0b (diff)
downloadwaterspout-radar-85383b7f8fa0ea682c93e58deb165c84ae7c75d3.zip
waterspout-radar-85383b7f8fa0ea682c93e58deb165c84ae7c75d3.tar.gz
waterspout-radar-85383b7f8fa0ea682c93e58deb165c84ae7c75d3.tar.bz2
Added configuration files for systemd-powered distros
-rw-r--r--.gitignore1
-rw-r--r--contrib/waterspout-pull.service7
-rw-r--r--contrib/waterspout-pull.timer15
-rw-r--r--contrib/waterspout-radar.conf14
-rw-r--r--contrib/waterspout-user.conf1
-rw-r--r--contrib/waterspout-web.service10
6 files changed, 47 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 7a274d6..9831f68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,4 @@ __pycache__/
build*/
.venv/
.env
-*.conf
*.json
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