Changeset 8cc14b9 for de.wigbels.ruby/hothotread
- Timestamp:
- 12/08/2015 08:42:09 PM (9 years ago)
- Branches:
- master
- Children:
- aeab935
- Parents:
- c22952c
- Location:
- de.wigbels.ruby/hothotread
- Files:
-
- 9 added
- 3 deleted
- 2 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
de.wigbels.ruby/hothotread/draw_graphs.sh
rc22952c r8cc14b9 1 1 #!/bin/bash 2 #DEF:temps9=../hotcoldrain/weather.rrd:temps9:AVERAGE \3 #LINE1:temps9#4e9a06:"Temperatur aussen\n" \4 2 5 rrdtool graph web/gas_1tag.png \ 6 -w 800 -h 500 \ 7 -s 'now - 1 day' -e 'now' \ 8 --title "Gasverbrauch im Tagesverlauf" \ 9 --font TITLE:12 --vertical-label="Liter/Stunde" \ 10 DEF:gas=gas.rrd:gas:AVERAGE \ 11 CDEF:gash=gas,120,* \ 12 VDEF:gastotal=gas,TOTAL \ 13 GPRINT:gastotal:"Total %6.0lf Liter Gas" \ 14 LINE2:gash#c17d11:"Gasverbrauch" 3 rrdtool graph web/gas_1tag.png -s 'now - 1 day' -e 'now' DEF:consum=gasneu.rrd:consum:AVERAGE CDEF:conph=consum,3600,* LINE2:conph#c17d11:m³/h 4 rrdtool graph web/gas_1week.png -s 'now - 1 week' -e 'now' DEF:consum=gasneu.rrd:consum:AVERAGE CDEF:conpd=consum,3600,*,24,* LINE2:conpd#c17d11:m³/h 5 rrdtool graph web/gas_1month.png -s 'now - 1 month' -e 'now' DEF:consum=gasneu.rrd:consum:AVERAGE CDEF:conpd=consum,3600,*,24,* LINE2:conpd#c17d11:m³/h 6 rrdtool graph web/gas_1year.png -s 'now - 1 year' -e 'now' DEF:consum=gasneu.rrd:consum:AVERAGE CDEF:conpm=consum,3600,*,24,*,30,* LINE2:conpm#c17d11:m³/h 15 7 16 rrdtool graph web/gas_1woche.png \ 17 -w 800 -h 500 \ 18 -s 'now - 1 week' -e 'now' \ 19 --title "Gasverbrauch im Wochenverlauf" \ 20 --font TITLE:12 --vertical-label="Liter/Tag" \ 21 DEF:gas=gas.rrd:gas:AVERAGE \ 22 CDEF:gasd=gas,2880,* \ 23 VDEF:gastotal=gas,TOTAL \ 24 GPRINT:gastotal:"Total %6.0lf Liter Gas" \ 25 LINE2:gasd#c17d11:"Gasverbrauch/Tag" 26 27 rrdtool graph web/gas_1monat.png \ 28 -w 800 -h 500 \ 29 -s 'now - 1 month' -e 'now' \ 30 --title "Gasverbrauch im Monatsverlauf" \ 31 --font TITLE:12 --vertical-label="Liter/Tag" \ 32 DEF:gas=gas.rrd:gas:AVERAGE \ 33 CDEF:gasd=gas,2880,* \ 34 VDEF:gastotal=gas,TOTAL \ 35 GPRINT:gastotal:"Total %6.0lf Liter Gas" \ 36 LINE2:gasd#c17d11:"Gasverbrauch/Tag" 37 38 rrdtool graph web/gas_1jahr.png \ 39 -w 800 -h 500 \ 40 -s 'now - 1 year' -e 'now' \ 41 --title "Gasverbrauch im Jahresverlauf" \ 42 --font TITLE:12 --vertical-label="Liter/Tag" \ 43 DEF:gas=gas.rrd:gas:AVERAGE \ 44 CDEF:gasd=gas,2880,* \ 45 VDEF:gastotal=gas,TOTAL \ 46 GPRINT:gastotal:"Total %6.0lf Liter Gas" \ 47 LINE2:gasd#c17d11:"Gasverbrauch/Tag" 48 8 rrdtool graph web/gascounter_1week.png -s 'now -1 week' -e 'now' -X 0 -Y -A DEF:counter=gasneu.rrd:counter:LAST LINE2:counter#000000:"ZÀhlerstand [m³]" 9 rrdtool graph web/gascounter_1month.png -s 'now -1 month' -e 'now' -X 0 -Y -A DEF:counter=gasneu.rrd:counter:LAST LINE2:counter#000000:"ZÀhlerstand [m³]" 49 10 50 11 -
de.wigbels.ruby/hothotread/web/index.html
rc22952c r8cc14b9 5 5 <h2>Gas</h2> 6 6 <img src="gas_1tag.png"> 7 <img src="gas_1woche.png"> 8 <img src="gas_1monat.png"> 9 <img src="gas_1jahr.png"> 7 <img src="gas_1week.png"> 8 <img src="gas_1month.png"> 9 <img src="gas_1year.png"> 10 <img src="gascounter_1week.png"> 11 <img src="gascounter_1month.png "> 10 12 11 13 <h2>Strom</h2>
Note:
See TracChangeset
for help on using the changeset viewer.