PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://www.pi-supply.com/product/pijuice-standard/
GNU General Public License v3.0
433 stars 102 forks source link

NO POWER EVENT Will Not Trigger Script #1085

Open lindelux opened 2 weeks ago

lindelux commented 2 weeks ago

In the command line pijuice I have the "No Power" event selected to trigger USER_FUNC2. USER_FUNC2 is set as "/home/pi/Scripts/red.py". If the power is removed from the pijuice then the D2_LED should illuminate red. If I run the script "python3 /home/pi/Scripts/red.py" the LEnanoD illuminates correctly. LED settings D2 is set to USER_LED. Permission for red.py are set to "-rwxr-xr-x 1 pi pi 1121 Jun 20 18:49 red.py". The first line in the script is "#!/usr/bin/python3".

Any ideas what I am doing wrong? Thanks!