[af9afaf] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[a605f5ba] | 3 | rrdtool graph web/temperatur_3stunden.png --title "Temperaturen 3h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 3 hour' -e 'now' \
|
---|
| 4 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 5 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
| 6 | DEF:temps9=weather.rrd:temps9:AVERAGE LINE2:temps9#4e9a06:"Temperatur aussen\n" \
|
---|
[8fc8871] | 7 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE\n" \
|
---|
[2827513] | 8 | GPRINT:temps1:LAST:"Letzte Messung unten\: %2.2lf" GPRINT:temps2:LAST:"oben\: %2.2lf" GPRINT:temps9:LAST:"aussen\: %2.2lf" GPRINT:temp1:LAST:"Letzte Messung enklavE\: %2.2lf"
|
---|
[a605f5ba] | 9 |
|
---|
[15a09ee] | 10 | rrdtool graph web/temperatur_3stunden.png --title "Temperaturen 3h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 6 hour' -e 'now' \
|
---|
[a605f5ba] | 11 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 12 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
| 13 | DEF:temps9=weather.rrd:temps9:AVERAGE LINE2:temps9#4e9a06:"Temperatur aussen\n" \
|
---|
[15a09ee] | 14 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE\n" \
|
---|
| 15 | GPRINT:temps1:LAST:"Letzte Messung unten\: %2.2lf" GPRINT:temps2:LAST:"oben\: %2.2lf" GPRINT:temps9:LAST:"aussen\: %2.2lf" GPRINT:temp1:LAST:"Letzte Messung enklavE\: %2.2lf"
|
---|
[a605f5ba] | 16 |
|
---|
[15a09ee] | 17 | rrdtool graph web/temperatur_3stunden.png --title "Temperaturen 3h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 12 hour' -e 'now' \
|
---|
[a605f5ba] | 18 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 19 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
| 20 | DEF:temps9=weather.rrd:temps9:AVERAGE LINE2:temps9#4e9a06:"Temperatur aussen\n" \
|
---|
[15a09ee] | 21 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE\n" \
|
---|
| 22 | GPRINT:temps1:LAST:"Letzte Messung unten\: %2.2lf" GPRINT:temps2:LAST:"oben\: %2.2lf" GPRINT:temps9:LAST:"aussen\: %2.2lf" GPRINT:temp1:LAST:"Letzte Messung enklavE\: %2.2lf"
|
---|
[a605f5ba] | 23 |
|
---|
[15a09ee] | 24 | rrdtool graph web/temperatur_3stunden.png --title "Temperaturen 3h" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 1 day' -e 'now' \
|
---|
[a605f5ba] | 25 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 26 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
| 27 | DEF:temps9=weather.rrd:temps9:AVERAGE LINE2:temps9#4e9a06:"Temperatur aussen\n" \
|
---|
[15a09ee] | 28 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE\n" \
|
---|
| 29 | GPRINT:temps1:LAST:"Letzte Messung unten\: %2.2lf" GPRINT:temps2:LAST:"oben\: %2.2lf" GPRINT:temps9:LAST:"aussen\: %2.2lf" GPRINT:temp1:LAST:"Letzte Messung enklavE\: %2.2lf"
|
---|
[a605f5ba] | 30 |
|
---|
| 31 | rrdtool graph web/temperatur_1woche.png --title "Temperaturen im Wochenverlauf" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 1 week' -e 'now' \
|
---|
| 32 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 33 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
[15a09ee] | 34 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE" \
|
---|
[a605f5ba] | 35 | DEF:tempmins9=weather.rrd:temps9:MIN DEF:tempmaxs9=weather.rrd:temps9:MAX \
|
---|
| 36 | 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"
|
---|
| 37 |
|
---|
| 38 | rrdtool graph web/temperatur_1monat.png --title "Temperaturen im Monatsverlauf" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 1 month' -e 'now' \
|
---|
| 39 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 40 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
[15a09ee] | 41 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE" \
|
---|
[a605f5ba] | 42 | 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"
|
---|
| 43 |
|
---|
| 44 | rrdtool graph web/temperatur_1jahr.png --title "Temperaturen im Jahresverlauf" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 1 year' -e 'now' \
|
---|
| 45 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 46 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
[15a09ee] | 47 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE" \
|
---|
[a605f5ba] | 48 | 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"
|
---|
| 49 |
|
---|
| 50 | rrdtool graph web/temperatur_5jahr.png --title "Temperaturen im Jahresverlauf" --font TITLE:12 --vertical-label="° Celsius" -s 'now - 5 year' -e 'now' \
|
---|
| 51 | DEF:temps1=weather.rrd:temps1:AVERAGE LINE2:temps1#204a87:"Temperatur unten" \
|
---|
| 52 | DEF:temps2=weather.rrd:temps2:AVERAGE LINE2:temps2#f57900:"Temperatur oben" \
|
---|
[15a09ee] | 53 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#6666ff:"Temperatur enklavE" \
|
---|
[a605f5ba] | 54 | 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"
|
---|
| 55 |
|
---|
| 56 |
|
---|
| 57 | rrdtool graph web/luftfeuchtigkeit_3stunden.png --title "Luftfeuchtigkeit 3h" --font TITLE:12 --vertical-label="%" -s 'now - 3 hour' -e 'now' \
|
---|
| 58 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 59 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 60 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" \
|
---|
[5adf567] | 61 | DEF:hum1=../mqtttemp/mqtttemp.rrd:hum1:AVERAGE LINE2:hum1#6666ff:"Luftfeuchtigkeit enklavE\n" \
|
---|
| 62 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf" GPRINT:hum1:LAST:"enklavE\: %3.2lf"
|
---|
[a605f5ba] | 63 |
|
---|
| 64 | rrdtool graph web/luftfeuchtigkeit_6stunden.png --title "Luftfeuchtigkeit 6h" --font TITLE:12 --vertical-label="%" -s 'now - 6 hour' -e 'now' \
|
---|
| 65 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 66 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 67 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" \
|
---|
| 68 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf"
|
---|
| 69 |
|
---|
| 70 | rrdtool graph web/luftfeuchtigkeit_12stunden.png --title "Luftfeuchtigkeit 12h" --font TITLE:12 --vertical-label="%" -s 'now - 12 hour' -e 'now' \
|
---|
| 71 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 72 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 73 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" \
|
---|
| 74 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf"
|
---|
| 75 |
|
---|
| 76 | rrdtool graph web/luftfeuchtigkeit_1tag.png --title "Luftfeuchtigkeit im Tagesverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 day' -e 'now' \
|
---|
| 77 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 78 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 79 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" \
|
---|
| 80 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf"
|
---|
| 81 |
|
---|
| 82 | rrdtool graph web/luftfeuchtigkeit_1woche.png --title "Luftfeuchtigkeit im Wochenverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 week' -e 'now' \
|
---|
| 83 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 84 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 85 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n"
|
---|
| 86 |
|
---|
| 87 | rrdtool graph web/luftfeuchtigkeit_1monat.png --title "Luftfeuchtigkeit im Monatsverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 month' -e 'now' \
|
---|
| 88 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 89 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 90 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n"
|
---|
| 91 |
|
---|
| 92 | rrdtool graph web/luftfeuchtigkeit_1jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 year' -e 'now' \
|
---|
| 93 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 94 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 95 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n"
|
---|
| 96 |
|
---|
| 97 | rrdtool graph web/luftfeuchtigkeit_5jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 5 year' -e 'now' \
|
---|
| 98 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \
|
---|
| 99 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \
|
---|
| 100 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n"
|
---|
[7fbafc7] | 101 |
|
---|
[af9afaf] | 102 |
|
---|
[53aed1c] | 103 | rrdtool graph web/regen_1tag.png \
|
---|
| 104 | --title "Regen im Tagesverlauf" \
|
---|
[8cc14b9] | 105 | --font TITLE:12 \
|
---|
[53aed1c] | 106 | -s 'now - 1 day' -e 'now' \
|
---|
| 107 | -v mm/Stunde \
|
---|
| 108 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 109 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \
|
---|
| 110 | CDEF:rainpd=rainph,24,* \
|
---|
| 111 | VDEF:totalrain=rainpd,AVERAGE \
|
---|
| 112 | GPRINT:totalrain:"Total %6.0lf mm/Tag" \
|
---|
| 113 | LINE2:rainph#729fcf
|
---|
[daaef3e] | 114 |
|
---|
[53aed1c] | 115 | rrdtool graph web/regen_1woche.png \
|
---|
| 116 | --title "Regen im Wochenverlauf" \
|
---|
[8cc14b9] | 117 | --font TITLE:12 \
|
---|
[53aed1c] | 118 | -s 'now - 1 week' -e 'now' \
|
---|
| 119 | -v mm/Stunde \
|
---|
| 120 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 121 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \
|
---|
| 122 | CDEF:rainpw=rainph,168,* \
|
---|
| 123 | VDEF:totalrain=rainpw,AVERAGE \
|
---|
| 124 | GPRINT:totalrain:"Total %6.0lf mm/Woche" \
|
---|
| 125 | LINE2:rainph#729fcf
|
---|
[daaef3e] | 126 |
|
---|
[53aed1c] | 127 | rrdtool graph web/regen_1monat.png \
|
---|
| 128 | --title "Regen im Monatsverlauf" \
|
---|
[8cc14b9] | 129 | --font TITLE:12 \
|
---|
[53aed1c] | 130 | -s 'now - 1 month' -e 'now' \
|
---|
| 131 | -v mm/Tag \
|
---|
| 132 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 133 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 134 | CDEF:rainpm=rainpd,30,* \
|
---|
| 135 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 136 | GPRINT:totalrain:"Total %6.0lf mm/Monat" \
|
---|
| 137 | LINE2:rainpd#729fcf
|
---|
[daaef3e] | 138 |
|
---|
[c22952c] | 139 | rrdtool graph web/regen_1jahr.png \
|
---|
| 140 | --title "Regen im Jahresverlauf" \
|
---|
[8cc14b9] | 141 | --font TITLE:12 \
|
---|
[c22952c] | 142 | -s 'now - 1 year' -e 'now' \
|
---|
| 143 | -v mm/Tag \
|
---|
| 144 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 145 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 146 | CDEF:rainpm=rainpd,30,* \
|
---|
| 147 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 148 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \
|
---|
| 149 | LINE2:rainpd#729fcf
|
---|
[daaef3e] | 150 |
|
---|
[7fbafc7] | 151 | rrdtool graph web/regen_5jahr.png \
|
---|
| 152 | --title "Regen im Jahresverlauf" \
|
---|
| 153 | --font TITLE:12 \
|
---|
| 154 | -s 'now - 5 year' -e 'now' \
|
---|
| 155 | -v mm/Tag \
|
---|
| 156 | DEF:rains9=weather.rrd:rains9:AVERAGE \
|
---|
| 157 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
|
---|
| 158 | CDEF:rainpm=rainpd,30,* \
|
---|
| 159 | VDEF:totalrain=rainpm,AVERAGE \
|
---|
| 160 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \
|
---|
| 161 | LINE2:rainpd#729fcf
|
---|
| 162 |
|
---|
| 163 |
|
---|
[8cc14b9] | 164 | 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] | 165 |
|
---|
[8cc14b9] | 166 | 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] | 167 |
|
---|
[8cc14b9] | 168 | 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] | 169 |
|
---|
[8cc14b9] | 170 | 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] | 171 |
|
---|
| 172 | 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"
|
---|