instanttim / MonitorMate

A monitoring system for the Outback Power MATE3. It processes the data stream, reformats it for logging, charting, and display on a web server.
GNU General Public License v2.0
8 stars 7 forks source link

Sometimes missing "extra data" causing zero values. #32

Closed instanttim closed 7 years ago

instanttim commented 9 years ago

We've been seeing more of these lately, it's because the "extra data" isn't all present in every single UDP packet, but rather it cycles through each piece of data and you need a particular number of packets before you have the complete picture. I don't know why it seems to be more of an issue now than it used to be.

blip

instanttim commented 9 years ago

More thoughts on this: I think that as long as the interval is greater than 14 seconds it should always have gotten all the data, but there's no check that prohibits the data from being sent incomplete. Plus, I think the VERY first output of data happens immediately, not waiting for the interval; so that one always has 13 of 14 fields empty. JSON allows for a 'null' value but the python just is sending zeros.

instanttim commented 9 years ago

PS: I think I really don't like python. Every time i look at the python scripts i get sleepy and unmotivated.

instanttim commented 7 years ago

The new php script collects all the extra data before sending the data to the server. If it doesn't get all the parts, it won't send it at all. So this means we're actually getting zero values sometimes from the Mate3. Not my bug.

instanttim commented 7 years ago

Closing, as for now I think there's absolutely nothing I can do. It seems like this happens infrequently and most commonly when the generator is turned on. The FXs change from inverting to charging and misreport the information.