Read the statement by Michael Teeuw here.
PIR-Sensor - put your mirror to sleep if not used
-
There was a type on my message… sorry. This is what I have done:
{ module: 'MMM-PIR-Sensor’, config: { sensorPIN: ‘2’ } }
Note from admin: Please use Markdown on code snippets so it is easier to read!
-
@incubik have you checked your Web inspector?
-
I have Raspbian install so Im using Epiphany. Does this browser has a web inspector? if so, where? Thx
-
I got my sensor and hooked it up, same problem.
Yes, I am using node version 6.0. When I did the install that’s the version that was installed, I think the install script now installs an older version?
-
I’ve tried to use PIN 26. In my electron errorlog, there was this msg:
[Error: digitalRead: IsInt32(arguments['pin']) === false]
So I went back to PIN 22 and now my mirror starts again. :-)
EDIT:
New idea -> Try without ’ ';
{ module: 'MMM-PIR-Sensor’, config: { sensorPIN: 2 , } }
-
-
Ok, I will!
Maybe it is a hardware problem? I’ve connected the PIR-sensor this way, is this correct?
https://www.raspberrypi.org/learning/physical-computing-guide/connect-pir/ -
@incubik Looks fine, the hardware does not influence the module behavior tough, you could also run it without something connected.
-
Ok, so if it doesn’t support v6, how can @Bangee made it work? I guess I should:
- Uninstall NodeJS v6 and install v5
or - Delete the Sensor Module for now
??
- Uninstall NodeJS v6 and install v5
-
When I checked it did not work, maybe the dependencies were updated since then. If not install v5 :)