I have an installation where mains power will only be available during the weekends. I want to leave a Raspberry Pi installed somewhere semi-permanently that will gracefully shut the machine off after a drop in mains power after 1 minute and have the controller board for the battery backup go into some deep sleep, and then turn the machine back on immediately after mains power is restored.
I do not want to use a conventional full on UPS because the thing beeps and will be happy to drain the battery through the power outage.
Thanks!