The Energy Detective Forums

General Category => Developer Support => Topic started by: ecusolar on March 23, 2011, 07:18:45 PM

Title: Grid failure metering
Post by: ecusolar on March 23, 2011, 07:18:45 PM
We have a lot of power blackouts and I want to monitor those failures to make a claim at the energy provider when needed.

Is there a option in TED to monitor the hours the grid fails by day/month/year?

Thanks in advance
Title: Re: Grid failure metering
Post by: SherlockOhms on April 18, 2011, 08:55:09 AM
Hi ecusolar.

No unfortunately there is no option to track outages.  The only way I can think off to do that would be to post-process export of the data.

Title: Re: Grid failure metering
Post by: stanar on April 18, 2011, 09:34:13 AM
Does it mean that there is no option right now or just not possible to add that feature in the future releases? Just curious...
Title: Re: Grid failure metering
Post by: dannyted on April 18, 2011, 01:56:50 PM
My suggestion would be to buy a cheap ups you could tie it to your computer and review log files.
Title: Re: Grid failure metering
Post by: SherlockOhms on April 20, 2011, 05:51:14 AM
the problem with tracking failure is that the system is going to be OFF ... there is no battery backup to keep the gateway going to track that the voltage has dropped bellow operating. And placing the Gateway on the UPS will kill the signal connection. The suggested alternative is really a much better solution for this application.
Title: Re: Grid failure metering
Post by: dannyted on April 20, 2011, 05:37:08 PM
I didnt mean to place the gateway on a ups.  I meant use a ups to tell if the grid was on or not.  I had a friend who did this he tied his computer to the ups when the power went off he had a time stamp.  He had some method for the computer to come on when the power came back, only a problem if the power is off longer than the ups can sustain.  I dont remember his exact solutions, but he knew when the power was on and off.
Title: Re: Grid failure metering
Post by: pfletch101 on April 21, 2011, 03:23:29 AM
He had some method for the computer to come on when the power came back, only a problem if the power is off longer than the ups can sustain.  I dont remember his exact solutions, but he knew when the power was on and off.


This is generally a system BIOS setting. It defaults to "stay off", since this is much safer if you are not attached to a UPS (staying off protects the system from the voltage fluctuations that are not infrequently seen for a few minutes when utility power is restored after an outage). If the system is attached ot a UPS which is set up to delay turning on under these circumstances, it is entirely reasonable to set the system up to boot up when the UPS comes back on line.
Title: Re: Grid failure metering
Post by: stanar on April 21, 2011, 02:52:57 PM
UPS like ( APC connected to a PC via serial port) maintains a log/history of power failures and duration.  maybe you can just buy a lower end APC UPS to get this data.

Since the gateway has a built in battery, my question is why cant it keep a log of power failures and duration.
Title: Re: Grid failure metering
Post by: sandeen on April 27, 2011, 05:25:47 PM
I didnt mean to place the gateway on a ups.  I meant use a ups to tell if the grid was on or not.  I had a friend who did this he tied his computer to the ups when the power went off he had a time stamp.  He had some method for the computer to come on when the power came back, only a problem if the power is off longer than the ups can sustain.  I dont remember his exact solutions, but he knew when the power was on and off.

Exactly; any decent UPS software will log the changes in power state.  Here's APCUPSD on Linux:

Apr 14 10:28:43 sandeen apcupsd[2641]: Power failure.
Apr 14 10:28:46 sandeen apcupsd[2641]: Power is back. UPS running on mains.


... and gracefully shut down the computer when batteries are low... BIOS setting turns it back on when power comes back.
Title: Re: Grid failure metering
Post by: danielduerr on November 14, 2012, 08:24:13 PM
+1 vote on this topic -- would be great to be able to utilize the TED5000 to determine if and/or when there was a grid failure.  Even a simple "uptime" parameter in the system settings API could be used for this purpose (the *if*, that is).  I'm very familiar with the UPS-based approach suggested in this thread and already have that feature built in to my application but don't have a UPS where I need it for this particular purpose.  Would like to build some alternatives in for the same means...
Title: Re: Grid failure metering
Post by: stevepierce on November 15, 2012, 07:54:47 AM
What about using something like PVOUTPUT.org to track your TED data. Then you could export your data from PVOutput and extract the times when there are 0's for the inputs which would indicate either a power failure or a time when the TED was unable to connect to PVO.

 - Steve