X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=sensor_graph%2Fsample_sensor.lua;h=70c5d4e040b34ba89bab02a6ffa39d019656ecd3;hb=8befba2f0ce9edf38e4fec29cb69a6225d151c54;hp=bcd6ec382f5d135b7fc143c994ee0ecb68275b9d;hpb=9db6a57b5f7aec4f91dda128f092d05d574ae358;p=svn42.git diff --git a/sensor_graph/sample_sensor.lua b/sensor_graph/sample_sensor.lua index bcd6ec3..70c5d4e 100644 --- a/sensor_graph/sample_sensor.lua +++ b/sensor_graph/sample_sensor.lua @@ -13,11 +13,11 @@ end function parse_value(str) if string.find(str,"Temp C:") then - last_temp = tonumber(string.sub(str,8)) + last_temp = tonumber(string.sub(str,11)) --print(string.format("t: %f Grad Celsius",last_temp)) end if string.find(str,"Photo:") then - last_light = tonumber(string.sub(str,7)) + last_light = tonumber(string.sub(str,10)) --print(string.format("p: %d",last_light)) end if string.find(str,"movement") then