From 7d94a3fe898b6b35d15d88c0739cc44f0ab891d3 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Mon, 15 Mar 2010 01:13:45 +0000 Subject: [PATCH] temporary fix --- sensor_graph/sample_sensor.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.10.4