SW3 Will Not Run Script #1055
-
I am using PiJuice in cli mode on a Pi 3 with Bookworm.
When SW3 is pressed nothing happens. What have I overlooked? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 11 replies
-
If you look at the figure of the top of the board in the hardware section you see the order of the switches is SW1, SW3, SW2. |
Beta Was this translation helpful? Give feedback.
-
Who his the owner of /home/pi/Scripts/test.py? |
Beta Was this translation helpful? Give feedback.
-
The script is executed as part of the pijuice service (/usr/bin/pijuice_sys.py).
|
Beta Was this translation helpful? Give feedback.
-
What is the output from |
Beta Was this translation helpful? Give feedback.
-
Sorry, I meant |
Beta Was this translation helpful? Give feedback.
-
The protection of /home/pi is OK (group has read and execute access). Can you try the following: disable the pijuice service and run pijuice_sys.py manually:
Press SW3 and see if you get any error messages Then restart the service:
|
Beta Was this translation helpful? Give feedback.
-
There is an error in my instructions above. |
Beta Was this translation helpful? Give feedback.
-
Strange .. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the screenshots. |
Beta Was this translation helpful? Give feedback.
Thanks for the screenshots.
Your SW3 settings do not work.
For SINGLE_PRESS you specify USER_FUNC5 followed by a 0 parameter,
The parameter specifies a timeout in milliseconds wihin the button should be released to trigger the SINGLE_PRESS event. Try a parameter value of 500. Specifying 0 (as in your screenshot) effectively disables the SINGLE_PRESS event.
See also the Software Readme sections on button settings.