Changeset 53aed1c for de.wigbels.ruby/hothotread/hothotpiper.rb
- Timestamp:
- Nov 30, 2014, 9:21:35 PM (9 years ago)
- Branches:
- master
- Children:
- cf9f2dc
- Parents:
- 5ce93a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
de.wigbels.ruby/hothotread/hothotpiper.rb
r5ce93a3 r53aed1c 24 24 include PiPiper 25 25 26 @mypath = File.expand_path(File.dirname(__FILE__))26 $mypath = File.expand_path(File.dirname(__FILE__)) 27 27 28 28 … … 30 30 puts('added 10 liter of gas to sensor-database') 31 31 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") 33 33 end 34 34
Note: See TracChangeset
for help on using the changeset viewer.