MMM-LocalTemperature
MMM-LocalTemperature copied to clipboard
Unable to install WiringPi
Please see the article here -- http://wiringpi.com/news/
Any chance MMM-LocalTemperature will be updated to work around this issue?
It's been deprecated for quite some time (since 2019).
No plans at this time to replace it, since it is still working and has been patched for the Pi4.
Eventually I'll have to find a replacement if it no longer works, but I'm not in a position to make a replacement, so I'll have to see what the community favours at that time.
I can't install the module because I can't get wiringpi.
Ah, I c, well that is a different issue. Why can't you get wiring pi? What methods have you tried? Have you followed the instructions in the readme to install it via apt? Has it been removed from apt or something, Maybe in Raspberry Pi OS 11?
Also, wirngpi can be obtained from git and built on the system. Does that work?
https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
I followed the directions with the module and didn't get any errors. I haven't tried other ways to install it but will try what you suggest another time. Thank you for your help.
Hello stlbud, I just installed the module MMM-LocalTemperature and installed wiringpi in the following way:
apt-cache policy wiringpi (check if wiringpi is installed on your Pi) Download wiringpi (if it’s not installed on your Pi)
cd /tmp
wget https://unicorn.drogon.net/wiringpi-2.46-1.deb
sudo dpkg -i wiringpi-2.46-1.deb
The wiringpi version depends on the model of your Raspberry Pi. I have a Raspberry Pi 3.
And everything works fine (;-)
Curious if anyone can help, not sure what I'm doing wrong. Does this work on Raspberry Pi 2 B+, Raspbian 11?
I cloned repo into modules folder. I was able to install wiringpi with the commands above from SwissChemist. Inside of the MMM-LocalTemperature folder I can run the DHT program and get output from my sensor. I've set my MM config to show temperature as well as send to weather, neither show up. Here is my config.. Thanks in advanced for the help!
{
module: "MMM-LocalTemperature",
position: "top_right", // Only add a position if you want this module to display the data
config: {
sensorPin: 7, // same 7 as when testing via the DHT program
useSudo: true, // Tried both on and off no difference
sendTemperature: true,
sendHumidity: true,
showTemperature: true,
showHumidity: true
}
},
Hello @acer8888,
in order to define the pins, there are multiple schemes which have a different numbering! So make sure that you are using the right scheme for corresponding pin number.
The following code works for me, but you will need to correct the 'sensorPin' and 'pinScheme' according to your setup.
{
module: "MMM-LocalTemperature",
position: "top_right",
header: "Temperature & Humidity",
config: {
sensorPin: 2 , // For GPIO 27 = pin 13 on board or WPI 2
pinScheme: "WPI", // ("BOARD", "WPI", "BCMv2", "BCMv1")
//units: "metric", // "metric" = Celsius, "imperial" = Fahrenheit, "default" = Kelvin
sendTemperature: true,
sendHumidity: true,
showTemperature: true,
showHumidity: true,
updateInterval: 5.0, // Minutes; min: 0.5,
retryDelay: 10// min. 10
}
},
In my case I am using physical pin 13 (on board), which corresponds to GPIO 27 or WPI 2. Easiest for you might be to use the 'pinScheme' = "BOARD", as this reflects the physical pin numbering on the GPIO header. Please have a look at the description of the module in Github: https://github.com/glitch452/MMM-LocalTemperature
Hi @SwissChemist
thanks for the help, I've made the recommended changes to my config, nothing showing as of yet. What is strange to me, is the header that I've set isn't even showing. Is that normal? For instance do you see the header all the time, even if no sensor data is shown? Also what OS are you running?
Thanks for the help!
Hi @acer8888, yes, you are totally right. Normally the header is shown directly on startup, even if the sensor is not sending data. In your case I'd try to re-install the whole module. First I would delete the whole folder of the module:
rm -rf whatever_the_old_folder_name_is
I have done my installation recently according to the following procedure:
To install the module, use your terminal to:
- Navigate to your MagicMirror's modules folder. If you are using the default installation directory, use the command: cd ~/MagicMirror/modules
- Copy the module to your computer by executing the following command: git clone https://github.com/glitch452/MMgpM-LocalTemperature.git
- Check&install wiringpi: apt-cache policy wiringpi (check if wiringpi is installed on your Pi) Download wiringpi (if it’s not installed on your Pi): cd /tmp wget https://unicorn.drogon.net/wiringpi-2.46-1.deb sudo dpkg -i wiringpi-2.46-1.deb cd ~/MagicMirror/modules
- Install the WiringPi library by executing the following command: sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y install build-essential wiringpi
- Make sure the DHT program that reads the sensor data is executable by executing the following command: cd MagicMirror/modules cd MMM-LocalTemperature && chmod +x DHT
Wish you good luck!
By the way: I am using a Raspberry Pi 3 B and Raspberry Pi OS Full (32-bit) (A port of Debian Bullseye with desktop environment and recommended applications).
Hey @SwissChemist
I actually found the issue, learned how to use the developer tools, then found the error "config was already declared" and the related issue found below. Once I removed the extra "config" the module showed correctly and I got my temperature reading!
Thank you again for the help!!
https://github.com/glitch452/MMM-LocalTemperature/issues/29
Thx to wiringpi, this module cannot be used on 64bit versions of Raspbian.
This module, on the other hand, works flawlessly on 64bit OS versions: https://github.com/ryck/MMM-DHT-Sensor