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
80 stars 26 forks source link

Get the Android code posted to GitHub. #7

Open MarkBryanMilligan opened 3 years ago

MarkBryanMilligan commented 3 years ago

I need to externalize some secrets from the app before I post it to GitHub. There's also a whole other half of the app for controlling z-wave devices and reading usb thermometers that really only works for my house right now. That other half of the app is just turned off unless you set the host to the server at my house here. I need to get that cleaned up before I post the code so people don't start turning my lights on and off and hotboxing my family in the middle of the night.

phinze commented 2 years ago

Hi @MarkBryanMilligan! My power monitor is arrived and physically installed, but it was only at that point that I realized that I don't have any Android devices handy outside of an old TV remote (Vizio XR6M10). Unfortunately this device is stuck on Marshmallow which won't install the app from the Play store. I was wondering if that minimum Android version constraint was something that could be easily tweaked, which brought me here. I'd be happy to take a look at this myself if you can push the code.

Ultimately though I'm going to be more interested in the iOS platform, so I'd love to hear any update on where things are at on that front. Regardless, I'm excited to chip in a bit and get things cooking w/ my monitor! :)

MarkBryanMilligan commented 2 years ago

The minimum is Android 7.1 because Android made a huge non-passive change to the way the bluetooth platform works on that version. Making bluetooth work on an older version of Android would be a ton of work and I'd rather spend that time on iOS.

If you feel like a project, you could root your Vizio tablet and install LineageOS on it. I did that with my 10 year old Nexus 7 tablet and it works great with the app now. A quick google search for "Vizio XR6M10 LineageOS" can probably get you started (again, at your own risk, legality and safety not guaranteed :) ) Edit: Scratch that, I looked a little more and that device is not supported in LineageOS, you can root, but there's no ROM available for it, nm

I'm back to working on the iOS app. I have the data rendering in the graphs ok, but I need to do all of the configuration pages and the bluetooth stuff. It's at least a couple months of work. I'm developing on a 2012 Mac Mini right now and it's crazy slow. I finished shipping out all of the Kickstarter rewards this past week (except for those who haven't responded to my survey), so I need to double check how much money is left from the Kickstarter. If I have enough I want to get a new M1 Mac Mini to speed up the iOS development.