MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

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



  • 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


Log in to reply