MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    Utilities
    11
    34
    22811
    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.
    • psk
      psk last edited by

      Temperature and Humidity monitoring Module for MagicMirror2 that works for DHT11, DHT22 and AM2302 sensors.
      Dependancy : rpi-dht-sensor
      For some reason, the module requires elevated permissions to run.(sudo npm start).

      It would be great if someone could help in this regard.

      Hope it comes of use to somebody else.

      Cheers.

      P.S.K

      1 Reply Last reply Reply Quote 0
      • paviro
        paviro Admin last edited by paviro

        Please also share a link to your module and some screenshots!

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        1 Reply Last reply Reply Quote 0
        • psk
          psk last edited by

          oops!! I forgot to post the link. My bad :|

          The module can be found here.

          P.S.K

          1 Reply Last reply Reply Quote 0
          • cowboysdude
            cowboysdude Module Developer last edited by

            What is the brand and perhaps part number you’re using for this? Wiring?

            1 Reply Last reply Reply Quote 0
            • Bangee
              Bangee Module Developer last edited by

              @psk Do you need to run magicmirror as root?

              I try to find a solution to do the same as pi

              1 Reply Last reply Reply Quote 0
              • J
                Jopyth Moderator last edited by

                @Bangee As far as I know, the normal pi user has sudo rights already. I use a module to shutdown the mirror which needs sudo rights, but works fine with exec from a normal node_helper.

                Helpful sticky: How to troubleshoot

                1 Reply Last reply Reply Quote 0
                • Bangee
                  Bangee Module Developer last edited by

                  @Jopyth yes, he has, but he’s going to start the MagicMirror with sudo npm start

                  for security reasons I try to run everything without sudo commands.

                  1 Reply Last reply Reply Quote 0
                  • psk
                    psk last edited by

                    @cowboysdude DHT11 - This is the sensor that I am using.

                    It has three pins -
                    +ve - Connected to 5v
                    -ve - Ground
                    Data - Connected to pin 2

                    0_1475147721302_Screenshot_20160929-130338.png

                    @Bangee Now, I am running as sudo npm start. Without sudo, it will throw an exception that says it cannot open dev/mem

                    0_1475147793966_permission.png

                    This is the module screenshot.0_1475147819902_temp.png

                    P.S.K

                    1 Reply Last reply Reply Quote 1
                    • Bangee
                      Bangee Module Developer last edited by

                      0_1475148058296_DHT22.JPG

                      I’m using node-dht-sensor

                      As user pi I don’t have an error but after starting MagicMirror thers a crash.

                      @psk you should cool down your room 🙂

                      1 Reply Last reply Reply Quote 1
                      • cowboysdude
                        cowboysdude Module Developer last edited by

                        I really do like this! Great job!

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy