• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-DHT22

Scheduled Pinned Locked Moved Utilities
14 Posts 6 Posters 3.4k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JohnGalt
    last edited by Jan 2, 2024, 10:29 PM

    Thanks for your work - it looks good and has the offset feature I need! Like @BKeyport I formerly used MMM-LocalTemperature, but it won’t run on my new MagicMirror build.

    For context, I currently do have MMM-DHT-Sensor running on this instance. It runs just fine, but I would prefer the look and feel of yours, as well as needing the offset feature. I have also tried changing from GPIO 4 to GPIO 21 - same results [MMM-DHT-Sensor works on either, MMM-DHT22 works on neither].

    My issue with MMM-DHT22 is understanding whether one can get it to run on a Raspberry Pi 4? I have been unable to do so, and it appears to be issues with the Adafruit_Python_DHT libraries. My research appears to show your module relies on that Adafruit library, and the Adafruit library doesn’t support Raspberry Pi 4.

    Am I missing something? If so, what? If not, is there a workaround?

    B 1 Reply Last reply Jan 2, 2024, 10:56 PM Reply Quote 0
    • B Offline
      BKeyport Module Developer @JohnGalt
      last edited by Jan 2, 2024, 10:56 PM

      @JohnGalt I had no trouble with the Adafruit libraries on Pi4. It should be working just fine - Take a look around https://forums.adafruit.com/ - there might be fixes or something available.

      The "E" in "Javascript" stands for "Easy"

      J 1 Reply Last reply Jan 4, 2024, 12:17 AM Reply Quote 0
      • J Offline
        JohnGalt @BKeyport
        last edited by Jan 4, 2024, 12:17 AM

        @BKeyport thanks for the response. It looks like my issue is actually with the Linux 12 / bookworm version of Raspbian I installed when rebuilding my MagicMirror, as opposed to the R-Pi 4 hardware.

        In reading the Adafruit forums here: https://forums.adafruit.com/viewtopic.php?p=938344&hilit=Adafruit_Python_DHT#p938344 I find the official Adafruit response to someone with the same issues is that “DHT22 really sucks to use on linux” and … “you will be a lot happier just using the DHT20 and friends”, with a reference to an Adafruit web article at https://learn.adafruit.com/modern-replacements-for-dht11-dht22-sensors/overview.

        In short, the advice is to just buy all new sensors for your Raspberry Pi installs. The OP pointed out that while he acknowledges the newer sensors may indeed be better, that " I spent a good amount of money buying and building, and for all of that to go away with an update really stinks! :( ".

        I agree with him since I have probably five (5) DHT 11/22 sensors working on R-Pis, and while it looks like he found a way to upgrade all pip libraries and get it working again, it also appears to only be a matter of time until another update or upgrade of something breaks the system.

        Again thanks for pointing me in the right direction.

        B 1 Reply Last reply Jan 4, 2024, 1:29 AM Reply Quote 0
        • B Offline
          BKeyport Module Developer @JohnGalt
          last edited by Jan 4, 2024, 1:29 AM

          @JohnGalt I’m betting LadyAda and co are working on a fix all the same. They’re big on keeping old hardware working.

          The "E" in "Javascript" stands for "Easy"

          J 1 Reply Last reply Jan 8, 2024, 5:44 PM Reply Quote 0
          • J Offline
            JohnGalt @BKeyport
            last edited by Jan 8, 2024, 5:44 PM

            @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.

            1 Reply Last reply Reply Quote 0
            • M Offline
              Michi0904
              last edited by Feb 10, 2024, 4:20 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • J Offline
                Jimmy1502
                last edited by Mar 30, 2024, 3:57 PM

                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.

                1 Reply Last reply Reply Quote 0
                • B bugsounet referenced this topic on Mar 31, 2024, 10:24 AM
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy