Closed GoogleCodeExporter closed 9 years ago
Also thanks very much for your hard work on this! This is an awesome project
and I will continue to assist where I can.
Original comment by kewlj1...@gmail.com
on 14 Feb 2013 at 4:16
can you add :
1) precise component ref
2) webiopi driver you used (OneWireTemp or DS*)
3) dump of /sys/bus/w1/devices/{device_id}/w1_slave when this error occurs
Original comment by tro...@trouch.com
on 14 Feb 2013 at 9:55
[deleted comment]
1) DS18B20
2) in my /etc/webiopi/config I used the following temp0 = DS18B20
28-000004664d5f
I'm not sure what else you are looking for here on the driver info.
3)
pi@raspberrypi /sys/bus/w1/devices $ cat
/sys/bus/w1/devices/28-000004664d5f/w1_slave
3e 00 4b 46 7f ff 02 10 51 : crc=51 YES
3e 00 4b 46 7f ff 02 10 51 t=3875
Again the reason for this error is because the temperature is below 10 degrees
C. The code fix I did above fixes the problem.
Thank you,
-Jason
Original comment by kewlj1...@gmail.com
on 14 Feb 2013 at 12:01
[deleted comment]
ok, I did not well understood first time.
I will rather use :
i = lines[1].find('=')
temp = lines[1][i+1:]
return int(temp)
thanks for feedback, I will correct it later today.
Original comment by tro...@trouch.com
on 14 Feb 2013 at 1:29
Good idea on the fix because that will also handle when there are less than 4
chars etc...
don't forget to divide by 1000.0
return int(temp)/1000.0
Original comment by JasonFli...@gmail.com
on 14 Feb 2013 at 2:59
This issue was closed by revision r898.
Original comment by tro...@trouch.com
on 14 Feb 2013 at 5:49
Original issue reported on code.google.com by
kewlj1...@gmail.com
on 14 Feb 2013 at 4:15