User Manual

2/12/2018 PiJuice/Software at master · PiSupply/PiJuice · GitHub
https://github.com/PiSupply/PiJuice/tree/master/Software 6/18
This is the user scripts menu tab as we mentioned in the above screenshot description where you can add paths to custom
scripts that you can trigger on events.
User scripts can be assigned to user functions called by system task when configured event arise. This should be non-
blocking callback function that implements customized system functions or event logging.
User functions are 4 digit binary coded and have 15 combinations, code 0 is USER_EVENT meant that it will not be processed
by system task, but left to user and python API to manage it. We thought that it should be a rare case that all 15
combinations would be needed on the GUI so we only provided 8. However if someone needs more scripts they can be
manually added by editing config json file: /var/lib/pijuice/pijuice_config.JSON as explained in theJSON file Section
PiJuice Configuration
PiJuice HAT General Config Menu