Changeset b62bf13 for de.wigbels.ruby/hothotread
- Timestamp:
- 12/09/2015 04:34:09 PM (9 years ago)
- Branches:
- master
- Children:
- 1801b32, 7e221fe
- Parents:
- aeab935
- Location:
- de.wigbels.ruby/hothotread
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
de.wigbels.ruby/hothotread/draw_graphs.sh
raeab935 rb62bf13 1 1 #!/bin/bash 2 2 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³/h3 rrdtool graph web/gas_1tag.png -s 'now - 1 day' -e 'now' DEF:consum=gasneu.rrd:consum:AVERAGE CDEF:conph=consum,3600,* CDEF:conpd=conph,24,* VDEF:gastotal=conpd,AVERAGE GPRINT:gastotal:"Total %4.2lf m³/d" LINE2:conph#c17d11:m³/h 4 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 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 -
de.wigbels.ruby/hothotread/hothotpiper_power.rb
raeab935 rb62bf13 24 24 counter = counter + trigger_step 25 25 trigger_update = trigger_step * 3600000.0 26 system("rrdtool update #{ mypath}/power.rrdN:#{counter}:#{trigger_update}")26 system("rrdtool update #{rrdpath} N:#{counter}:#{trigger_update}") 27 27 end 28 28
Note:
See TracChangeset
for help on using the changeset viewer.