From: Bernhard Tittelbach Date: Mon, 15 Mar 2010 01:13:45 +0000 (+0000) Subject: temporary fix X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=7d94a3fe898b6b35d15d88c0739cc44f0ab891d3;p=svn42.git temporary fix --- diff --git a/sensor_graph/sample_sensor.lua b/sensor_graph/sample_sensor.lua index d5be01d..50b2031 100755 --- a/sensor_graph/sample_sensor.lua +++ b/sensor_graph/sample_sensor.lua @@ -13,12 +13,12 @@ end function parse_value(str) - if string.find(str,"Temp C:") then - last_temp = tonumber(string.sub(str,11)) + if string.find(str,"Sensor T: Temp C:") then + last_temp = tonumber(string.sub(str,18)) --print(string.format("t: %f Grad Celsius",last_temp)) end - if string.find(str,"Photo:") then - last_light = tonumber(string.sub(str,10)) + if string.find(str,"Sensor P: Photo:") then + last_light = tonumber(string.sub(str,17)) --print(string.format("p: %d",last_light)) end if string.find(str,"movement") then