I’ve assembled the PiJuice HAT and installed openhabian & pijuice_cli. I’ve created a py script to create a log file (time stamps of when power goes out, shut down, etc). But I can’t get it to execute as ‘USER FUNC1’. I can run the script as user ‘openhabian’. I’ve tried making user ‘pijuice’ owner of the logfile and python file, but nothing seems to happen.
Any tips on how to get this to work?
- Hardware: pi3B+ & PiJuice
- OS: openhabian-pi-raspios32-v1.6.2.img.xz
- Java Runtime Environment: openjdk 11.0.9 2020-10-20 LTS
- openHAB version: 3.0.0
As a wider question, how do you setup your PiJuice to back up your system (in case you’ve thought of something I’ve overlooked)?