Posts by Lafuture

    Hey Sascha,

    sorry, missed the notification of your reply :rolleyes:

    • Libreelec is the latest official Version: LibreELEC (official): 8.2.5 (RPi2.arm)
    • Board is a RPi2 / B
    • cat /proc/cpuinfo puts out:

    Hey,

    i am trying to connect a DHT11/22 temperature sensor to my Libreelec/RPi2 using the GPIO connectors to get current room temperature (and humidity).

    I have installed the "Adafruit Libraries" Addon from the Official "LibreELEC" Addon repository. This includes "Adafruit_DHT" Libraries that are intended to do that.

    But unfortunately i am struggeling with using this Libraries properly. ?(

    I tried a simple python example script to put out the current temperature:

    Script source: adafruitdht.py

    I added these lines to load the DHT libraries:

    Python
    libPath = '/storage/.kodi/addons/virtual.adafruit-libraries/lib/'
    if not libPath in sys.path: sys.path.append(libPath)
    import Adafruit_DHT

    But still only get errors /shrug

    Are there some docs i can read regarding Libreelec and the Adafruit Libraries? (I have found nothing so far)

    Are the Adafruit Libraries intended to be used from the commandline?

    Or do i need to call them from Kodi?

    Are there any examples i can have a look at?

    I appreciate any hint or Idea. :)

    Thanks

    Thomas