Read the statement by Michael Teeuw here.
MMM-DHT22 Humidity and Temperature Module
-
@DocVooDoo Weird… did you follow all the instructions? ie, install bcm2835, npm install, etc?
-
@ryck Yes of course.
-
@DocVooDoo No idea then… Can you paste here the error you get?
-
@ryck only this
then nothing on the log in node serveronly screen -
@DocVooDoo well, no idea then… Have you tried to run the normal version (instead of the serveronly)?
-
@ryck yes, the same problem…
-
@ryck is it possible that the module root rights needs but does not get?
with another module comes the same error. root privileges are needed there
-
@DocVooDoo I guess that depends on how you installed magicmirror… did you use sudo?
-
@ryck no, without sudo. only with the command
bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)” -
Some modules or dependencies require access to the GPIO
The DHT sensor module I wrote needs this as well.
In terminal please try this
sudo adduser -g $USER gpio
I can’t remember if you need to reboot afterwards, but it won’t hurt. Then try again accessing the sensor