Ignore:
Timestamp:
12/09/2015 04:34:09 PM (9 years ago)
Author:
Norbert Wigbels <njw@…>
Branches:
master
Children:
1801b32, 7e221fe
Parents:
aeab935
Message:

Path, Gasverbrauch

Location:
de.wigbels.ruby/hothotread
Files:
2 edited

Legend:

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

    raeab935 rb62bf13  
    11#!/bin/bash
    22
    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
     3rrdtool 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
    44rrdtool 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
    55rrdtool 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  
    2424  counter = counter + trigger_step
    2525  trigger_update = trigger_step * 3600000.0
    26   system("rrdtool update #{mypath}/power.rrd N:#{counter}:#{trigger_update}")
     26  system("rrdtool update #{rrdpath} N:#{counter}:#{trigger_update}")
    2727end
    2828
Note: See TracChangeset for help on using the changeset viewer.