User Manual
2/12/2018 PiJuice/Software at master · PiSupply/PiJuice · GitHub
https://github.com/PiSupply/PiJuice/tree/master/Software 13/18
},
"low_charge": {
"function": "NO_FUNC",
"enabled": true
},
"button_power_off": {
"function": "USER_FUNC1",
"enabled": true
},
"forced_power_off": {
"function": "USER_FUNC2",
"enabled": true
},
"no_power": {
"function": "SYS_FUNC_HALT_POW_OFF",
"enabled": true
},
"forced_sys_power_off": {
"function": "USER_FUNC3",
"enabled": true
},
"watchdog_reset": {
"function": "USER_EVENT",
"enabled": true
}
},
"user_functions": {
"USER_FUNC8": "",
"USER_FUNC1": "/home/pi/user-script.sh",
"USER_FUNC2": "",
"USER_FUNC3": "",
"USER_FUNC4": "",
"USER_FUNC5": "",
"USER_FUNC6": "",
"USER_FUNC7": ""
},
"system_task": {
"watchdog": {
"enabled": true,
"period": "60"
},
"min_bat_voltage": {
"threshold": "1",
"enabled": true
},
"min_charge": {
"threshold": "1",
"enabled": true
},
"enabled": true,
"wakeup_on_charge": {
"enabled": true,
"trigger_level": "1"
}
}
}
For the light version of PiJuice changes can be done directly on the JSON file. Here is a list of accepted values for the various
fields above.
system_events:
low_battery_voltage low_charge no_power:
enabled: true, false
function:
NO_FUNC