Giter Site home page Giter Site logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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 [email protected] on 14 Feb 2013 at 4:16

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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 [email protected] on 14 Feb 2013 at 9:55

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
[deleted comment]

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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 [email protected] on 14 Feb 2013 at 12:01

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
[deleted comment]

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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 [email protected] on 14 Feb 2013 at 1:29

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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 [email protected] on 14 Feb 2013 at 2:59

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
This issue was closed by revision r898.

Original comment by [email protected] on 14 Feb 2013 at 5:49

  • Changed state: Fixed

from webiopi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.