Read the statement by Michael Teeuw here.
MMM-DHT22
-
@BKeyport - That has been my general impression of Adafruit, and for the sake of general continuity, I do hope that is the case. All that said, the situation with the sensor libraries has been a mess for years - with my personal favorite gripe being libraries being deprecated without clear messaging on the website hosting the old, together with new libraries with very similar names but different functionality. For the life of me I cannot understand why simply incrementing the version numbering wouldn’t have accomplished what was needed [accompanied of course, by clear messaging…].
Meanwhile I have ordered and received some DHT20 sensors, and will soon begin standing some of those up. This has entailed first building a development instance to work on, as I find the MagicMirror system to be fragile, and I want to minimize downtime on the production instance. As of yesterday I do have the dev instance running and am trying to iron out a couple of wrinkles, like tracking down why and how the default calendar module on the new dev instance doesn’t display recurring appointments the same as on the existing [production] instance. Seeing as I literally copied and pasted the configuration code from the old to the new, I would think it would perform the same.
Anyway - thanks again for the input and the guidance, as always.
-
This post is deleted! -
Hello, im quite new to the MagicMirror and I only have basic Programming Knowledge. I tried using ur Module and i strictly followed ur guide, but it doesnt work. The module itself is loading even th icons, but there are no numbers visible. I tried to check the library but it doesnt work.
Is it a Problem on my side or a Problem with the adafruit library?Thx for your help.
-
B bugsounet referenced this topic on
-
I have installed the module but get the following when I try to run your test ‘python3 AdafruitDHT.py 22 26’
I know the DHT-22 works on GPIO pin 26
~/Adafruit_Python_DHT/examples $ sudo python3 AdafruitDHT.py 22 26
Traceback (most recent call last):
File “/home/pi/Adafruit_Python_DHT/examples/AdafruitDHT.py”, line 41, in
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/Adafruit_DHT-1.4.0-py3.11-linux-aarch64.egg/Adafruit_DHT/common.py”, line 94, in read_retry
humidity, temperature = read(sensor, pin, platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/Adafruit_DHT-1.4.0-py3.11-linux-aarch64.egg/Adafruit_DHT/common.py”, line 80, in read
platform = get_platform()
^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/Adafruit_DHT-1.4.0-py3.11-linux-aarch64.egg/Adafruit_DHT/common.py”, line 63, in get_platform
raise RuntimeError(‘Unknown platform.’)
RuntimeError: Unknown platform.Any thoughts?
-
@lif It’s requiring tools no longer available, so dead module. Use something else.
https://github.com/Tom-Hirschberger/MMM-Temperature is what I used when I had a module hooked up to it.
-
@lif It’s requiring tools no longer available, so dead module. Use something else.
https://github.com/Tom-Hirschberger/MMM-Temperature is what I used when I had a module hooked up to it.
Thanks, I’ve given it a try but get an error in the last stage of the installation
~/MagicMirror/modules/MMM-Temperature/scripts $ ./venvWrapper.py --venv-name py-venv --run ./dht22 Traceback (most recent call last): File "/home/pi/MagicMirror/modules/MMM-Temperature/scripts/./dht22", line 6, in <module> import board File "/home/pi/MagicMirror/modules/MMM-Temperature/scripts/py-venv/lib/python3.11/site-packages/board.py", line 51, in <module> from adafruit_blinka.board.raspberrypi.raspi_40pin import * File "/home/pi/MagicMirror/modules/MMM-Temperature/scripts/py-venv/lib/python3.11/site-packages/adafruit_blinka/board/raspberrypi/raspi_40pin.py", line 6, in <module> from adafruit_blinka.microcontroller.bcm283x import pin File "/home/pi/MagicMirror/modules/MMM-Temperature/scripts/py-venv/lib/python3.11/site-packages/adafruit_blinka/microcontroller/bcm283x/pin.py", line 7, in <module> from adafruit_blinka.microcontroller.generic_linux.rpi_gpio_pin import Pin File "/home/pi/MagicMirror/modules/MMM-Temperature/scripts/py-venv/lib/python3.11/site-packages/adafruit_blinka/microcontroller/generic_linux/rpi_gpio_pin.py", line 6, in <module> from RPi import GPIO ModuleNotFoundError: No module named 'RPi'
-
@lif I’m not sure on that, @wishmaster270 (Tom) would know more.
-
Thanks, not the end of the world if I can’t use it.
-
@lif Hi. Great you want to try one of my modules.
Can you try installing a additional python system package with
sudo apt install python3-rpi-lgpio
I tried the scripts on my newly installed system with Bookworm and everything worked as expected.
Maybe the missing package had been installed with something else I installed on my system. -
@wishmaster270 said in MMM-DHT22:
@lif Hi. Great you want to try one of my modules.
Can you try installing a additional python system package with
sudo apt install python3-rpi-lgpio
I tried the scripts on my newly installed system with Bookworm and everything worked as expected.
Maybe the missing package had been installed with something else I installed on my system.Thanks, that was already installed
sudo apt install python3-rpi-lgpio Reading package lists... Done Building dependency tree... Done Reading state information... Done python3-rpi-lgpio is already the newest version (0.6-0~rpt1). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
This is on Bookworm