Changeset daaef3e for de.wigbels.ruby/hothotread/hothotpiper.rb
- Timestamp:
- Nov 24, 2014, 9:30:20 PM (9 years ago)
- Branches:
- master
- Children:
- 5ce93a3
- Parents:
- af9afaf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
de.wigbels.ruby/hothotread/hothotpiper.rb
raf9afaf rdaaef3e 18 18 $SAFE=0 19 19 20 21 20 #------------------------------------------ 22 21 require 'net/http' … … 25 24 include PiPiper 26 25 26 @mypath = File.expand_path(File.dirname(__FILE__)) 27 27 28 28 29 watch :pin => 4, :trigger => :falling do 29 30 puts('added 10 liter of gas to sensor-database') 30 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") 31 33 end 32 34
Note: See TracChangeset
for help on using the changeset viewer.