[af9afaf] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[f38145a] | 3 | rrdtool graph web/temperatur_3stunden.png --title "Temperaturen 3h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 3 hour' -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"
|
---|
| 4 |
|
---|
| 5 | rrdtool graph web/temperatur_6stunden.png --title "Temperaturen 6h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 6 hour' -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"
|
---|
| 6 |
|
---|
| 7 | rrdtool graph web/temperatur_12stunden.png --title "Temperaturen 12h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 12 hour' -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"
|
---|
| 8 |
|
---|
[8cc14b9] | 9 | rrdtool graph web/temperatur_1tag.png --title "Temperaturen im Tagesverlauf" --font TITLE:12 --vertical-label="° Celsius" -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] | 10 |
|
---|
[8cc14b9] | 11 | rrdtool graph web/temperatur_1woche.png --title "Temperaturen im Wochenverlauf" --font TITLE:12 --vertical-label="° Celsius" -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] | 12 |
|
---|
[8cc14b9] | 13 | rrdtool graph web/temperatur_1monat.png --title "Temperaturen im Monatsverlauf" --font TITLE:12 --vertical-label="° Celsius" -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] | 14 |
|
---|
[8cc14b9] | 15 | rrdtool graph web/temperatur_1jahr.png --title "Temperaturen im Jahresverlauf" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 1 year' -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"
|
---|
[c22952c] | 16 |
|
---|
[7fbafc7] | 17 | rrdtool graph web/temperatur_5jahr.png --title "Temperaturen im Jahresverlauf" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 5 year' -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"
|
---|
| 18 |
|
---|
[f38145a] | 19 | rrdtool graph web/luftfeuchtigkeit_3stunden.png --title "Luftfeuchtigkeit 3h" --font TITLE:12 --vertical-label="%" -s 'now - 3 hour' -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"
|
---|
| 20 |
|
---|
| 21 | rrdtool graph web/luftfeuchtigkeit_6stunden.png --title "Luftfeuchtigkeit 6h" --font TITLE:12 --vertical-label="%" -s 'now - 6 hour' -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"
|
---|
| 22 |
|
---|
| 23 | rrdtool graph web/luftfeuchtigkeit_12stunden.png --title "Luftfeuchtigkeit 12h" --font TITLE:12 --vertical-label="%" -s 'now - 12 hour' -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] | 24 |
|
---|
[8cc14b9] | 25 | rrdtool graph web/luftfeuchtigkeit_1tag.png --title "Luftfeuchtigkeit im Tagesverlauf" --font TITLE:12 --vertical-label="%" -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] | 26 |
|
---|
[8cc14b9] | 27 | rrdtool graph web/luftfeuchtigkeit_1woche.png --title "Luftfeuchtigkeit im Wochenverlauf" --font TITLE:12 --vertical-label="%" -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] | 28 |
|
---|
[8cc14b9] | 29 | rrdtool graph web/luftfeuchtigkeit_1monat.png --title "Luftfeuchtigkeit im Monatsverlauf" --font TITLE:12 --vertical-label="%" -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] | 30 |
|
---|
[8cc14b9] | 31 | rrdtool graph web/luftfeuchtigkeit_1jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 year' -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"
|
---|
[c22952c] | 32 |
|
---|
[7fbafc7] | 33 | rrdtool graph web/luftfeuchtigkeit_5jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 5 year' -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"
|
---|
| 34 |
|
---|
[af9afaf] | 35 |
|
---|
[53aed1c] | 36 | rrdtool graph web/regen_1tag.png \
|
---|
| 37 | --title "Regen im Tagesverlauf" \
|
---|
[8cc14b9] | 38 | --font TITLE:12 \
|
---|
[53aed1c] | 39 | -s 'now - 1 day' -e 'now' \
|
---|
| 40 | -v mm/Stunde \
|
---|
| 41 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 42 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \
|
---|
| 43 | CDEF:rainpd=rainph,24,* \
|
---|
| 44 | VDEF:totalrain=rainpd,AVERAGE \
|
---|
| 45 | GPRINT:totalrain:"Total %6.0lf mm/Tag" \
|
---|
| 46 | LINE2:rainph#729fcf
|
---|
[daaef3e] | 47 |
|
---|
[53aed1c] | 48 | rrdtool graph web/regen_1woche.png \
|
---|
| 49 | --title "Regen im Wochenverlauf" \
|
---|
[8cc14b9] | 50 | --font TITLE:12 \
|
---|
[53aed1c] | 51 | -s 'now - 1 week' -e 'now' \
|
---|
| 52 | -v mm/Stunde \
|
---|
| 53 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 54 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \
|
---|
| 55 | CDEF:rainpw=rainph,168,* \
|
---|
| 56 | VDEF:totalrain=rainpw,AVERAGE \
|
---|
| 57 | GPRINT:totalrain:"Total %6.0lf mm/Woche" \
|
---|
| 58 | LINE2:rainph#729fcf
|
---|
[daaef3e] | 59 |
|
---|
[53aed1c] | 60 | rrdtool graph web/regen_1monat.png \
|
---|
| 61 | --title "Regen im Monatsverlauf" \
|
---|
[8cc14b9] | 62 | --font TITLE:12 \
|
---|
[53aed1c] | 63 | -s 'now - 1 month' -e 'now' \
|
---|
| 64 | -v mm/Tag \
|
---|
| 65 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 66 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 67 | CDEF:rainpm=rainpd,30,* \
|
---|
| 68 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 69 | GPRINT:totalrain:"Total %6.0lf mm/Monat" \
|
---|
| 70 | LINE2:rainpd#729fcf
|
---|
[daaef3e] | 71 |
|
---|
[c22952c] | 72 | rrdtool graph web/regen_1jahr.png \
|
---|
| 73 | --title "Regen im Jahresverlauf" \
|
---|
[8cc14b9] | 74 | --font TITLE:12 \
|
---|
[c22952c] | 75 | -s 'now - 1 year' -e 'now' \
|
---|
| 76 | -v mm/Tag \
|
---|
| 77 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 78 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 79 | CDEF:rainpm=rainpd,30,* \
|
---|
| 80 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 81 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \
|
---|
| 82 | LINE2:rainpd#729fcf
|
---|
[daaef3e] | 83 |
|
---|
[7fbafc7] | 84 | rrdtool graph web/regen_5jahr.png \
|
---|
| 85 | --title "Regen im Jahresverlauf" \
|
---|
| 86 | --font TITLE:12 \
|
---|
| 87 | -s 'now - 5 year' -e 'now' \
|
---|
| 88 | -v mm/Tag \
|
---|
| 89 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 90 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 91 | CDEF:rainpm=rainpd,30,* \
|
---|
| 92 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 93 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \
|
---|
| 94 | LINE2:rainpd#729fcf
|
---|
| 95 |
|
---|
| 96 |
|
---|
[8cc14b9] | 97 | rrdtool graph web/wind_1tag.png --title "Wind im Tagesverlauf" --font TITLE:12 -s 'now - 1 day' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|
[daaef3e] | 98 |
|
---|
[8cc14b9] | 99 | rrdtool graph web/wind_1woche.png --title "Wind im Wochenverlauf" --font TITLE:12 -s 'now - 1 week' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|
[daaef3e] | 100 |
|
---|
[8cc14b9] | 101 | rrdtool graph web/wind_1monat.png --title "Wind im Monatsverlauf" --font TITLE:12 -s 'now - 1 month' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|
[c22952c] | 102 |
|
---|
[8cc14b9] | 103 | rrdtool graph web/wind_1jahr.png --title "Wind im Jahresverlauf" --font TITLE:12 -s 'now - 1 year' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|
[7fbafc7] | 104 |
|
---|
| 105 | rrdtool graph web/wind_5jahr.png --title "Wind im Jahresverlauf" --font TITLE:12 -s 'now - 5 year' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
|
---|