summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-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
5 files changed, 47 insertions, 0 deletions
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