Ignore:
Timestamp:
Dec 5, 2015, 9:53:28 PM (8 years ago)
Author:
Norbert Wigbels <njw@…>
Branches:
master
Children:
8cc14b9
Parents:
b342b88
Message:

Stromzaehler

Location:
de.wigbels.ruby/hotcoldrain
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • de.wigbels.ruby/hotcoldrain/draw_graphs.sh

    rb342b88 rc22952c  
    77rrdtool graph web/temperatur_1monat.png --title "Temperaturen im Monatsverlauf" --font TITLE:12 --vertical-label="° Celsius" -w 800 -h 500 -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"
    88
     9rrdtool graph web/temperatur_1jahr.png --title "Temperaturen im Jahresverlauf" --font TITLE:12 --vertical-label="° Celsius" -w 800 -h 500 -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"
     10
    911
    1012rrdtool graph web/luftfeuchtigkeit_1tag.png --title "Luftfeuchtigkeit im Tagesverlauf" --font TITLE:12 --vertical-label="%" -w 800 -h 500 -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"
     
    1315
    1416rrdtool graph web/luftfeuchtigkeit_1monat.png --title "Luftfeuchtigkeit im Monatsverlauf" --font TITLE:12 --vertical-label="%" -w 800 -h 500 -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"
     17
     18rrdtool graph web/luftfeuchtigkeit_1jahr.png --title "Luftfeuchtigkeit im Jahresverlauf" --font TITLE:12 --vertical-label="%" -w 800 -h 500 -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"
    1519
    1620
     
    5155LINE2:rainpd#729fcf
    5256
     57rrdtool graph web/regen_1jahr.png \
     58--title "Regen im Jahresverlauf" \
     59--font TITLE:12 -w 800 -h 500 \
     60-s 'now - 1 year' -e 'now' \
     61-v mm/Tag \
     62DEF:rains9=weather.rrd:rains9:AVERAGE \
     63CDEF:rainpd=rains9,3600,*,24,*,0.295,* \
     64CDEF:rainpm=rainpd,30,* \
     65VDEF:totalrain=rainpm,AVERAGE \
     66GPRINT:totalrain:"Total %6.0lf mm/Jahr" \
     67LINE2:rainpd#729fcf
    5368
    5469rrdtool graph web/wind_1tag.png --title "Wind im Tagesverlauf" --font TITLE:12 -w 800 -h 500 -s 'now - 1 day' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
     
    5772
    5873rrdtool graph web/wind_1monat.png --title "Wind im Monatsverlauf" --font TITLE:12 -w 800 -h 500 -s 'now - 1 month' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
     74
     75rrdtool graph web/wind_1jahr.png --title "Wind im Jahresverlauf" --font TITLE:12 -w 800 -h 500 -s 'now - 1 year' -e 'now' -v km/h DEF:winds9=weather.rrd:winds9:AVERAGE LINE2:winds9#2e3436:"Wind km/h"
  • de.wigbels.ruby/hotcoldrain/hotcoldrain.rb

    rb342b88 rc22952c  
    6565        system("rrdtool update #{mypath}/weather.rrd #{rrddata}")
    6666
    67         MQTT::Client.connect('mqtt://notwist:pixies@wigbels.net') do |c|
    68           c.publish('oben/temperatur', datagrams[0])
    69         end
    70         #log(INFO, 'added 100 liter of gas to sensor-database')
     67        # MQTT::Client.connect('mqtt://notwist:pixies@wigbels.net') do |c|
     68        #   c.publish('oben/temperatur', datagrams[0])
     69        # end
    7170      end
    7271      @serialport.close
  • de.wigbels.ruby/hotcoldrain/web/index.html

    rb342b88 rc22952c  
    77<img src="temperatur_1woche.png"> <img src="luftfeuchtigkeit_1woche.png"> <br />
    88<img src="temperatur_1monat.png"> <img src="luftfeuchtigkeit_1monat.png"> <br />
     9<img src="temperatur_1jahr.png"> <img src="luftfeuchtigkeit_1jahr.png"> <br />
    910
    1011<h2>Regen / Wind</h2>
     
    1213<img src="regen_1woche.png"> <img src="wind_1woche.png"> <br />
    1314<img src="regen_1monat.png"> <img src="wind_1monat.png"> <br />
     15<img src="regen_1jahr.png"> <img src="wind_1jahr.png"> <br />
    1416
    1517<p>Stationskoordinaten: 53&deg;34'17.1"N 9&deg;29'21.8"E, Stade-Ottenbeck</p>
Note: See TracChangeset for help on using the changeset viewer.