Thanks for taking a look at it.
Are you using the stock MightyHat sketch?
Yes, I'm using the stock MightyHat sketch unmodifed
I have not had outages in months and usually they are very short. With a 2000mAh battery my gateway Pi lasts for a few hours, are your outages longer than that?
Our last outage in March was only 1 hour but my Pi shut down. I have a 2000mAh battery. I just tested and it lasted 2 hours until the voltage was down to 3.5v or so before the Pi shutdown. (I'm almost positive that the backlight was turned off.)
I can't explain why the Pi shut down in 1 hour during the March outage. Maybe the backlight was on?? I'll test it again when the battery is recharged.
There's some code around this line for low battery shutoff.
It would need modification to shutdown after an outage and power back up when power comes back.
Are you saying that the code needs to shut down the 328 after an outage and power the 328 back up when power comes back on?
During my brief testing, I noticed that if the Pi is shutdown due to a low battery, I need to reboot the 328 and then push the Square Power Button to turn the Pi back on. If I don't reboot the 328, the Square Power Button does not turn on the Pi.
Assuming we could get the 328 to shut down and restart during a a low battery shutdown and power restoration, how would the Pi get restarted since the button won't be pushed? Or, did I miss the point. I looked through the code and schematic and this is a wonderfully complex beast you created.
I don't know when I would have the time to do it myself.
Thanks for pointing me in the right direction
I still can't think of any way to be notified of a power outage without a cellular modem. Once the power is out, there is no Internet connection. It is really nice to know when the power goes out in the winter and you are out of town. You get some warning that you might have a freeze problem to deal with since the furnace is out.