Energy EAGLE Discussion

Posted on
Sun Oct 27, 2013 10:55 am
rhanson offline
Posts: 192
Joined: Apr 30, 2013

Re: Energy EAGLE Discussion

davidw - I got a notice some weeks ago that SCE changed the way they push messages to the meter. They used to display the current rate, based on season, time of day, usage tier, etc as a message, which was readable thru the Eagle. But evidently, there were issues and they were displaying the wrong prices, so they just stopped sending the info. Now, the message panel is blank, and they don't send rate info. My point here is that the advanced pricing won't work. That may have nothing to do with the errors you saw in the plugin, just sharing that those of us on SCE with net metering can't use the advanced pricing option.

Posted on
Fri Nov 08, 2013 6:44 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

Nathan… I have finally gotten my Eagle installed and I am very impressed with the plugin. :D Nice work.

In talking to PG&E I was told that they do not update the pricing in the meter at all (or at least not reliably, the phone agent wasn't sure which one was the case). However, they do have a service to alert the user by email (or text or phone) when usage crosses a tier boundary. I have subscribed. My hope is to build an email processing application for Mail.app (or I could use indigo) to use the event to trigger an update in the Eagle, probably using curl. That would be a nice option for the plugin (as an action) but it doesn't look like the API supports writes to the device… though, maybe I missed something.

Anyway, I'll play with the curl command a bit and see what I come up with.

Posted on
Fri Nov 08, 2013 7:59 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

Thanks! Glad you like the plugin. No, I didn't see anything in the API that mentioned writing to the EAGLE, but it's built in web interface does allow you to set a fixed price, so there's obviously a way to do it via HTTP, so curl will likely work.

As for the energy alerts from PG&E, I've been signed up for those for a while and they do send out a few emails a month based on usage alerting you of fast energy tier traversals. :-) The emails could be parsed pretty easily so I'm sure you'll have no difficulty getting it to work.

Posted on
Sat Nov 09, 2013 1:16 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

nsheldon wrote:
...curl will likely work.


:D With a little help from tcpdump and Safari's web inspector I found...
curl http://<EAGLE_IP_ADDR>/php/send_raven_command.php?Name=set_current_price\&MacId=0x<EAGLE_MAC_ADDR>\&Price=0x<RATE_IN_HEX>\&TrailingDigits=0x2

For example, this command sets the rate to $0.33 per kWh
curl http://192.168.4.173/php/send_raven_command.php?Name=set_current_price\&MacId=0xd8d5b90000000aaa\&Price=0x21\&TrailingDigits=0x2

Note: It takes up to a minute for the price change to be reflected. Also, the backslashes are required to escape the &s from the shell.

Once I get an actual tier change notification, I should be able to finish this up.
Last edited by berkinet on Sat Nov 09, 2013 1:54 am, edited 1 time in total.

Posted on
Sat Nov 09, 2013 1:25 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

Nice! Good investigative work. :-D

Posted on
Tue Nov 12, 2013 10:52 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

Just got an email from Rainforest Automation about a software upgrade for the Eagle. Mostly cosmetic. But
    • Upload to any URL - make your own server!

Sure looks interesting. Could this mean events? I've signed up for the beta.

Posted on
Wed Nov 13, 2013 1:22 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

I saw the email as well. Haven't signed up for the beta. The ability to push to your own server could be useful indeed.

Posted on
Wed Nov 13, 2013 3:17 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

berkinet wrote:
Just got an email from Rainforest Automation about a software upgrade for the Eagle. … ... I've signed up for the beta.

You might want to wait before upgrading…

The beta 2.0 software was loaded on my Eagle this morning, and it breaks the plugin..

Posted on
Wed Nov 13, 2013 4:03 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

berkinet wrote:
You might want to wait before upgrading…

The beta 2.0 software was loaded on my Eagle this morning, and it breaks the plugin..

Ugh. Good to know. The plugin uses information from their published API too, so perhaps their API is changing too. Or it's just a (big) bug with this beta version.

Posted on
Wed Nov 13, 2013 8:13 pm
automaton offline
Posts: 88
Joined: May 23, 2008

Re: Energy EAGLE Discussion

Nathan,
My Energy Eagle plug-in began spewing errors today. Trace below. Any ideas what's causing it? I upgraded to this version of the plug-in a few days ago, it seemed to run clean after installing it. I haven't upgraded the eagle.

Code: Select all
Nov 13, 2013, 6:08:16 PM
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Received INSTEON                "Garage Occupancy Sensor South" off (button 1)
  Received INSTEON                "Garage Occupancy Sensor South" off (button 1)
  Indigo Cocoa client disconnected (192.168.252.43)
  Indigo Cocoa client authenticated (192.168.252.43)
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Reloading plugin "Energy EAGLE 0.9.12"
  Stopping plugin "Energy EAGLE 0.9.12" (pid 53900)
  Stopped plugin "Energy EAGLE 0.9.12"
  Starting plugin "Energy EAGLE 0.9.12" (pid 6540)
  Started plugin "Energy EAGLE 0.9.12"

Nov 13, 2013, 6:08:59 PM
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Nov 13, 2013, 6:09:33 PM
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Wed Nov 13, 2013 9:10 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Energy EAGLE Discussion

@automaton: Could you enable debugging in the plugin configuration and paste in 10 to 15 seconds of your Indigo log? I suspect your EAGLE may have been updated automatically by Rainforest Automation, but can't be sure what's going on without the debug logs.

Posted on
Wed Nov 13, 2013 10:00 pm
automaton offline
Posts: 88
Joined: May 23, 2008

Re: Energy EAGLE Discussion

Here is additional logging where the error started:

Code: Select all
2013-11-13 17:01:14   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1496, in eagleSummationValues
  File "plugin.py", line 1690, in sendCommand
<class 'socket.error'>: (54, 'Connection reset by peer')

2013-11-13 17:01:14   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:01:24   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:01:24   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:01:24   Energy EAGLE Error   Error sending data to "Rainforest Gateway". Error: 'bool' object has no attribute 'close'
2013-11-13 17:01:24   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 633, in runConcurrentThread
  File "plugin.py", line 908, in eagleDeviceData
  File "plugin.py", line 1677, in sendCommand
  File "plugin.py", line 1767, in disconnect
<type 'exceptions.AttributeError'>: 'bool' object has no attribute 'close'

2013-11-13 17:01:24   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:01:34   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:01:34   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:01:34   Energy EAGLE Error   Error sending data to "Rainforest Gateway". Error: 'bool' object has no attribute 'close'
2013-11-13 17:01:34   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 633, in runConcurrentThread
  File "plugin.py", line 908, in eagleDeviceData
  File "plugin.py", line 1677, in sendCommand
  File "plugin.py", line 1767, in disconnect
<type 'exceptions.AttributeError'>: 'bool' object has no attribute 'close'

2013-11-13 17:01:34   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:01:44   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:01:44   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:01:44   Energy EAGLE Error   Error sending data to "Rainforest Gateway". Error: 'bool' object has no attribute 'close'
2013-11-13 17:01:44   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 633, in runConcurrentThread
  File "plugin.py", line 908, in eagleDeviceData
  File "plugin.py", line 1677, in sendCommand
  File "plugin.py", line 1767, in disconnect
<type 'exceptions.AttributeError'>: 'bool' object has no attribute 'close'

2013-11-13 17:01:44   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:01:59   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: timed out
2013-11-13 17:02:04   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: timed out
2013-11-13 17:02:04   Energy EAGLE Error   Error sending data to "Rainforest Gateway". Error: 'bool' object has no attribute 'close'
2013-11-13 17:02:04   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 633, in runConcurrentThread
  File "plugin.py", line 908, in eagleDeviceData
  File "plugin.py", line 1677, in sendCommand
  File "plugin.py", line 1767, in disconnect
<type 'exceptions.AttributeError'>: 'bool' object has no attribute 'close'

2013-11-13 17:02:04   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:02:16   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:02:16   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:02:16   Energy EAGLE Error   Error sending data to "Rainforest Gateway". Error: 'bool' object has no attribute 'close'
2013-11-13 17:02:16   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 633, in runConcurrentThread
  File "plugin.py", line 908, in eagleDeviceData
  File "plugin.py", line 1677, in sendCommand
  File "plugin.py", line 1767, in disconnect
<type 'exceptions.AttributeError'>: 'bool' object has no attribute 'close'

2013-11-13 17:02:16   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:02:17   Received INSTEON   "2FL Walker's Room Main Lights" on
2013-11-13 17:02:26   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:02:26   Energy EAGLE Error   Error connecting to "Rainforest Gateway". Error: (61, 'Connection refused')
2013-11-13 17:02:26   Energy EAGLE Error   Error sending data to "Rainforest Gateway". Error: 'bool' object has no attribute 'close'
2013-11-13 17:02:26   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 633, in runConcurrentThread
  File "plugin.py", line 908, in eagleDeviceData
  File "plugin.py", line 1677, in sendCommand
  File "plugin.py", line 1767, in disconnect
<type 'exceptions.AttributeError'>: 'bool' object has no attribute 'close'

2013-11-13 17:02:26   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:02:43   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

2013-11-13 17:02:43   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:02:55   Trigger   Electric Meter Message Received
2013-11-13 17:02:56   Email Sent   to "alert@heintznet.com"; subject "SCE Power Meter Message Received"
2013-11-13 17:03:00   Energy EAGLE Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

2013-11-13 17:03:00   Energy EAGLE Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2013-11-13 17:03:18   Energy EAGLE Error   Error in plugin execution runConcurrentThread:


Here is the log with debug turned on:

Code: Select all
  Started plugin "Energy EAGLE 0.9.12"
  Energy EAGLE                    Debug logging enabled
  Energy EAGLE Debug              disconnect called.
  Energy EAGLE Debug              Data returned:
  <Info>
    <Text>Interval data start</Text>
  </Info>
  <Reading>
    <Value>2.251</Value>
    <TimeStamp>0x1a15bcc8</TimeStamp>
  </Reading>
  <Reading>
    <Value>3.612</Value>
    <TimeStamp>0x1a15cad8</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.965</Value>
    <TimeStamp>0x1a15d8e8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.036</Value>
    <TimeStamp>0x1a15e6f8</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.950</Value>
    <TimeStamp>0x1a15f508</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.652</Value>
    <TimeStamp>0x1a160318</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.547</Value>
    <TimeStamp>0x1a161128</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.634</Value>
    <TimeStamp>0x1a161f38</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.655</Value>
    <TimeStamp>0x1a162d48</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.747</Value>
    <TimeStamp>0x1a163b58</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.278</Value>
    <TimeStamp>0x1a164968</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.572</Value>
    <TimeStamp>0x1a165778</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.202</Value>
    <TimeStamp>0x1a166588</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.914</Value>
    <TimeStamp>0x1a167398</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.902</Value>
    <TimeStamp>0x1a1681a8</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.095</Value>
    <TimeStamp>0x1a168fb8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.082</Value>
    <TimeStamp>0x1a169dc8</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.984</Value>
    <TimeStamp>0x1a16abd8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.239</Value>
    <TimeStamp>0x1a16b9e8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.557</Value>
    <TimeStamp>0x1a16c7f8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.524</Value>
    <TimeStamp>0x1a16d608</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.697</Value>
    <TimeStamp>0x1a16e418</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.710</Value>
    <TimeStamp>0x1a16f228</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.103</Value>
    <TimeStamp>0x1a170038</TimeStamp>
  </Reading>
  <Info>
    <Text>Interval data end</Text>
  </Info>


  Energy EAGLE Debug              Energy EAGLE version: 0.9.9.3
  Energy EAGLE Debug              Parsing Summation Values XML from "Rainforest Gateway".
  Energy EAGLE Debug              Parsed data:
<?xml version="1.0" ?>
<Data>
    
   <Info>
         
      <Text>
         Interval data start
      </Text>
       
   </Info>
    
   <Reading>
         
      <Value>
         2.251
      </Value>
         
      <TimeStamp>
         0x1a15bcc8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         3.612
      </Value>
         
      <TimeStamp>
         0x1a15cad8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.965
      </Value>
         
      <TimeStamp>
         0x1a15d8e8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.036
      </Value>
         
      <TimeStamp>
         0x1a15e6f8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.950
      </Value>
         
      <TimeStamp>
         0x1a15f508
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.652
      </Value>
         
      <TimeStamp>
         0x1a160318
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.547
      </Value>
         
      <TimeStamp>
         0x1a161128
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.634
      </Value>
         
      <TimeStamp>
         0x1a161f38
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.655
      </Value>
         
      <TimeStamp>
         0x1a162d48
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.747
      </Value>
         
      <TimeStamp>
         0x1a163b58
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.278
      </Value>
         
      <TimeStamp>
         0x1a164968
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.572
      </Value>
         
      <TimeStamp>
         0x1a165778
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.202
      </Value>
         
      <TimeStamp>
         0x1a166588
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.914
      </Value>
         
      <TimeStamp>
         0x1a167398
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.902
      </Value>
         
      <TimeStamp>
         0x1a1681a8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.095
      </Value>
         
      <TimeStamp>
         0x1a168fb8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.082
      </Value>
         
      <TimeStamp>
         0x1a169dc8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.984
      </Value>
         
      <TimeStamp>
         0x1a16abd8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.239
      </Value>
         
      <TimeStamp>
         0x1a16b9e8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.557
      </Value>
         
      <TimeStamp>
         0x1a16c7f8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.524
      </Value>
         
      <TimeStamp>
         0x1a16d608
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.697
      </Value>
         
      <TimeStamp>
         0x1a16e418
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.710
      </Value>
         
      <TimeStamp>
         0x1a16f228
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.103
      </Value>
         
      <TimeStamp>
         0x1a170038
      </TimeStamp>
       
   </Reading>
    
   <Info>
         
      <Text>
         Interval data end
      </Text>
       
   </Info>
</Data>


  Energy EAGLE Debug              Parsing consumption reading 23.
  Energy EAGLE Debug              Unable to get "Timestamp" XML element. Error was: list index out of range
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
  Energy EAGLE Debug              Starting runConcurrentThread.
  Energy EAGLE Debug              eagleDeviceData called.  Device: Rainforest Gateway
  Energy EAGLE Debug              sendCommand called.
  Energy EAGLE Debug              connect called.
  Energy EAGLE Debug              Attempt # 1 to connect to EAGLE.
  Energy EAGLE Debug              Sending command
 <LocalCommand>
 <Name>get_device_data</Name>
 <MacId>0xd8d5b90000000eda</MacId>
</LocalCommand>

 to "Rainforest Gateway".
  Energy EAGLE Debug              Reading data from "Rainforest Gateway".
  Energy EAGLE Debug              disconnect called.
  Energy EAGLE Debug              Data returned:
  <NetworkInfo>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <Status>Connected</Status>
    <MeterMacId>0x0007810000226b9b</MeterMacId>
    <ExtPanId>0x0007810000226b9b</ExtPanId>
    <ShortAddr>0x00009bb4</ShortAddr>
    <Channel>25</Channel>
    <LinkStrength>100</LinkStrength>
  </NetworkInfo>
  <DeviceInfo>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <InstallCode>0x3b0d8bea7ebaab86</InstallCode>
    <LinkKeyHigh>0x5fd35e4f4047e760</LinkKeyHigh>
    <LinkKeyLow>0x11d856127f33456a</LinkKeyLow>
    <FWVersion>1.4.29 (5423)</FWVersion>
    <HWVersion>3.2.3</HWVersion>
    <Manufacturer>Rainforest Automation, Inc.</Manufacturer>
    <ModelId>RFA-Z109 EAGLE</ModelId>
    <DateCode>20121201EC051052</DateCode>
  </DeviceInfo>
  <InstantaneousDemand>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <MeterMacId>0x0007810000226b9b</MeterMacId>
    <Demand>0x00000bce</Demand>
    <TimeStamp>0x1a1706ce</TimeStamp>
    <Multiplier>0x00000001</Multiplier>
    <Divisor>0x000003e8</Divisor>
    <DigitsRight>0x00000003</DigitsRight>
    <DigitsLeft>0x00000006</DigitsLeft>
    <SuppressLeadingZero>0x0001</SuppressLeadingZero>
  </InstantaneousDemand>
  <CurrentSummation>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <MeterMacId>0x0007810000226b9b</MeterMacId>
    <SummationDelivered>0x0000000002ee2c5e</SummationDelivered>
    <SummationReceived>0x0000000000000000</SummationReceived>
    <Multiplier>0x00000001</Multiplier>
    <Divisor>0x000003e8</Divisor>
    <DigitsRight>0x00000003</DigitsRight>
    <DigitsLeft>0x00000006</DigitsLeft>
    <SuppressLeadingZero>0x01</SuppressLeadingZero>
  </CurrentSummation>
  <PriceCluster>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <MeterMacId>0x0007810000226b9b</MeterMacId>
    <Price>0x00000003</Price>
    <Currency>0x0348</Currency>
    <TrailingDigits>0x01</TrailingDigits>
    <Tier>0x04</Tier>
    <RateLabel>Tier 4</RateLabel>
  </PriceCluster>
  <MessageCluster>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <MeterMacId>0x0007810000226b9b</MeterMacId>
    <TimeStamp>0x1a1706b3</TimeStamp>
    <Id>0x0004</Id>
    <Text>11/12/2013-Bill to Date $160.46, Bill Forecast $245.72, Current Tier 4=$0.3/kwh</Text>
    <ConfirmationRequired>Y</ConfirmationRequired>
    <Confirmed>N</Confirmed>
    <Read>N</Read>
    <Queue>active</Queue>
  </MessageCluster>
  <MeterInfo>
    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>
    <MeterMacId>0x0007810000226b9b</MeterMacId>
    <Type>0x0000</Type>
    <Nickname></Nickname>
    <Account></Account>
    <Auth></Auth>
    <Host></Host>
    <Enabled>0x00</Enabled>
  </MeterInfo>


  Energy EAGLE Debug              Energy EAGLE version: 0.9.9.3
  Energy EAGLE Debug              eagleDeviceData received XML from sendCommand:
  Class: <type 'str'>
  Data:
<Data>  <NetworkInfo>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <Status>Connected</Status>    <MeterMacId>0x0007810000226b9b</MeterMacId>    <ExtPanId>0x0007810000226b9b</ExtPanId>    <ShortAddr>0x00009bb4</ShortAddr>    <Channel>25</Channel>    <LinkStrength>100</LinkStrength>  </NetworkInfo>  <DeviceInfo>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <InstallCode>0x3b0d8bea7ebaab86</InstallCode>    <LinkKeyHigh>0x5fd35e4f4047e760</LinkKeyHigh>    <LinkKeyLow>0x11d856127f33456a</LinkKeyLow>    <FWVersion>1.4.29 (5423)</FWVersion>    <HWVersion>3.2.3</HWVersion>    <Manufacturer>Rainforest Automation, Inc.</Manufacturer>    <ModelId>RFA-Z109 EAGLE</ModelId>    <DateCode>20121201EC051052</DateCode>  </DeviceInfo>  <InstantaneousDemand>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <MeterMacId>0x0007810000226b9b</MeterMacId>    <Demand>0x00000bce</Demand>    <TimeStamp>0x1a1706ce</TimeStamp>    <Multiplier>0x00000001</Multiplier>    <Divisor>0x000003e8</Divisor>    <DigitsRight>0x00000003</DigitsRight>    <DigitsLeft>0x00000006</DigitsLeft>    <SuppressLeadingZero>0x0001</SuppressLeadingZero>  </InstantaneousDemand>  <CurrentSummation>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <MeterMacId>0x0007810000226b9b</MeterMacId>    <SummationDelivered>0x0000000002ee2c5e</SummationDelivered>    <SummationReceived>0x0000000000000000</SummationReceived>    <Multiplier>0x00000001</Multiplier>    <Divisor>0x000003e8</Divisor>    <DigitsRight>0x00000003</DigitsRight>    <DigitsLeft>0x00000006</DigitsLeft>    <SuppressLeadingZero>0x01</SuppressLeadingZero>  </CurrentSummation>  <PriceCluster>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <MeterMacId>0x0007810000226b9b</MeterMacId>    <Price>0x00000003</Price>    <Currency>0x0348</Currency>    <TrailingDigits>0x01</TrailingDigits>    <Tier>0x04</Tier>    <RateLabel>Tier 4</RateLabel>  </PriceCluster>  <MessageCluster>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <MeterMacId>0x0007810000226b9b</MeterMacId>    <TimeStamp>0x1a1706b3</TimeStamp>    <Id>0x0004</Id>    <Text>11/12/2013-Bill to Date $160.46, Bill Forecast $245.72, Current Tier 4=$0.3/kwh</Text>    <ConfirmationRequired>Y</ConfirmationRequired>    <Confirmed>N</Confirmed>    <Read>N</Read>    <Queue>active</Queue>  </MessageCluster>  <MeterInfo>    <DeviceMacId>0xd8d5b90000000eda</DeviceMacId>    <MeterMacId>0x0007810000226b9b</MeterMacId>    <Type>0x0000</Type>    <Nickname></Nickname>    <Account></Account>    <Auth></Auth>    <Host></Host>    <Enabled>0x00</Enabled>  </MeterInfo></Data>
  Energy EAGLE Debug              Parsing Device Data XML from "Rainforest Gateway".
  Energy EAGLE Debug              Parsed data:
<?xml version="1.0" ?>
<Data>
    
   <NetworkInfo>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <Status>
         Connected
      </Status>
         
      <MeterMacId>
         0x0007810000226b9b
      </MeterMacId>
         
      <ExtPanId>
         0x0007810000226b9b
      </ExtPanId>
         
      <ShortAddr>
         0x00009bb4
      </ShortAddr>
         
      <Channel>
         25
      </Channel>
         
      <LinkStrength>
         100
      </LinkStrength>
       
   </NetworkInfo>
    
   <DeviceInfo>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <InstallCode>
         0x3b0d8bea7ebaab86
      </InstallCode>
         
      <LinkKeyHigh>
         0x5fd35e4f4047e760
      </LinkKeyHigh>
         
      <LinkKeyLow>
         0x11d856127f33456a
      </LinkKeyLow>
         
      <FWVersion>
         1.4.29 (5423)
      </FWVersion>
         
      <HWVersion>
         3.2.3
      </HWVersion>
         
      <Manufacturer>
         Rainforest Automation, Inc.
      </Manufacturer>
         
      <ModelId>
         RFA-Z109 EAGLE
      </ModelId>
         
      <DateCode>
         20121201EC051052
      </DateCode>
       
   </DeviceInfo>
    
   <InstantaneousDemand>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <MeterMacId>
         0x0007810000226b9b
      </MeterMacId>
         
      <Demand>
         0x00000bce
      </Demand>
         
      <TimeStamp>
         0x1a1706ce
      </TimeStamp>
         
      <Multiplier>
         0x00000001
      </Multiplier>
         
      <Divisor>
         0x000003e8
      </Divisor>
         
      <DigitsRight>
         0x00000003
      </DigitsRight>
         
      <DigitsLeft>
         0x00000006
      </DigitsLeft>
         
      <SuppressLeadingZero>
         0x0001
      </SuppressLeadingZero>
       
   </InstantaneousDemand>
    
   <CurrentSummation>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <MeterMacId>
         0x0007810000226b9b
      </MeterMacId>
         
      <SummationDelivered>
         0x0000000002ee2c5e
      </SummationDelivered>
         
      <SummationReceived>
         0x0000000000000000
      </SummationReceived>
         
      <Multiplier>
         0x00000001
      </Multiplier>
         
      <Divisor>
         0x000003e8
      </Divisor>
         
      <DigitsRight>
         0x00000003
      </DigitsRight>
         
      <DigitsLeft>
         0x00000006
      </DigitsLeft>
         
      <SuppressLeadingZero>
         0x01
      </SuppressLeadingZero>
       
   </CurrentSummation>
    
   <PriceCluster>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <MeterMacId>
         0x0007810000226b9b
      </MeterMacId>
         
      <Price>
         0x00000003
      </Price>
         
      <Currency>
         0x0348
      </Currency>
         
      <TrailingDigits>
         0x01
      </TrailingDigits>
         
      <Tier>
         0x04
      </Tier>
         
      <RateLabel>
         Tier 4
      </RateLabel>
       
   </PriceCluster>
    
   <MessageCluster>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <MeterMacId>
         0x0007810000226b9b
      </MeterMacId>
         
      <TimeStamp>
         0x1a1706b3
      </TimeStamp>
         
      <Id>
         0x0004
      </Id>
         
      <Text>
         11/12/2013-Bill to Date $160.46, Bill Forecast $245.72, Current Tier 4=$0.3/kwh
      </Text>
         
      <ConfirmationRequired>
         Y
      </ConfirmationRequired>
         
      <Confirmed>
         N
      </Confirmed>
         
      <Read>
         N
      </Read>
         
      <Queue>
         active
      </Queue>
       
   </MessageCluster>
    
   <MeterInfo>
         
      <DeviceMacId>
         0xd8d5b90000000eda
      </DeviceMacId>
         
      <MeterMacId>
         0x0007810000226b9b
      </MeterMacId>
         
      <Type>
         0x0000
      </Type>
         
      <Nickname/>
         
      <Account/>
         
      <Auth/>
         
      <Host/>
         
      <Enabled>
         0x00
      </Enabled>
       
   </MeterInfo>
</Data>


  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              updateDeviceState called.
  Energy EAGLE Debug              eagleSummationValues called. Device: Rainforest Gateway, Summation Type: Delivered
  Energy EAGLE Debug              sendCommand called.
  Energy EAGLE Debug              connect called.
  Energy EAGLE Debug              Attempt # 1 to connect to EAGLE.
  Energy EAGLE Debug              Sending command
 <LocalCommand>
 <Name>get_summation_values</Name>
 <MacId>0xd8d5b90000000eda</MacId>
 <Interval>day</Interval>
 <SummationType>Delivered</SummationType>
</LocalCommand>

 to "Rainforest Gateway".
  Energy EAGLE Debug              Reading data from "Rainforest Gateway".
  Energy EAGLE Debug              disconnect called.
  Energy EAGLE Debug              Data returned:
  <Info>
    <Text>Interval data start</Text>
  </Info>
  <Reading>
    <Value>2.251</Value>
    <TimeStamp>0x1a15bcc8</TimeStamp>
  </Reading>
  <Reading>
    <Value>3.612</Value>
    <TimeStamp>0x1a15cad8</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.965</Value>
    <TimeStamp>0x1a15d8e8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.036</Value>
    <TimeStamp>0x1a15e6f8</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.950</Value>
    <TimeStamp>0x1a15f508</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.652</Value>
    <TimeStamp>0x1a160318</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.547</Value>
    <TimeStamp>0x1a161128</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.634</Value>
    <TimeStamp>0x1a161f38</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.655</Value>
    <TimeStamp>0x1a162d48</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.747</Value>
    <TimeStamp>0x1a163b58</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.278</Value>
    <TimeStamp>0x1a164968</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.572</Value>
    <TimeStamp>0x1a165778</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.202</Value>
    <TimeStamp>0x1a166588</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.914</Value>
    <TimeStamp>0x1a167398</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.902</Value>
    <TimeStamp>0x1a1681a8</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.095</Value>
    <TimeStamp>0x1a168fb8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.082</Value>
    <TimeStamp>0x1a169dc8</TimeStamp>
  </Reading>
  <Reading>
    <Value>0.984</Value>
    <TimeStamp>0x1a16abd8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.239</Value>
    <TimeStamp>0x1a16b9e8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.557</Value>
    <TimeStamp>0x1a16c7f8</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.524</Value>
    <TimeStamp>0x1a16d608</TimeStamp>
  </Reading>
  <Reading>
    <Value>1.697</Value>
    <TimeStamp>0x1a16e418</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.710</Value>
    <TimeStamp>0x1a16f228</TimeStamp>
  </Reading>
  <Reading>
    <Value>2.103</Value>
    <TimeStamp>0x1a170038</TimeStamp>
  </Reading>
  <Info>
    <Text>Interval data end</Text>
  </Info>


  Energy EAGLE Debug              Energy EAGLE version: 0.9.9.3
  Energy EAGLE Debug              Parsing Summation Values XML from "Rainforest Gateway".
  Energy EAGLE Debug              Parsed data:
<?xml version="1.0" ?>
<Data>
    
   <Info>
         
      <Text>
         Interval data start
      </Text>
       
   </Info>
    
   <Reading>
         
      <Value>
         2.251
      </Value>
         
      <TimeStamp>
         0x1a15bcc8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         3.612
      </Value>
         
      <TimeStamp>
         0x1a15cad8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.965
      </Value>
         
      <TimeStamp>
         0x1a15d8e8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.036
      </Value>
         
      <TimeStamp>
         0x1a15e6f8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.950
      </Value>
         
      <TimeStamp>
         0x1a15f508
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.652
      </Value>
         
      <TimeStamp>
         0x1a160318
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.547
      </Value>
         
      <TimeStamp>
         0x1a161128
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.634
      </Value>
         
      <TimeStamp>
         0x1a161f38
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.655
      </Value>
         
      <TimeStamp>
         0x1a162d48
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.747
      </Value>
         
      <TimeStamp>
         0x1a163b58
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.278
      </Value>
         
      <TimeStamp>
         0x1a164968
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.572
      </Value>
         
      <TimeStamp>
         0x1a165778
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.202
      </Value>
         
      <TimeStamp>
         0x1a166588
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.914
      </Value>
         
      <TimeStamp>
         0x1a167398
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.902
      </Value>
         
      <TimeStamp>
         0x1a1681a8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.095
      </Value>
         
      <TimeStamp>
         0x1a168fb8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.082
      </Value>
         
      <TimeStamp>
         0x1a169dc8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         0.984
      </Value>
         
      <TimeStamp>
         0x1a16abd8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.239
      </Value>
         
      <TimeStamp>
         0x1a16b9e8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.557
      </Value>
         
      <TimeStamp>
         0x1a16c7f8
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.524
      </Value>
         
      <TimeStamp>
         0x1a16d608
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         1.697
      </Value>
         
      <TimeStamp>
         0x1a16e418
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.710
      </Value>
         
      <TimeStamp>
         0x1a16f228
      </TimeStamp>
       
   </Reading>
    
   <Reading>
         
      <Value>
         2.103
      </Value>
         
      <TimeStamp>
         0x1a170038
      </TimeStamp>
       
   </Reading>
    
   <Info>
         
      <Text>
         Interval data end
      </Text>
       
   </Info>
</Data>


  Energy EAGLE Debug              Parsing consumption reading 23.
  Energy EAGLE Debug              Unable to get "Timestamp" XML element. Error was: list index out of range
  Energy EAGLE Error              Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 637, in runConcurrentThread
  File "plugin.py", line 1573, in eagleSummationValues
<type 'exceptions.UnboundLocalError'>: local variable 'tempTimestamp' referenced before assignment

  Energy EAGLE Error              plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


Posted on
Wed Nov 13, 2013 10:05 pm
automaton offline
Posts: 88
Joined: May 23, 2008

Re: Energy EAGLE Discussion

Nathan,

You're right, they've upgraded me. I guess the Eagle "phones home"... not sure I like that from a security standpoint. That's a feature that should have a configuration switch.

Well, you now have a beta tester for your next plugin version. Let me know how I can help. I like the plug-in a lot.

Posted on
Wed Nov 13, 2013 10:10 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Energy EAGLE Discussion

automaton wrote:
Nathan,
You're right, they've upgraded me. I guess the Eagle "phones home"...
They are only supposed to have upgraded those people who answered the beta invite. Guess someone forgot :roll:

At least the new browser display is nice, and it is faster, though they deleted the 'demand' display.

Posted on
Wed Nov 13, 2013 10:21 pm
automaton offline
Posts: 88
Joined: May 23, 2008

Re: Energy EAGLE Discussion

Well, I did sign up, but was expecting to receive a url to download a file or something similar. I didn't know it "phoned home" for an upgrade. Convenient and scary at the same time.
I did like the demand display, but would trade for the better UI. Maybe they will add it back later in the beta.

Page 7 of 11 1 ... 4, 5, 6, 7, 8, 9, 10, 11

Who is online

Users browsing this forum: No registered users and 7 guests