source: de.wigbels.ruby/hothotread/archiv/draw_graphs.sh@ 05d3bab

Last change on this file since 05d3bab was 8cc14b9, checked in by Norbert Wigbels <njw@…>, 9 years ago

Aufraeumen

  • Property mode set to 100755
File size: 2.3 KB
Line 
1#!/bin/bash
2#DEF:temps9=../hotcoldrain/weather.rrd:temps9:AVERAGE \
3#LINE1:temps9#4e9a06:"Temperatur aussen\n" \
4
5rrdtool 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" \
10DEF:gas=gas.rrd:gas:AVERAGE \
11CDEF:gash=gas,120,* \
12VDEF:gastotal=gas,TOTAL \
13GPRINT:gastotal:"Total %6.0lf Liter Gas" \
14LINE2:gash#c17d11:"Gasverbrauch"
15
16rrdtool 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" \
21DEF:gas=gas.rrd:gas:AVERAGE \
22CDEF:gasd=gas,2880,* \
23VDEF:gastotal=gas,TOTAL \
24GPRINT:gastotal:"Total %6.0lf Liter Gas" \
25LINE2:gasd#c17d11:"Gasverbrauch/Tag"
26
27rrdtool 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" \
32DEF:gas=gas.rrd:gas:AVERAGE \
33CDEF:gasd=gas,2880,* \
34VDEF:gastotal=gas,TOTAL \
35GPRINT:gastotal:"Total %6.0lf Liter Gas" \
36LINE2:gasd#c17d11:"Gasverbrauch/Tag"
37
38rrdtool 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" \
43DEF:gas=gas.rrd:gas:AVERAGE \
44CDEF:gasd=gas,2880,* \
45VDEF:gastotal=gas,TOTAL \
46GPRINT:gastotal:"Total %6.0lf Liter Gas" \
47LINE2:gasd#c17d11:"Gasverbrauch/Tag"
48
49
50
51rrdtool graph web/consum_1day.png -s 'now -1 day' -e 'now' -Y -A DEF:consum=power.rrd:consum:AVERAGE LINE2:consum#00FF00:"Verbrauch [W]"
52rrdtool graph web/consum_1week.png -s 'now -1 week' -e 'now' -Y -A DEF:consum=power.rrd:consum:AVERAGE LINE2:consum#00FF00:"Verbrauch [W]"
53rrdtool graph web/consum_1month.png -s 'now -1 month' -e 'now' -Y -A DEF:consum=power.rrd:consum:AVERAGE LINE2:consum#00FF00:"Verbrauch [W]"
54rrdtool graph web/consum_1year.png -s 'now -1 year' -e 'now' -Y -A DEF:consum=power.rrd:consum:AVERAGE LINE2:consum#00FF00:"Verbrauch [W]"
55
56rrdtool graph web/counter_1week.png -s 'now -1 week' -e 'now' -X 0 -Y -A DEF:counter=power.rrd:counter:LAST LINE2:counter#000000:"ZÀhlerstand [kWh]"
57rrdtool graph web/counter_1month.png -s 'now -1 month' -e 'now' -X 0 -Y -A DEF:counter=power.rrd:counter:LAST LINE2:counter#000000:"ZÀhlerstand [kWh]"
Note: See TracBrowser for help on using the repository browser.