1 | #!/bin/bash |
---|
2 | |
---|
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" \ |
---|
7 | DEF:temp1=../mqtttemp/mqtttemp.rrd:temp1:AVERAGE LINE2:temp1#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:temp1:LAST:"Letzte Messung enklavE\: %2.2lf" |
---|
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 | DEF:hum1=../mqtttemp/mqtttemp.rrd:hum1:AVERAGE LINE2:hum1#6666ff:"Luftfeuchtigkeit enklavE\n" \ |
---|
55 | 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" |
---|
56 | |
---|
57 | rrdtool graph web/luftfeuchtigkeit_6stunden.png --title "Luftfeuchtigkeit 6h" --font TITLE:12 --vertical-label="%" -s 'now - 6 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" \ |
---|
61 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf" |
---|
62 | |
---|
63 | rrdtool graph web/luftfeuchtigkeit_12stunden.png --title "Luftfeuchtigkeit 12h" --font TITLE:12 --vertical-label="%" -s 'now - 12 hour' -e 'now' \ |
---|
64 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \ |
---|
65 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \ |
---|
66 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" \ |
---|
67 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf" |
---|
68 | |
---|
69 | rrdtool graph web/luftfeuchtigkeit_1tag.png --title "Luftfeuchtigkeit im Tagesverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 day' -e 'now' \ |
---|
70 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \ |
---|
71 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \ |
---|
72 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" \ |
---|
73 | GPRINT:hums1:LAST:"Letzte Messung unten\: %3.2lf" GPRINT:hums2:LAST:"oben\: %3.2lf" GPRINT:hums9:LAST:"aussen\: %3.2lf" |
---|
74 | |
---|
75 | rrdtool graph web/luftfeuchtigkeit_1woche.png --title "Luftfeuchtigkeit im Wochenverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 week' -e 'now' \ |
---|
76 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \ |
---|
77 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \ |
---|
78 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" |
---|
79 | |
---|
80 | rrdtool graph web/luftfeuchtigkeit_1monat.png --title "Luftfeuchtigkeit im Monatsverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 month' -e 'now' \ |
---|
81 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \ |
---|
82 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \ |
---|
83 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" |
---|
84 | |
---|
85 | rrdtool graph web/luftfeuchtigkeit_1jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 1 year' -e 'now' \ |
---|
86 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \ |
---|
87 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \ |
---|
88 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" |
---|
89 | |
---|
90 | rrdtool graph web/luftfeuchtigkeit_5jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -s 'now - 5 year' -e 'now' \ |
---|
91 | DEF:hums1=weather.rrd:hums1:AVERAGE LINE2:hums1#204a87:"Luftfeuchtigkeit unten" \ |
---|
92 | DEF:hums2=weather.rrd:hums2:AVERAGE LINE2:hums2#f57900:"Luftfeuchtigkeit oben" \ |
---|
93 | DEF:hums9=weather.rrd:hums9:AVERAGE LINE2:hums9#4e9a06:"Luftfeuchtigkeit aussen\n" |
---|
94 | |
---|
95 | |
---|
96 | rrdtool graph web/regen_1tag.png \ |
---|
97 | --title "Regen im Tagesverlauf" \ |
---|
98 | --font TITLE:12 \ |
---|
99 | -s 'now - 1 day' -e 'now' \ |
---|
100 | -v mm/Stunde \ |
---|
101 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
102 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \ |
---|
103 | CDEF:rainpd=rainph,24,* \ |
---|
104 | VDEF:totalrain=rainpd,AVERAGE \ |
---|
105 | GPRINT:totalrain:"Total %6.0lf mm/Tag" \ |
---|
106 | LINE2:rainph#729fcf |
---|
107 | |
---|
108 | rrdtool graph web/regen_1woche.png \ |
---|
109 | --title "Regen im Wochenverlauf" \ |
---|
110 | --font TITLE:12 \ |
---|
111 | -s 'now - 1 week' -e 'now' \ |
---|
112 | -v mm/Stunde \ |
---|
113 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
114 | CDEF:rainph=rains9,3600,*,1,*,0.295,* \ |
---|
115 | CDEF:rainpw=rainph,168,* \ |
---|
116 | VDEF:totalrain=rainpw,AVERAGE \ |
---|
117 | GPRINT:totalrain:"Total %6.0lf mm/Woche" \ |
---|
118 | LINE2:rainph#729fcf |
---|
119 | |
---|
120 | rrdtool graph web/regen_1monat.png \ |
---|
121 | --title "Regen im Monatsverlauf" \ |
---|
122 | --font TITLE:12 \ |
---|
123 | -s 'now - 1 month' -e 'now' \ |
---|
124 | -v mm/Tag \ |
---|
125 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
126 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \ |
---|
127 | CDEF:rainpm=rainpd,30,* \ |
---|
128 | VDEF:totalrain=rainpm,AVERAGE \ |
---|
129 | GPRINT:totalrain:"Total %6.0lf mm/Monat" \ |
---|
130 | LINE2:rainpd#729fcf |
---|
131 | |
---|
132 | rrdtool graph web/regen_1jahr.png \ |
---|
133 | --title "Regen im Jahresverlauf" \ |
---|
134 | --font TITLE:12 \ |
---|
135 | -s 'now - 1 year' -e 'now' \ |
---|
136 | -v mm/Tag \ |
---|
137 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
138 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \ |
---|
139 | CDEF:rainpm=rainpd,30,* \ |
---|
140 | VDEF:totalrain=rainpm,AVERAGE \ |
---|
141 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \ |
---|
142 | LINE2:rainpd#729fcf |
---|
143 | |
---|
144 | rrdtool graph web/regen_5jahr.png \ |
---|
145 | --title "Regen im Jahresverlauf" \ |
---|
146 | --font TITLE:12 \ |
---|
147 | -s 'now - 5 year' -e 'now' \ |
---|
148 | -v mm/Tag \ |
---|
149 | DEF:rains9=weather.rrd:rains9:AVERAGE \ |
---|
150 | CDEF:rainpd=rains9,3600,*,24,*,0.295,* \ |
---|
151 | CDEF:rainpm=rainpd,30,* \ |
---|
152 | VDEF:totalrain=rainpm,AVERAGE \ |
---|
153 | GPRINT:totalrain:"Total %6.0lf mm/Jahr" \ |
---|
154 | LINE2:rainpd#729fcf |
---|
155 | |
---|
156 | |
---|
157 | 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" |
---|
158 | |
---|
159 | 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" |
---|
160 | |
---|
161 | 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" |
---|
162 | |
---|
163 | 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" |
---|
164 | |
---|
165 | 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" |
---|