• 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-DHT-Sensor - Get temperature & humidity values from a DHT sensor

Scheduled Pinned Locked Moved Utilities
22 Posts 9 Posters 14.6k Views 9 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.
  • O Offline
    Ogret
    last edited by Oct 18, 2017, 4:18 PM

    @ryck

    Thanks for the great works.

    It’s possible to change the icons color of the temp and humidity?

    Thanks for help.

    BR

    O 1 Reply Last reply Oct 19, 2017, 9:28 AM Reply Quote 0
    • O Offline
      Ogret @Ogret
      last edited by Oct 19, 2017, 9:28 AM

      @ryck

      It’s done.

      R 1 Reply Last reply Oct 19, 2017, 9:33 AM Reply Quote 0
      • R Offline
        ryck Module Developer @Ogret
        last edited by Oct 19, 2017, 9:33 AM

        @Ogret Sorry, I don’t have access to the mirror here, so I was waiting to get home today to reply to you. It’s just adding some code in the custom.css file with the right class, but seems like you already found how to do it!

        Cheers,

        1 Reply Last reply Reply Quote 0
        • P Offline
          PaulB
          last edited by Jan 28, 2018, 4:53 PM

          Dear @ryck,

          I have installed your module and it works up to the point, where it shows me that “no data is returned”.

          I guess that my wiring is wrong.
          What do you think?

          R 1 Reply Last reply Jan 28, 2018, 11:32 PM Reply Quote 0
          • R Offline
            ryck Module Developer @PaulB
            last edited by Jan 28, 2018, 11:32 PM

            @PaulB Hi Paul

            That happens sometime, it’s related to the way the raspberry pulls data from the sensor, but it should be OK on the next try. Just in case, put a quick updateInterval (like 1 * 60 *1000) and see what happens…

            Also, you can try to get a read directly from the sensor, bypassing the MagicMirror. Just clone this (https://github.com/adafruit/Adafruit_Python_DHT) somewhere and edit and execute this (https://github.com/adafruit/Adafruit_Python_DHT/blob/master/examples/simpletest.py), ie, `python simpletest.py

            Good luck!

            1 Reply Last reply Reply Quote 0
            • P Offline
              PaulB
              last edited by Feb 1, 2018, 6:39 PM

              @ryck
              Thank you for your help! :)
              Finally it works now.

              By the way… the module looks pretty cool ;-)

              R 1 Reply Last reply Feb 2, 2018, 5:30 PM Reply Quote 0
              • R Offline
                ryck Module Developer @PaulB
                last edited by Feb 2, 2018, 5:30 PM

                @PaulB Thank you!

                1 Reply Last reply Reply Quote 0
                • W Offline
                  weeee99
                  last edited by Feb 3, 2018, 5:32 AM

                  ive managed to install the module however the reading show 0 degress and 0% humidity im using a DHT22 btw is this a hardware problem or what? the sensor’s pin 1(Vcc) and pin 4(GND) is connected to a external 3.3v powersouce meaning the pin 2(data) together with a 10k ohms resistor connected in pin 1 and 2 is the only pin connected to the PIs GPIO0_1517635952159_Screenshot (282).png

                  R 1 Reply Last reply Feb 3, 2018, 1:12 PM Reply Quote 0
                  • P Offline
                    PaulB
                    last edited by Feb 3, 2018, 12:48 PM

                    @weee99,

                    It looks like the module is working, so it has to be a problem with your pins.
                    I would recommend to try it this way:

                    0_1517662084599_n5px8e6humFHzOR4kvYF.png

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      ryck Module Developer @weeee99
                      last edited by Feb 3, 2018, 1:12 PM

                      @weeee99 Seems like the module is working… Have you tried to access the sensor directly? Look my previous post in this thread to know how to do it. Make sure that the pin in the correct one (GPIO and physical pins are not the same, so it can be a little bit confusing). Finally, the one I got (https://www.amazon.co.uk/gp/product/B01N6PB489/ref=oh_aui_search_detailpage?ie=UTF8&psc=1) is plug directly to the Pi, no breadboard / resistance required…

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