Thank you for so much good feedback. There have been people asking about a GitHub repository for the code to do the safe shutdown. https://github.com/JuiceBoxZero/LowBatteryShutdown There you go. Full instructions are in README.md for how to get the software. Of course, you may modify it, based on your needs/skill level, but the posted instructions should get it running on your …