[af9afaf] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[53aed1c] | 3 | rrdtool graph web/temperatur_1tag.png --title "Temperaturen im Tagesverlauf" --font TITLE:12 --vertical-label="° Celsius" -w 800 -h 500 -s 'now - 1 day' -e 'now' DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" DEF:temps9=weather.rrd:temps9:AVERAGE LINE2:temps9#4e9a06:"Temperatur aussen\n" GPRINT:temps1:LAST:"Letzte Messung unten\: %2.2lf" GPRINT:temps2:LAST:"oben\: %2.2lf" GPRINT:temps9:LAST:"aussen\: %2.2lf"
|
---|
[af9afaf] | 4 |
|
---|
[53aed1c] | 5 | rrdtool graph web/temperatur_1woche.png --title "Temperaturen im Wochenverlauf" --font TITLE:12 --vertical-label="° Celsius" -w 800 -h 500 -s 'now - 1 week' -e 'now' DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" DEF:tempmins9=weather.rrd:temps9:MIN DEF:tempmaxs9=weather.rrd:temps9:MAX DEF:temps9=weather.rrd:temps9:AVERAGE CDEF:tempranges9=tempmaxs9,tempmins9,- LINE1:tempmins9#4e9a06 AREA:tempranges9#8ae234::STACK LINE1:tempmaxs9#4e9a06 LINE2:temps9#4e9a06:"Temperatur aussen\n"
|
---|
[af9afaf] | 6 |
|
---|
[53aed1c] | 7 | rrdtool graph web/temperatur_1monat.png --title "Temperaturen im Monatsverlauf" --font TITLE:12 --vertical-label="° Celsius" -w 800 -h 500 -s 'now - 1 month' -e 'now' DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" DEF:tempmins9=weather.rrd:temps9:MIN DEF:tempmaxs9=weather.rrd:temps9:MAX DEF:temps9=weather.rrd:temps9:AVERAGE CDEF:tempranges9=tempmaxs9,tempmins9,- LINE1:tempmins9#4e9a06 AREA:tempranges9#8ae234::STACK LINE1:tempmaxs9#4e9a06 LINE2:temps9#4e9a06:"Temperatur aussen\n"
|
---|
[af9afaf] | 8 |
|
---|
| 9 |
|
---|
[53aed1c] | 10 | rrdtool graph web/luftfeuchtigkeit_1tag.png --title "Luftfeuchtigkeit im Tagesverlauf" --font TITLE:12 --vertical-label="%" -w 800 -h 500 -s 'now - 1 day' -e 'now' DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf"
|
---|
[af9afaf] | 11 |
|
---|
[53aed1c] | 12 | rrdtool graph web/luftfeuchtigkeit_1woche.png --title "Luftfeuchtigkeit im Wochenverlauf" --font TITLE:12 --vertical-label="%" -w 800 -h 500 -s 'now - 1 week' -e 'now' DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n"
|
---|
[af9afaf] | 13 |
|
---|
[53aed1c] | 14 | rrdtool graph web/luftfeuchtigkeit_1monat.png --title "Luftfeuchtigkeit im Monatsverlauf" --font TITLE:12 --vertical-label="%" -w 800 -h 500 -s 'now - 1 month' -e 'now' DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n"
|
---|
[af9afaf] | 15 |
|
---|
| 16 |
|
---|
[53aed1c] | 17 | rrdtool graph web/regen_1tag.png \
|
---|
| 18 | --title "Regen im Tagesverlauf" \
|
---|
| 19 | --font TITLE:12 -w 800 -h 500 \
|
---|
| 20 | -s 'now - 1 day' -e 'now' \
|
---|
| 21 | -v mm/Stunde \
|
---|
| 22 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 23 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \
|
---|
| 24 | CDEF:rainpd=rainph,24,* \
|
---|
| 25 | VDEF:totalrain=rainpd,AVERAGE \
|
---|
| 26 | GPRINT:totalrain:"Total %6.0lf mm/Tag" \
|
---|
| 27 | LINE2:rainph#729fcf
|
---|
[daaef3e] | 28 |
|
---|
[53aed1c] | 29 | rrdtool graph web/regen_1woche.png \
|
---|
| 30 | --title "Regen im Wochenverlauf" \
|
---|
| 31 | --font TITLE:12 -w 800 -h 500 \
|
---|
| 32 | -s 'now - 1 week' -e 'now' \
|
---|
| 33 | -v mm/Stunde \
|
---|
| 34 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 35 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \
|
---|
| 36 | CDEF:rainpw=rainph,168,* \
|
---|
| 37 | VDEF:totalrain=rainpw,AVERAGE \
|
---|
| 38 | GPRINT:totalrain:"Total %6.0lf mm/Woche" \
|
---|
| 39 | LINE2:rainph#729fcf
|
---|
[daaef3e] | 40 |
|
---|
[53aed1c] | 41 | rrdtool graph web/regen_1monat.png \
|
---|
| 42 | --title "Regen im Monatsverlauf" \
|
---|
| 43 | --font TITLE:12 -w 800 -h 500 \
|
---|
| 44 | -s 'now - 1 month' -e 'now' \
|
---|
| 45 | -v mm/Tag \
|
---|
| 46 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 47 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 48 | CDEF:rainpm=rainpd,30,* \
|
---|
| 49 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 50 | GPRINT:totalrain:"Total %6.0lf mm/Monat" \
|
---|
| 51 | LINE2:rainpd#729fcf
|
---|
[daaef3e] | 52 |
|
---|
| 53 |
|
---|
[53aed1c] | 54 | rrdtool graph web/wind_1tag.png --title "Wind im Tagesverlauf" --font TITLE:12 -w 800 -h 500 -s 'now - 1 day' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|
[daaef3e] | 55 |
|
---|
[53aed1c] | 56 | rrdtool graph web/wind_1woche.png --title "Wind im Wochenverlauf" --font TITLE:12 -w 800 -h 500 -s 'now - 1 week' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|
[daaef3e] | 57 |
|
---|
[53aed1c] | 58 | rrdtool graph web/wind_1monat.png --title "Wind im Monatsverlauf" --font TITLE:12 -w 800 -h 500 -s 'now - 1 month' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|