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

iOS app won’t graph individual breakers #31

Closed poisa closed 2 years ago

poisa commented 2 years ago

Currently the graph only shows if I select “Home”, which in turn selects all the breakers. If I select any other breakers individually or with a multiple selection, the graph doesn’t even render. The only exception is if I select the very first breaker, which renders what looks like the cumulative graph (so this looks like a bug, as well).

poisa commented 2 years ago

I have an update which may help narrow down the issue here.

I've left the system gathering data overnight so that I have another "day" available on the app. If I look at July 5th (yesterday), the app behaves exactly as I've described in the message above. However, if i look at July 6th (today), the app behaves as I expect it; each breaker can be graphed both individually and as a group.

Hope this sheds some light onto this bug.

MarkBryanMilligan commented 2 years ago

By the looks of it, your hub only ever posted data for that first breaker yesterday. I can really only guess why that would be, but maybe the hub was started when a port mapping only existed for that first breaker, and then after the config was changed and the hub restarted, it started posting data for the rest of the ports.

Regardless, it looks like the app is correctly displaying the data that was sent to the server so I don't think there's a bug here.

As a side-note, after taking a glance at your data, I would recommend double checking all of the CT connections on the hub. Some of the data coming in looks suspicious, like maybe the headphone jack isn't pushed all the way in and it's just recording noise instead of an actual signal.

poisa commented 2 years ago

and then after the config was changed and the hub restarted

Sound like this could be a possibility. I started the system with only a couple of CTs on just to make sure everything was working before I attempted to install the 40 CTs. However, I ran into a snag where I had to remove the hubs and add them again because the app got into a loop and would not let me out of it until I did that. Removing and adding them back on may have cause this issue. But what you say makes sense, so this is more likely something wrong with my initial setup rather than a bug with the app.

like maybe the headphone jack isn't pushed all the way in

You are absolutely right! Three of the jacks hadn't "clicked" in and I hadn't realized. I noticed something was super odd with some of the CTs but was suspecting I had screwed up the soldering.

Thank you, for the super prompt response. I'm really enjoying the hubs so far :)