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

[MMM-LocalTemperature] - No display

  • Hello,
    I can not display the temperature on the screen.
    Configuration : Raspberry Pi 3, Raspbian stretch lite, MagicMirror 2 (basic modules work).
    I followed the installation procedure:

    cd ~/MagicMirror/modules
    git clone
    sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential wiringpi
    cd MMM-LocalTemperature && chmod +x DHT

    Everything went well, no error message
    I plugged into the raspberry a DHT11 as well as a DHT22 (which work well on arduino), power 5v, grnd and output on the pin 22

    I added in the config.js:

                module: "MMM-LocalTemperature",
                position: "top_center", // Only add a position if you want this module to display the data
                header: "Room Temperature",
                config: {
                    sensorPin: 22, // For GPIO 22
                    units: "metric",
    		temperatureText: "Température: {temperature}°C",

    On the screen, only the header is displayed.
    When I add in the config showTemperature: true, I have in addition a message “Loading…” without more.
    Someone would have the kindness to give me some advice to be able to display the temperature.
    Thank you

  • @Thierry17 the loading message is the initial hard coded message from the module, and is replaced when data is loaded…

    so, this means data was not loaded

    open the developers window.
    using keyboard ctrl-shift-i

    then select the tab at the top labeled ‘console’
    and scroll up to fine any errors, usually in red text.

  • Thank you for your return.
    I followed your advice and here is the error message that appears.
    Unfortunately my knowledge is too limited to know how to correct the problem.
    I configured MagicMirror en fr and online 424 of the MMM-LocalTemperature.js module it is indicated in: “translations / en.json”
    By changing en instead of in that fear to solve the problem?
    thank you in advance

  • @Thierry17 can u show the error message(s)? we can help

  • Ouups I forgot "the error message:

    MMM-LocalTemperature: Sensor read Error, trying again in 10 seconds.
    {"Killed":false,"code":1,"signal":null,"cmd":"sudo modules/MMM-LocalTemperature/DHT 3 -m j -a 3","stderr":Unable to read sensor data after 3 attemps.\n}

  • @Thierry17 said in [MMM-LocalTemperature] - No display:

    Unable to read sensor data after 3 attemps

    not a language problem…

    can’t read the sensor…

    maybe u need to set the config pinScheme? (:“WPI”) ??
    maybe a wiring problem?
    hover over the bcm number (22) to get the wiringPi number (3)

  • Thank you very much for the info … now it works !!!
    For info from the link I selected BCM22 (pin 15) and config.js I put

    sensorPin: 15,
    pinScheme: "BOARD",

    The problem is that the temperature is random. It shows 23 ° C then 17 ° C then 23°C while with an arduino next door it displays 23 ° C … surely a problem of DHT11 …
    But the problem is well settled, thank you again

Log in to reply