• 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-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

Scheduled Pinned Locked Moved Utilities
34 Posts 11 Posters 31.7k Views 10 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 Oct 17, 2016, 2:39 PM

    @jsyzthz checkt this out: https://forum.magicmirror.builders/topic/738/mmm-dht22-humidity-and-temperature-module

    1 Reply Last reply Reply Quote 0
    • P Offline
      psk @jsyzthz
      last edited by psk Oct 19, 2016, 1:12 PM Oct 19, 2016, 1:12 PM

      @jsyzthz Unfortunately neither did I have any luck executing with sudo while using ‘DISPLAY=:0’ .

      For auto start I used PM2.

      This is my mm.sh file

      cd ~/MagicMirror
      DISPLAY=:0 sudo npm start
      

      P.S : I haven’t yet tried this alternative by Bangee. But it sure looks promising in this scenario where we need the mirror to start from ssh(or Terminal) while specifying the display device.

      If i come across any workarounds, I’ll update.
      Cheers.

      P.S.K

      1 Reply Last reply Reply Quote 0
      • J Offline
        jsyzthz
        last edited by Oct 20, 2016, 4:16 PM

        @psk , when i execute your command in my pi3 from putty. will get below error.
        0_1476980028924_upload-94e2d7d2-b3a1-493a-a093-7ac8645113c3

        1 Reply Last reply Reply Quote 0
        • D Offline
          d3r
          last edited by Oct 25, 2016, 4:26 PM

          I’m going to order the dht-22 soon. I was reading about the sensor set up and most guides mention using a resistor. Do you guys have one in your set up?

          P 1 Reply Last reply Nov 8, 2016, 1:56 PM Reply Quote 0
          • P Offline
            psk @d3r
            last edited by Nov 8, 2016, 1:56 PM

            @d3r Dht 22 and 11 series doesnt require one :)

            PS: Just saw the post.Was out of town for two weeks…

            P.S.K

            Y 1 Reply Last reply Nov 8, 2016, 2:13 PM Reply Quote 0
            • Y Offline
              yawns Moderator @psk
              last edited by Nov 8, 2016, 2:13 PM

              @psk
              That depends on the sensor you buy. If you use a sensor with 4 pins you need the resistor. If you use the sensor with 3 pins mounted to a circuit board you don’t need the resistor.

              1 Reply Last reply Reply Quote 0
              • P Offline
                psk
                last edited by Nov 8, 2016, 6:59 PM

                This was my reference. Both the models are similar, though the one without the PCB(4 pin model) might require some resistance. Not sure though…Need to dig Deeper :D
                Cheers :)

                P.S.K

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  yawns Moderator
                  last edited by Nov 8, 2016, 7:09 PM

                  Right. I have the 4 pin version and this requires a resistor

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    techzeero
                    last edited by Oct 21, 2019, 8:05 AM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BKeyport Module Developer
                      last edited by Jan 2, 2020, 5:56 AM

                      Apparently, this project is dead. modules are missing all over the place, and unable to install…

                      rpi-dht-sensor not found.
                      npm install falls all over itself.

                      Just a mess.

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

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      • 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