power_to_kwh script bug

There is still a bug in the 'usefulscripts/process/power_to_kwh' script, which arises when trying to rebuild a 'power to kWh' feed.

When restarting emonhub, the feed value drops, quite often a significant amount, obviously affecting data accuracy, but also (as it's value has dropped) makes the app/my power bargraph unreadable due to negative values.

The bug has been mention in other threads and screenshots provided, and Trystan tried to sort the script issues here.

Joyrider3774 has experienced the same problem and he highlights the issue and possible cause in this post.

Could it be fixed please.

 

Paul

Paul Reed's picture

Re: power_to_kwh script bug

Added so I can set a post alert.

TrystanLea's picture

Re: power_to_kwh script bug

Hello Paul, thanks for this, added the possible fix thanks to @joyrider3774, https://github.com/emoncms/usefulscripts/commit/7a395d042517470adaa7f4dd...

If anyone continues to experience problems with the script, please let me know.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.