@wishmaster270 sorry for my stupid question, I use Gpio pin 17, do I have to use that number in line 6 of your test script?
Peter
Read the statement by Michael Teeuw here.
Posts
-
RE: PIR problem
-
RE: PIR problem
@wishmaster270 said in PIR problem:
@Peter
There can be a lot of reasons why the PIR modules are not working anymore.
What module did you use in the previous setup?
Did you run “npm install” in the module again? Or did you only copy the directory to the new setup?
Are there any errors during the installation of the module?You can use my test script to check if the sensor it self triggers an event.
Next step would be to test if the command which controls the screen. Most modules use
vcgencmd
If you run the following command to display should be shut off and 20 seconds later it should be shut on again.
Best way is to run the command via ssh shell./usr/bin/vcgencmd display_power 0; echo "Display should now be off"; sleep 20; /usr/bin/vcgencmd display_power 1; echo "And now it should be on again"
Thanks for your answer.
I used MMM-Pir_Sensor in my previous setup.
I made a complete new install, so I did not copy the directory to the new setup.
I will try your commands in the next days, will keep you informed.
Peter -
PIR problem
Hi smart people,
My MM has been running without major problems for 5 years.
Lately I experienced some problems, so decided to make a fresh install: Bullseye, MM 2.22 on a Pi 3.
After a lot of work (I am not really good at this, mostly copy-paste) the MM is running.Just 2 problems: major problem: I cannot get de PIR sensor to work anymore (worked perfectly for 5 year).
I tried MMM-Pir (nothing), and MMM-Pir-Sensor-Light (I can see it countdown from 15 minutes, but after 15 minutes the counter starts allover), so it does not turn off the screen.Smaller problem: the default Calendar module disappears after some time and gets back after some more time, strange behaviour.
Can somebody give me an answer (maybe two …)?
Thanks in advance!Peter
-
RE: Pir sensor
@MyMirror unfortunately it does not work here.
Pi3, Bullseye, MM2.22: PIR-Sensor does not work at all, PIR-Sensor-Light counts down from 15 minutes, but starts again without turning off the screen.
No idea what to do.
My MM has been working flawlessly for 5 years, but after the new fresh install with 2.22 I am having this problem.
Can anybody help?
Peter -
RE: Mirror broken after v2.22.0 upgrade
@ecirpnaes thanks, will try it tomorrow.
Peter -
RE: Mirror broken after v2.22.0 upgrade
I think it is a problem with V2.22.0
Before updating to this version everything worked fine.
I made a fresh OS and MM install a few weeks ago.
It was running fine until updating to 2.22.0
I hope somebody finds a solution for the screen rotation.
Peter -
RE: Mirror broken after v2.22.0 upgrade
@sdetweil did that.
Custom CSS did not do the job!
The search goes on.
Peter -
RE: Mirror broken after v2.22.0 upgrade
@sdetweil preferences gives the same problem: screens turns back to normal after restarting MM.
I am trying custom CSS now (saw it somewhere).
Keep you informed.
Peter -
RE: Mirror broken after v2.22.0 upgrade
@ecirpnaes said in Mirror broken after v2.22.0 upgrade:
@sdetweil
My problem is resolved. I upgraded to bullseye and reinstalled the mirror. I used your alternative install script vs cloning manually. It worked flawlessly setting up the mirror and the pm2 autostart. So many thanks for that.I think I spent more time getting the mirror to rotate properly than anything else. File locations have changed for bullseye vs some of the older versions so it took a little hunting around to get things configured.
But all good now. Thanks again!Here everything works fine now except rotation of the screen …
Somebody have an idea?
I tried display_rotate=1 in config.txt; it looks good but as soon as MM starts the screen rotates back to the left.
Peter -
RE: Mirror broken after v2.22.0 upgrade
@sdetweil said in Mirror broken after v2.22.0 upgrade:
@ecirpnaes ok, do this
cd ~/MagicMirror rm -rf node_modules npm install --omit=dev --no-audit --no-fund
i just did this on my pi4 after upgrading from 2.21
Great!
Solved my problem too!
Thanks.
Peter