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