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 installingonoffwith 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
localhostto0.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 rebuildcommand insideMMM-Pirfolder will help -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login