Read the statement by Michael Teeuw here.
MMM-Pir Issue
-
Hi all,
I have issues with the MMM-Pir module. I recently finished my mirror and put it onto the wall which all worked fine but it randomly shutdown. I have no idea why that happend but I found out it happend when I manage the start of Magic Mirror with pm2, but not when manually starting with “npm run” in a screen or with nohup, so I decided to move away from pm2 and created a systemd unit instad. So far, so good.
As I didn’t need pm2 I removed it from the raspi. Starting the Mirror with the Unit work fine but on Startup I see an Error Message from the PIR module that 1 needed Library is not loaded. The popup on top on starting up shows it is
onoff
. I tried rebuilding MMM-Pir and also manually installingonoff
with the global flag but no with no avail.So the main two changes between WAI and not working at all are
- Uninstall of pm2
- changing the address in the config from
localhost
to0.0.0.0
Config for Pir Module:
{ module: 'MMM-Pir', position: 'top_right', config: { debug: false, delay: 2 * 60 * 1000, turnOffDisplay: true, mode: 9, ecoMode: true, displayCounter: true, displayBar: true, displayStyle: "Text", displayLastPresence: tru lastPresenceTimeFormat: mode6_gpio: 20, mode6_clearGpioValue: tr pir_gpio: 18, pir_reverseValue: false, xrandrForceRotation: "no //wrandrForceRotation: " } },
Can anyone help how I can get the Pir Module woring again? Happy to provide logs and config if needed. Thanks!
-
@Feedy88 said in MMM-Pir Issue:
localhost to 0.0.0.0
localhost is normally the same as 127.0.0.1 for most computers. Why are you wanting it to be 0.0.0.0?
-
Hi,
npm run rebuild
command insideMMM-Pir
folder will help -
This post is deleted!