extra test
This commit is contained in:
@@ -79,7 +79,11 @@ class InSyncState < StatePattern::State
|
||||
end
|
||||
if line.match(/0-0:96.14.0/) # Hoog/laag tarief
|
||||
reading.high_tarif = line.split(/0-0:96.14.0\(|\)/).join.eql?("0002")
|
||||
end
|
||||
end
|
||||
if line.match(/0-1:24.2.1/)
|
||||
p "Gas reading found."
|
||||
p "Reading time: #{line.split(/0-1:24.2.1\(|\)/).join}"
|
||||
end
|
||||
if match = line.match(gas_pattern) # Gas verbruik (1x per uur een nieuwe stand)
|
||||
p "Gas reading: #{match[1]} (#{match[2]})"
|
||||
reading.total_m3_gas_consumed = match[3].to_f
|
||||
|
||||
Reference in New Issue
Block a user