Ignore:
Timestamp:
Nov 30, 2014, 9:21:35 PM (9 years ago)
Author:
Norbert Wigbels <njw@…>
Branches:
master
Children:
cf9f2dc
Parents:
5ce93a3
Message:

Gaszaehler mit RRDTool-Auswertung

File:
1 edited

Legend:

Unmodified
Added
Removed
  • de.wigbels.ruby/hothotread/hothotpiper.rb

    r5ce93a3 r53aed1c  
    2424include PiPiper
    2525
    26 @mypath = File.expand_path(File.dirname(__FILE__))
     26$mypath = File.expand_path(File.dirname(__FILE__))
    2727
    2828
     
    3030  puts('added 10 liter of gas to sensor-database')
    3131  Net::HTTP.get(URI.parse('http://www.wigbels.net/cgi-bin/hhw.rb?sensorid=1&data=10'))
    32   system("rrdtool update #{@mypath}/energy.rrd N:10:U:U")
     32  system("rrdtool update #{$mypath}/gas.rrd N:10")
    3333end
    3434
Note: See TracChangeset for help on using the changeset viewer.