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.

    I am not able to get data for MMM-LocalTemperature from glitch452 with DHT22

    Scheduled Pinned Locked Moved Troubleshooting
    1 Posts 1 Posters 264 Views 1 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.
    • P Offline
      PhilMirror
      last edited by PhilMirror

      Hi there,

      I have installed MMM-LocalTemperature from glitch452 with DHT22, only the title is displayed.

      Conditions:
      RPI 3 B+
      Raspbian GNU/Linux 10 (buster)
      MM² version : “version”: “2.13.0”,
      Module version : 1.3.0 the upto date on November 2020

      config.js:

      {
      module: “MMM-LocalTemperature”,
      position: “top_right”, // Only add a position if you want this module to display the data
      header: “Salle de Bain”,
      config: {

      		pinScheme:"BCMv2",
      		sensorPin: 6, // 22, For GPIO 22
      		units: "metric",
      		iconView: true,
      		initialLoadDelay: 3,
      		updateInterval: 0.5,
      	}
      },
      

      DHT22 physical connctions:

      The probe is loaded with a 10KOhm
      supplied with the 5V and Grnd
      Data connected to pin 31 of RPI Board

      Note that the probe DHT22 is properly working.
      I can test it with .js script and when MM² is not launched, the answer to request are instantanelty displayed :

      pi@raspberrypi:~/node_modules/node-dht-sensor $ node dht22-test.js
      temp: 20.700000762939453°C, humidity: 59.400001525878906%
      pi@raspberrypi:~/node_modules/node-dht-sensor $ node dht22-test.js
      temp: 20.700000762939453°C, humidity: 59.900001525878906%
      pi@raspberrypi:~/node_modules/node-dht-sensor $ node dht22-test.js
      temp: 20.700000762939453°C, humidity: 59.900001525878906%
      pi@raspberrypi:~/node_modules/node-dht-sensor $ node dht22-test.js
      temp: 20.700000762939453°C, humidity: 59.900001525878906%
      pi@raspberrypi:~/node_modules/node-dht-sensor $

      Here is the js test file (with BCM 6 port cofigured = pin 31 of the RPI bord) :

      var sensor = require(“node-dht-sensor”);

      sensor.read(22, 6, function(err, temperature, humidity) {
      if (!err) {
      console.log(temp: ${temperature}°C, humidity: ${humidity}%);
      }
      });


      Does anyone can help me ?

      Others:

      I tried the MMM-LocalTemperature by changing type of libraries ( “WPI”, “BOARD” but no effect
      I also tried previously, with other module like MMM-DHT-Sensor on pin 7 of the borad with correct configuration. That one was able to display on MM² screen the T° and Hum, but with random getting data.

      It seems, the DHT22 can be requested with js script within the 2sec min (specification of the probe), but not properly working when a MM Module requesting data are running :/

      A big thanks for kind help

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • 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