projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1931337
)
temporary fix
author
Bernhard Tittelbach
<xro@realraum.at>
Mon, 15 Mar 2010 01:13:45 +0000
(
01:13
+0000)
committer
Bernhard Tittelbach
<xro@realraum.at>
Mon, 15 Mar 2010 01:13:45 +0000
(
01:13
+0000)
sensor_graph/sample_sensor.lua
patch
|
blob
|
history
diff --git
a/sensor_graph/sample_sensor.lua
b/sensor_graph/sample_sensor.lua
index
d5be01d
..
50b2031
100755
(executable)
--- a/
sensor_graph/sample_sensor.lua
+++ b/
sensor_graph/sample_sensor.lua
@@
-13,12
+13,12
@@
end
function parse_value(str)
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
--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
--print(string.format("p: %d",last_light))
end
if string.find(str,"movement") then