• 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-LocalTemperature doesn't work :(

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 771 Views 4 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.
  • I Offline
    Ipsopedion
    last edited by Ipsopedion Dec 10, 2020, 11:52 AM Dec 10, 2020, 11:35 AM

    Hi guys,

    I’m trying to make a magic mirror as a school project. We are using a DHT-22 sensor to get local temperature and humidity but it doesn’t work. I’ve been working on it for 4 days now and I can’t find any solution :(

    Here is my config.js and how i wired it

    130540251_1142119306191089_2675867096589592965_n.jpg

    Capture.PNG

    BTW : I have a python script on the py that reads datas from dht 22 soooo ://

    Thanks,

    Ipso

    1 Reply Last reply Reply Quote 0
    • I Offline
      Ipsopedion
      last edited by Dec 10, 2020, 6:11 PM

      Update : I’ve tried other modules (dht-22 & DHT-22) but nothing changed :/

      Python.png

      But my script still works so I was wondering if there’s a way to use it in a module ?

      I’m clearly a beginner so I somebody as any clue for me ://

      Thanks

      Ipso

      1 Reply Last reply Reply Quote 0
      • A Offline
        ankonaskiff17
        last edited by Dec 11, 2020, 12:26 AM

        Have you looked in the 3rd Party modules section? There are several DHT sensor modules in there you can use for reference, Just do text search on DHT

        1 Reply Last reply Reply Quote 0
        • J Offline
          jimus888
          last edited by Dec 11, 2020, 2:17 AM

          Hi

          I have the module working, but had to specify the pin scheme for it to work. It wouldn’t work for me without this config line.

          See below

                      {
                              module: "MMM-LocalTemperature",
                              position: "top_right",
                              header: "Inside Temperature",
                              config: {
                                      pinScheme: "WPI",
                                      sensorPin: 0,
                                      fontsize: "medium",
                                      updateInterval: 1,
                                      showTemperature: true,
                                      showHumidity: true,
                                      }
                      },
          
          I 1 Reply Last reply Dec 11, 2020, 12:35 PM Reply Quote 0
          • I Offline
            Ipsopedion @jimus888
            last edited by Dec 11, 2020, 12:35 PM

            @jimus888 Thanks for your answer, but still doesn’t work :!

            The module seems to load forever :/

            I’ve tried apt-get update && apt-get full-upgrade but nothing seems to work :/

            S 1 Reply Last reply Dec 11, 2020, 1:51 PM Reply Quote 0
            • S Offline
              sdetweil @Ipsopedion
              last edited by Dec 11, 2020, 1:51 PM

              @Ipsopedion said in MMM-LocalTemperature doesn't work :(:

              The module seems to load forever

              That means the default message was put up while the module is waiting for data… but hasn’t yet received it

              Can u should the output where u start magic mirror? Either the terminal window for npm start,
              Or if using pm2, the output of pm2 logs --lines=???, where ??? Is a number, defaults to 15

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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