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".
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!