Read the statement by Michael Teeuw here.
Independent display controller based on PIR sensor.
-
@Beh i understand this. No problem and thx for reply! :)
-
@bibi hi can anyone help me with screenshots the file path where to enter the below commands to start it at boot time
cp ./pir_sensor.service /lib/systemd/system
systemctl daemon-reload
systemctl start pir_sensor.service
-
@shashank hi! unfortunately you will not find the cmd line in the github to enable the service at boot time. As far as i have checked, the systemd should already run at boot but for strange reasons it was not the case for me. Therefore, i had to issue the command : sudo systemctl enable pir_sensor.service
good luck! -
Ok, maybe I forgot that in the readme file, or it worked straghtaway on my Pi.
I’m going to addsudo systemctl enable pir_sensor.service
to the readme file!thanks for the hint :)
-
Sounds more effective than mine. I set an infinite loop to check for motion every second and if no motion is detected for 600 seconds the display goes to sleep.