bugsounet / MMM-Pir

Manage your screen with a pir sensor
MIT License
28 stars 7 forks source link

Can not get monitor to come back on #22

Closed Buzzlig closed 9 months ago

Buzzlig commented 9 months ago

I got the module install okay but can not get the screen to come back on. I am new to this stuff and have never setup a PIR on a PI 4 , maybe I don't have the PIR hooked up right to the PI right. I have search the internet on how to hook up the PIR directly to a PI 4 but found nothing. Below is what I have in the config.js file. I am running 64 bit desktop OS { module: 'MMM-Pir', position: 'top_left', config: { debug: false, delay: 2 60 1000, turnOffDisplay: true, mode: 10, ecoMode: true, displayCounter: true, displayBar: true, displayStyle: "Text", displayLastPresence: true, lastPresenceTimeFormat: "LL H:mm", mode6_gpio: 20, mode6_clearGpioValue: true, pir_gpio: 21, pir_reverseValue: false } },

sdetweil commented 9 months ago

use a project in python to verify that the PIR os working correctly outside MM.

see https://projects.raspberrypi.org/en/projects/physical-computing/11

Buzzlig commented 9 months ago

Thank you I will try that.

Buzzlig commented 9 months ago

sdetweil, the PIR was bad ( good call ) I have just got a new PIR and tested it out on python and it works, but I still have the same issue where the screen goes blank but will not come back on. I have tried different modes ( 1 though 10 ) and none of them work. Then I tested the new PIR out on Python and it still works. What else could I do that might fix this problem? Thank you for your time.

sdetweil commented 9 months ago

@Buzzlig I cannot help with the module operations..

mode6_gpio: 20,
mode6_clearGpioValue: true,
pir_gpio: 21,
pir_reverseValue: false

do those match the gpio values used by python?

Buzzlig commented 9 months ago

I do not know where to find the gpio values by python.

Buzzlig commented 9 months ago

sdetweil, I figure out what you was asking me and I corrected Gpio numbers and it works. Thank you again so much for your time. I hope the rest of your day goes great!