emonCMS and power outage

I hope someone can help out here,

So today our utility has a scheduled power outage from 08:00 to 16:00, just before the power went down the one feed had a reading of 457w, now when the power returns and say the first reading captured is for this discussion 457w emonCMS will average the power usage for the entire day and effectively record that I consistently used 457w throughout the day were in fact I was not using any power ? Surly the system should read 0's if no data it supplied rather than an average ?

So to that end, when the power does return and emonCMS averages out my usage how do I  go about deleting the averaged out data ? and submitting zeros instead ?

 

TrystanLea's picture

Re: emonCMS and power outage

Interesting case, If your using timestore you could go to vis > editrealtime select your last datapoint before the outage and use the scale by box to multiply it by 0. If you then repeat this for the first data point after the outage it should correct that period.

It would be difficult to correct for this automatically as im not sure how you would distinguish from a monitor going offline where a higher average would be better than 0 and a power outage.

warlock's picture

Re: emonCMS and power outage

Thanks Trystan,

Ok so we have just had our power turned back on and a few second after it returned I see that the kWhd for my power consumption is reporting -96kw. these are SQL data points, interestingly the TIMESTORE feeds seem to be correct.

Can you please take a look at my feeds the user is rolfbartels feeds  are 23444 and 23445

These I can fix with the API but I don't really want to have to do this every time I have a power failure. I just have mention that I am using Jeromes oem_gateway

 

Thanks

 

warlock's picture

Re: emonCMS and power outage

Ok I seem to have found a problem, I have been blaming emonCMS, but as it turns out it seems to be the oemgateway

I have attached 3 log files, bacically from what I can tell, when the power returns the oem_gateway is up before the internet connection, for that period while the internet is not contactable the gateway collects data, but the time stamp that it uses it the time stamp from the last ipe-rw ntp update. in my case it was the 29th Oct 2013. as soon as the gateway get's an ntp update it then starts posting data with the correct date, I am not sure why the data is in the negatives 

 

The 3 logs I have attached 

1. the log file after the power returned you'll see for about 10 instances it tried to post with the date 1383021372

2. the log file is were I disabled the ADSL connection and powered the gateway on to prove my theory,

3. Is where I re-enabled the ADSL and then powered on the gateway and would only see 1 post to 1383021372

I will post this up on git hub.

 

 

Comment viewing options

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