Issues with EmonCMS v8 (kwhd doesnt reset)

I have some issues with emoncms v8 under debian wheezy. Firstly daily value of kWh/d doesnt reset. It just icrementaly counts kWh.  (feedengine phpfina, and i cannot change to mysql, which was working correct in older versions)

 

Secondly, since feed engines are in phpfina/phpfiwa i havent figured out a way how to reset some feeds (why: lets say im monitoring 3phase power and i wanna take phase 1-3 kwh and sum them for overall overview. With mysql in older versions i could just adjust feed value value to 0 and with one press of a key i would reset the counters to zero... Now i can not do it, so if i started with feed several minutes later i have difference between sum of values of phases and overall. Which is not nice.

 

also, as i already said, the changing of feed engine doesnt work. I cant even find in MYSQL where is the type of engine corensponding to feed ID stored.

 

and finaly: i went through php config and other php codes and i can not find any logging settings. I need a LOG to diagnose stuff....

 

Thanx a lot for reading.

 

Schism's picture

Re: Issues with EmonCMS v8 (kwhd doesnt reset)

Logging isn't currently implemented in emoncms, I think partly because historically, it would help kill SD cards very quickly. I raised an issue here and will implement some in the near future, which would be disabled by default (but you could turn it on).

I can't help on the other stuff, sorry!

TrystanLea's picture

Re: Issues with EmonCMS v8 (kwhd doesnt reset)

Its possible to enable mysql if you wish to use it as its all still there under the hood. If you open the file Modules/input/process_model.php you can add mysql as an engine option for the power_to_kwhd input processor by adding it like this:

$list[5] = array(_("Power to kWh/d"),ProcessArg::FEEDID,"power_to_kwhd",1,DataType::DAILY,"Power",array(Engine::PHPFINA));

$list[5] = array(_("Power to kWh/d"),ProcessArg::FEEDID,"power_to_kwhd",1,DataType::DAILY,"Power",array(Engine::PHPFINA,Engine::MYSQL));

If there is enough call for it we could add this as default for now.

TrystanLea's picture

Re: Issues with EmonCMS v8 (kwhd doesnt reset)

I've updated the emoncms repo to get rid of the feed engine selector in the feeds list as it doesnt do anything, to convert feeds they need to be recompiled which is a more complex process.

TrystanLea's picture

Re: Issues with EmonCMS v8 (kwhd doesnt reset)

The daily values not resetting problem in v8 should now be fixed, the fix is now in the master branch, we will be tagging it soon and syncing the fix with the debian package.

Comment viewing options

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