berwinter / uvr1611

UVR1611 Data Logger Pro
GNU General Public License v3.0
31 stars 22 forks source link

Negative power leads to peaks in power chart #4

Closed mrosenbaum closed 10 years ago

mrosenbaum commented 10 years ago

I sometimes have negative powers for a short amount of time. This works well with winsol, but the data logger trnaslates them into very large numbers, rendering the power-chart for that day useless. After setting the values to zero in the database the graph returns to normal. It seems there is a conversion error in the code.

berwinter commented 10 years ago

Thank you for your request. The issue should be solved in the current development version. If it does not work for you, please let me know which hardware you use (ARM/Intel, 32bit or 64bit).

mrosenbaum commented 10 years ago

I use the latest git-revision, so I think it isn't fixed. Machine is amd64 with Ubuntu 14.04. At the Moment, I don't have such values as I deleted them to get the graphs working, but I think they were in the area of 2^24 (16.7 Million).

berwinter commented 10 years ago

I found and fixed a problem with amd64 in the parser.inc.php. Please update this file and let me know if this fixed the problem for you.

mrosenbaum commented 10 years ago

Thanks for your quick reaction! I will try it, but it could take some days until the case with negative powers apperars again.

mrosenbaum commented 10 years ago

So, now I have an event of negative Power - but it generates a negative peak reading -838861 kW on the web interface and -838861 in the database.

berwinter commented 10 years ago

Unfortunately I can not test the functionality on a 64-bit system. So I can only guess where the wrong calculation happens and need your help for testing. I updated again the parser.inc.php. Please could you try if it works now? Thank you.

mrosenbaum commented 10 years ago

That did the trick, negative Values are now displayed correctly. Thanks!