Commit 78c65d48 authored by Johannes Schilling's avatar Johannes Schilling
Browse files

cip-graphana-tempgraph-import: add

parent 7c19055b
#!/bin/sh
set -eu
OUTDIR=/var/www/temperature
IMPORTFROM="https://cipmon.informatik.uni-erlangen.de/temperature"
for thing in day week month year; do
curl "${IMPORTFROM}/${thing}.png" > "${OUTDIR}/${thing}.png"
done
[Unit]
Description=CIP import temperature graph images
[Service]
Type=oneshot
User=www
ExecStart=/usr/sbin/cip-grafana-tempgraph-import
[Unit]
Description=CIP import temperature graph images (Timer Unit)
[Timer]
# Run immediately after boot for hosts which are not running 24-7 (powersafe).
OnBootSec=1m
# Run every 5 minutes. (the expression was copied from the
# cip-monitoring-tools-run.timer unit, i don't fully understand it
# -- js 2017-08-02)
OnCalendar=*:04/5:42
[Install]
WantedBy=multi-user.target
cip-foxtemp (8) unstable; urgency=medium
* add cip-grafana-tempgraph-import
-- Johannes Schilling <johannes.schilling@cs.fau.de> Wed, 02 Aug 2017 21:57:38 +0200
cip-foxtemp (7) unstable; urgency=medium
* add cip-grafana-tempgraph-extract
......
cip-grafana-tempgraph-import usr/sbin
cip-grafana-tempgraph-import.service lib/systemd/system
cip-grafana-tempgraph-import.timer lib/systemd/system
#!/bin/sh
set -e
case "$1" in
configure)
install --directory --owner www --group www /var/www/temperature
;;
esac
#DEBHELPER#
exit 0
......@@ -20,3 +20,8 @@ Package: cip-grafana-tempgraph-extract
Architecture: any
Depends: ${misc:Depends}, curl
Description: grafana graph extraction scripts
Package: cip-grafana-tempgraph-import
Architecture: any
Depends: ${misc:Depends}, curl
Description: temperature graph import (aka curl) scripts
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment