Feed no longer showing daily total

Hi

I have an input that was working correctly.

I have now lost my daily totals. I believe it may be since an update to v8.1.1 (from apt)

Input set up attached. Has something changed that requires me to edit the input?

Regards

Ian

 

 

 

 

 

Schism's picture

Re: Feed no longer showing daily total

Hi,

8.1.1 was quite a minor change (just the htaccess file) - can you confirm what version was previously working for you?

Ian Eagland's picture

Re: Feed no longer showing daily total

Hi

Unfortunately no. I am not even sure that the update has caused it.  Tuesday the 8th april was the day it stopped. I have been running the apt update every few days to see if any problems occur. This is a test server before I upgrade my main emoncms.

Regards

Ian

Schism's picture

Re: Feed no longer showing daily total

I have a pull request waiting on emoncms to tweak some prototype logging code I added the other day.

Once that's been included, you should be able to insert a couple of log statements into the process function and see what's up.

If memory serves, if you don't have Redis installed the daily totals don't work (although it doesn't explode - just silently does nothing).

Ian Eagland's picture

Re: Feed no longer showing daily total

Redis is installed. I will wait for logging option and investigate then. 

TrystanLea's picture

Re: Feed no longer showing daily total

The kwh_to_kwhd input processor does indeed need redis but that you can see it updating with 0 for the most recent days indicates that this isnt to problem as you wouldnt see any data for the most recent days if redis was not installed.

I wonder if its due to a reset in the kwh feed? Im not sure if kwh_to_kwhd will deal with a reset, im looking at these lines:

https://github.com/emoncms/emoncms/blob/master/Modules/input/process_mod...

            // kwh values should always be increasing so ignore ones that are less
            // assume they are errors
            if ($kwhinc<0) { $kwhinc = 0; $value = $lastkwhvalue['value']; }

it would be something to fix if thats the case

 

 

Ian Eagland's picture

Re: Feed no longer showing daily total

Hi Trystan

I bet you are right. The emonTX providing the feed is monitoring DC current used and I am still tweaking the software. I did make a change a few days ago which resets input data to zero.

Regards

Ian

 

Ian Eagland's picture

Re: Feed no longer showing daily total

Hi Trystan

Definitely the feed reset. Commented out line if ($kwhinc<0) { $kwhinc = 0; $value = $lastkwhvalue['value']; }

Daily total recording again. 

Regards

Ian

rjoem's picture

Re: Feed no longer showing daily total

Hi Ian

I am not an expert, you can clear my exactly what and how to change. I use emoncms + stalks + hdd 8.0.9 with the same problem, I found the file but I have not clear what to change, I thank you for the help.

leonardo

 

ukmoose's picture

Re: Feed no longer showing daily total

Change the line

if ($kwhinc<0) { $kwhinc = 0; $value = $lastkwhvalue['value']; }

 

to

// if ($kwhinc<0) { $kwhinc = 0; $value = $lastkwhvalue['value']; }
rjoem's picture

Re: Feed no longer showing daily total

thanks ukmoose, I have change the line 301 file process_module.php in /usr/share/emoncms/www/Modules/input, but the bargraph dosn't show the bar of today. I use, to calculate kWh/day, the power to kWh/day process. any help

thanks Leonardo

Ian Eagland's picture

Re: Feed no longer showing daily total

Hi

I rebooted after the change as I don't know when the modules are loaded. 

Regards

Ian

Comment viewing options

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