[af9afaf] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[8cc14b9] | 3 | 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] | 4 | |
---|
[8cc14b9] | 5 | 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] | 6 | |
---|
[8cc14b9] | 7 | 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] | 8 | |
---|
[8cc14b9] | 9 | 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] | 10 | |
---|
[7fbafc7] | 11 | 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" |
---|
| 12 | |
---|
[af9afaf] | 13 | |
---|
[8cc14b9] | 14 | 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] | 15 | |
---|
[8cc14b9] | 16 | 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] | 17 | |
---|
[8cc14b9] | 18 | 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] | 19 | |
---|
[8cc14b9] | 20 | 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] | 21 | |
---|
[7fbafc7] | 22 | 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" |
---|
| 23 | |
---|
[af9afaf] | 24 | |
---|
[53aed1c] | 25 | rrdtool graph web/regen_1tag.png \ |
---|
| 26 | --title "Regen im Tagesverlauf" \ |
---|
[8cc14b9] | 27 | --font TITLE:12 \ |
---|
[53aed1c] | 28 | -s 'now - 1 day' -e 'now' \ |
---|
| 29 | -v mm/Stunde \ |
---|
| 30 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
| 31 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \ |
---|
| 32 | CDEF:rainpd=rainph,24,* \ |
---|
| 33 | VDEF:totalrain=rainpd,AVERAGE \ |
---|
| 34 | GPRINT:totalrain:"Total %6.0lf mm/Tag" \ |
---|
| 35 | LINE2:rainph#729fcf |
---|
[daaef3e] | 36 | |
---|
[53aed1c] | 37 | rrdtool graph web/regen_1woche.png \ |
---|
| 38 | --title "Regen im Wochenverlauf" \ |
---|
[8cc14b9] | 39 | --font TITLE:12 \ |
---|
[53aed1c] | 40 | -s 'now - 1 week' -e 'now' \ |
---|
| 41 | -v mm/Stunde \ |
---|
| 42 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
| 43 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \ |
---|
| 44 | CDEF:rainpw=rainph,168,* \ |
---|
| 45 | VDEF:totalrain=rainpw,AVERAGE \ |
---|
| 46 | GPRINT:totalrain:"Total %6.0lf mm/Woche" \ |
---|
| 47 | LINE2:rainph#729fcf |
---|
[daaef3e] | 48 | |
---|
[53aed1c] | 49 | rrdtool graph web/regen_1monat.png \ |
---|
| 50 | --title "Regen im Monatsverlauf" \ |
---|
[8cc14b9] | 51 | --font TITLE:12 \ |
---|
[53aed1c] | 52 | -s 'now - 1 month' -e 'now' \ |
---|
| 53 | -v mm/Tag \ |
---|
| 54 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
| 55 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \ |
---|
| 56 | CDEF:rainpm=rainpd,30,* \ |
---|
| 57 | VDEF:totalrain=rainpm,AVERAGE \ |
---|
| 58 | GPRINT:totalrain:"Total %6.0lf mm/Monat" \ |
---|
| 59 | LINE2:rainpd#729fcf |
---|
[daaef3e] | 60 | |
---|
[c22952c] | 61 | rrdtool graph web/regen_1jahr.png \ |
---|
| 62 | --title "Regen im Jahresverlauf" \ |
---|
[8cc14b9] | 63 | --font TITLE:12 \ |
---|
[c22952c] | 64 | -s 'now - 1 year' -e 'now' \ |
---|
| 65 | -v mm/Tag \ |
---|
| 66 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
| 67 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \ |
---|
| 68 | CDEF:rainpm=rainpd,30,* \ |
---|
| 69 | VDEF:totalrain=rainpm,AVERAGE \ |
---|
| 70 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \ |
---|
| 71 | LINE2:rainpd#729fcf |
---|
[daaef3e] | 72 | |
---|
[7fbafc7] | 73 | rrdtool graph web/regen_5jahr.png \ |
---|
| 74 | --title "Regen im Jahresverlauf" \ |
---|
| 75 | --font TITLE:12 \ |
---|
| 76 | -s 'now - 5 year' -e 'now' \ |
---|
| 77 | -v mm/Tag \ |
---|
| 78 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
| 79 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \ |
---|
| 80 | CDEF:rainpm=rainpd,30,* \ |
---|
| 81 | VDEF:totalrain=rainpm,AVERAGE \ |
---|
| 82 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \ |
---|
| 83 | LINE2:rainpd#729fcf |
---|
| 84 | |
---|
| 85 | |
---|
[8cc14b9] | 86 | 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] | 87 | |
---|
[8cc14b9] | 88 | 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] | 89 | |
---|
[8cc14b9] | 90 | 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] | 91 | |
---|
[8cc14b9] | 92 | 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] | 93 | |
---|
| 94 | 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" |
---|