• 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 Humidity and Temperature Module

Scheduled Pinned Locked Moved Utilities
47 Posts 14 Posters 39.2k Views 14 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.
  • B Offline
    Bangee Module Developer
    last edited by Sep 30, 2016, 11:26 AM

    Here is my MMM-DHT22 Module.
    Temperature and Humidity monitoring Module for MagicMirror2 that works for DHT22 and AM2302 sensors.
    https://github.com/Bangee44/MMM-DHT22/

    0_1475234649682_screenshot.jpg

    It’s analog to @psk’s Module: https://forum.magicmirror.builders/topic/726/mmm-temperature-humidity-module-dht11-dht22-and-am2302-sensors

    But I don’t want to run MagicMirror as Root with sudo.

    Bangee

    J 1 Reply Last reply Oct 15, 2016, 3:59 PM Reply Quote 3
    • M Offline
      MxBln
      last edited by Oct 15, 2016, 2:26 PM

      Does it also work with the DHT-11?

      F 1 Reply Last reply May 24, 2017, 8:04 AM Reply Quote 0
      • J Offline
        Jopyth Moderator @Bangee
        last edited by Oct 15, 2016, 3:59 PM

        @Bangee Just me being confused: this needs sudo rights, doesn’t it? You just do not want to start the mirror with sudo?

        Helpful sticky: How to troubleshoot

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bangee Module Developer
          last edited by Oct 16, 2016, 7:31 AM

          @MxBln I did not check this.

          @Jopyth yes, it needs a sudo command inside the app.

          1 Reply Last reply Reply Quote 0
          • T Offline
            trividar
            last edited by Nov 19, 2016, 11:38 AM

            Hi guys

            I have some problems with this module. I test it with two DHT22 and I have always the same strange thing. Please look my short clip: [Youtube](video: https://youtu.be/gvuq6A13fw8). Sometimes it shows quickly the exact Temp and sometimes strange values but most of the time it shows undefined. I try to made a skipt outside of the MM and in this picture (link) you can see , at the same time my skript shows the right value but in MM its undefined.
            Can someone test this module or help me to find the fault? THX a lot for any help!

            1 Reply Last reply Reply Quote 0
            • B Offline
              Bangee Module Developer
              last edited by Nov 20, 2016, 9:11 AM

              What’s the result when you try this command directli in your terminal:

              go to cd MagicMirror/modules/MMM-DHT22/

              sudo ./dht_var 2
              

              Replace 2 with your sensor Pin

              I’ve tested this on two different Pi’s

              1 Reply Last reply Reply Quote 0
              • T Offline
                trividar
                last edited by Nov 20, 2016, 10:46 AM

                @Bangee ok, now I’m confused ;o)
                Bild Text

                The first 5 lines I tried during my MM was working but nothing happend, i had to wait 2 minutes and it shows just a new comment line. After i stopped my MM it was working like a charm (last two lines). What I’m doing wrong?..

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Bangee Module Developer
                  last edited by Nov 21, 2016, 7:59 AM

                  I don’t now atm :-)

                  it looks like something is blocking the dht_var script when your MM is running

                  Do you have error in your MM logs?

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    trividar
                    last edited by Nov 21, 2016, 7:33 PM

                    I just checkt it and I don’t have any errors …;o(

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Bangee Module Developer
                      last edited by Nov 22, 2016, 7:29 AM

                      I’ve tried this on an other pi and it works …

                      can you uncomment line 33 in node_helper.js to check if he tries to write something in to the logs?

                      	console.log("Log: " + temp + " - " + hum);
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      • 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