Repository navigation
Adding a bash script to a plugin to manage battery power #555
RudyRipDraw
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I added the following code snippet to the end of mage_folder.py to execute a bash script
I am running a PiZero 2 with a PiSugar3 battery. The PiSugar has a RTC that can be programed to power up the PiZero from shutdown.
So the image_folder.py plugin would put up an image, then the script would program the RTC to wake up the PiZero in 30 minuets
and then shutdown the PiZero to save batterry power for the next 30 minuets.
When the RTC wakes up the PiZero, InkyPI continues on executing where it left off on the plugin playlist.
The script also sets the wake up time to the next morning after 9PM, there is no need to run it overnight.
All reactions