Giter Club home page Giter Club logo

Comments (3)

ladyada avatar ladyada commented on September 13, 2024

nobody on our team uses jython - if you submit a pull request we'll take a look at merging it

from adafruit_python_dht.

ApprovedTOPKEK avatar ApprovedTOPKEK commented on September 13, 2024

Unfortunately I don't think that I've enough knowledge to fix this. Just a thing I noticed though:

In the error message, the path sometimes says "Adafrut_DHT" instead of "Adafruit_DHT"; Could that be the cause of the problem?

For example here:
File "/usr/local/lib/python2.7/dist-packages/Adafruit_DHT-1.1.0-py2.7-linux-armv7l.egg/Adafrut_DHT/common.py"

Is this normal or did I make this happen?

from adafruit_python_dht.

tdicola avatar tdicola commented on September 13, 2024

What system are you running on, is it a Raspberry Pi or something else? The code is actually platform-specific and has a C extension to very quickly read GPIO on the Pi. If you try to run on other platforms beyond the Raspberry Pi & BeagleBone Black unfortunately it won't work because they don't have the optimizied code to read the sensor. I have a feeling integrating with Jython will be difficult because the code uses Python C extensions and I'm not sure Jython supports it. Your best bet would be to have Jython call the Python scripts here, for example the Adafruit_DHT.py in the examples could be called by a Jython script and its output parsed to grab the readings. Again though it will only work on a Raspberry Pi (zero, 1, 2, 3) or BeagleBone Black. Good luck!

from adafruit_python_dht.

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.