• 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.0k 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.
  • D Offline
    DocVooDoo @ryck
    last edited by Feb 13, 2018, 5:00 PM

    @ryck only this Bild Text
    then nothing on the log in node serveronly screen

    R 1 Reply Last reply Feb 13, 2018, 5:28 PM Reply Quote 0
    • R Offline
      ryck Module Developer @DocVooDoo
      last edited by Feb 13, 2018, 5:28 PM

      @DocVooDoo well, no idea then… Have you tried to run the normal version (instead of the serveronly)?

      D 2 Replies Last reply Feb 13, 2018, 5:56 PM Reply Quote 0
      • D Offline
        DocVooDoo @ryck
        last edited by Feb 13, 2018, 5:56 PM

        @ryck yes, the same problem…

        1 Reply Last reply Reply Quote 0
        • D Offline
          DocVooDoo @ryck
          last edited by Feb 14, 2018, 5:07 PM

          @ryck is it possible that the module root rights needs but does not get?

          with another module comes the same error. root privileges are needed there

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

            @DocVooDoo I guess that depends on how you installed magicmirror… did you use sudo?

            D 1 Reply Last reply Feb 14, 2018, 7:53 PM Reply Quote 0
            • D Offline
              DocVooDoo @ryck
              last edited by Feb 14, 2018, 7:53 PM

              @ryck no, without sudo. only with the command
              bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yawns Moderator
                last edited by Feb 14, 2018, 8:26 PM

                Some modules or dependencies require access to the GPIO
                The DHT sensor module I wrote needs this as well.
                In terminal please try this
                sudo adduser -g $USER gpio

                I can’t remember if you need to reboot afterwards, but it won’t hurt. Then try again accessing the sensor

                D 1 Reply Last reply Feb 14, 2018, 8:31 PM Reply Quote 0
                • D Offline
                  DocVooDoo @yawns
                  last edited by Feb 14, 2018, 8:31 PM

                  @yawns
                  Hi. Thanks for your help. The user “pi” is already a member of the group “gpio”.

                  With Adafruit works the Sensor. Whether with or without sudo…

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pinsdorf Module Developer
                    last edited by Mar 5, 2018, 12:52 AM

                    Any updates on this? I have the same problems as @DocVooDoo and others, i.e. Adafruit code works like a charm, dht_var not.

                    Difference I noticed is that dht_var uses wiringpi library and Adafruit not?! I tried a reinstall of wiringpi package without success.

                    Next, I compared the implementations of dht_var and the Adafruit driver for DHT22.

                    The essence of the Adafruit code is in file Adafruit_Python_DHT/source/Raspberry_Pi_2/pi_2_dht_read.c. It is meant for Pi2 and Pi3, implemented in C, and defines a function int pi_2_dht_read(int type, int pin, float* humidity, float* temperature). It implements the communication with the sensor using a 1-wire bus. The rest of the Adafruit package is mostly (well-done) sugar-coating for Python usage and selecting the right driver for any given platform.

                    We could simply rewrite dht_var by using this driver code. What do you think?

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