MarkBryanMilligan / LanternPowerMonitor

The Lantern Power Monitor is a Raspberry Pi service, Java Web Service, and Android application that allow you to monitor every electrical breaker in your house, regardless of how many panels or breakers you have.
GNU General Public License v3.0
82 stars 26 forks source link

[Android APP] - Add a 'shutdown' button #14

Closed jeremyparks closed 3 years ago

jeremyparks commented 3 years ago

I noticed when moving my pi there was no button to shut down. It is better to shut down than just pull the plug to avoid data corruption.

MarkBryanMilligan commented 3 years ago

Just to clarify, you're saying add this as an action button on the hub page, so the phone can instruct the hub to shut down via bluetooth? That shouldn't be too hard to add, I just want to make sure I have the workflow right. I was thinking about maybe allowing the hubs to be pull commands from the service as it posts its data. It'd be a little faster and less clunky than bluetooth, but I haven't built the framework for it yet.

jeremyparks commented 3 years ago

Yeah, got the idea from Octoprint. You can shutdown the pi from the interface. Since the pi runs as headless it is nice to have the option to shutdown (poweroff).

It would be similar to reboot that you already have.

On Fri, Mar 5, 2021, 5:27 PM MarkBryanMilligan notifications@github.com wrote:

Just to clarify, you're saying add this as an action button on the hub page, so the phone can instruct the hub to shut down via bluetooth? That shouldn't be too hard to add, I just want to make sure I have the workflow right. I was thinking about maybe allowing the hubs to be pull commands from the service as it posts its data. It'd be a little faster and less clunky than bluetooth, but I haven't built the framework for it yet.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarkBryanMilligan/LanternPowerMonitor/issues/14#issuecomment-791810477, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHVYANG3EZPNOZAEBG726TTCFZFRANCNFSM4YV42W6Q .

MarkBryanMilligan commented 3 years ago

This is done. Android app is released, hub software needs to be updated to 1.0.2 for it to work. Commit