Commit e2bb52df authored by Timur Perst's avatar Timur Perst
Browse files

new URL because of new grafana-image-renderer plugin

parent f783ebaf
......@@ -2,12 +2,10 @@
set -eu
CURDATE=$(date +%s)
OUTDIR=/var/www/temperature
url() {
olddate=$(date --date="$1" +%s)
printf "http://localhost:3621/render/dashboard-solo/db/public-temperature?orgId=1&from=%d000&to=%d000&panelId=1&width=1000&height=500&theme=light" "${olddate}" "${CURDATE}"
printf "http://localhost:3621/render/d-solo/000000006/public-temperature?orgId=1&from=now-%s&to=now&panelId=1&width=1000&height=500&tz=Europe%%2FBerlin" "${1}"
}
fetch() {
......@@ -16,7 +14,7 @@ fetch() {
mv $t "${OUTDIR}/${2}.png"
}
fetch "24 hours ago" day
fetch "7 days ago" week
fetch "30 days ago" month
fetch "360 days ago" year
fetch "24h" day
fetch "7d" week
fetch "1M" month
fetch "1y" year
cip-foxtemp (18) unstable; urgency=medium
* New URL because of new grafana-image-renderer plugin
-- Timur Perst <sy51goqy-adm@cip.cs.fau.de> Sat, 07 May 2022 16:45:27 +0200
cip-foxtemp (17) unstable; urgency=medium
* Fix compilation on Debian bullseye
......
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