FieldStorage(None, None, '<?xml version="1.0"?><rainForest macId="0xd8d5b900057a" version="1.1" timestamp="1416015156s">\n
<InstantaneousDemand>\n
<DeviceMacId>0xd8d5b90000000ece</DeviceMacId>\n
<MeterMacId>0x0013500100c1f22a</MeterMacId>\n
<TimeStamp>0x1bf969b0</TimeStamp>\n
<Demand>0x0006a4</Demand>\n
<Multiplier>0x00000001</Multiplier>\n
<Divisor>0x000003e8</Divisor>\n
<DigitsRight>0x03</DigitsRight>\n
<DigitsLeft>0x0f</DigitsLeft>\n
<SuppressLeadingZero>Y</SuppressLeadingZero>\n
</InstantaneousDemand>\n
\n
</rainForest>\n')
nsheldon wrote:...If you're interested in working on something like that, you're more than welcome to use my existing code, such as it is, to get started. If there is a real interest, I could also put it up on GitHub too.
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 662, in runConcurrentThread
File "plugin.py", line 1137, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range
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 662, in runConcurrentThread
File "plugin.py", line 1137, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range
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 662, in runConcurrentThread
File "plugin.py", line 1137, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range
Energy EAGLE Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Reloading plugin "Energy EAGLE 0.9.16"
Stopping plugin "Energy EAGLE 0.9.16" (pid 53685)
Energy EAGLE Debug Stopping device: Rainforest Gateway
Stopped plugin "Energy EAGLE 0.9.16"
Starting plugin "Energy EAGLE 0.9.16" (pid 53989)
Energy EAGLE Debug Initializing Plugin.
Started plugin "Energy EAGLE 0.9.16"
Energy EAGLE Debug Starting device: Rainforest Gateway
Energy EAGLE Debug Device outdated. Updating device state list.
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>******REMOVED*********</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>******REMOVED*********</DeviceMacId>
<Status>Connected</Status>
<CoordMacId>******REMOVED*********</CoordMacId>
<ExtPanId>******REMOVED*********</ExtPanId>
<ShortAddr>0x2bc2</ShortAddr>
<Channel>25</Channel>
<LinkStrength>0x64</LinkStrength>
</NetworkInfo>
<LocalCommand>
<Name>get_device_data</Name>
<MacId>******REMOVED*********</MacId>
</LocalCommand>
<DeviceInfo>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<InstallCode>******REMOVED*********</InstallCode>
<LinkKeyHigh>******REMOVED*********</LinkKeyHigh>
<LinkKeyLow>******REMOVED*********</LinkKeyLow>
<FWVersion>1.4.48 (6952)</FWVersion>
<HWVersion>3.2.3</HWVersion>
<Manufacturer>Rainforest Automation, Inc.</Manufacturer>
<ModelId>Z109-EAGLE</ModelId>
<DateCode>20121201EC051052</DateCode>
<ImageType>0x1001</ImageType>
</DeviceInfo>
<InstantaneousDemand>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<MeterMacId>******REMOVED*********</MeterMacId>
<TimeStamp>0x1cf807b8</TimeStamp>
<Demand>0x000703</Demand>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x03</DigitsRight>
<DigitsLeft>0x06</DigitsLeft>
<SuppressLeadingZero>Y</SuppressLeadingZero>
</InstantaneousDemand>
<CurrentSummation>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<MeterMacId>******REMOVED*********</MeterMacId>
<TimeStamp>0x1cf80720</TimeStamp>
<SummationDelivered>0x03f8f675</SummationDelivered>
<SummationReceived>0x00000000</SummationReceived>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x01</DigitsRight>
<DigitsLeft>0x06</DigitsLeft>
<SuppressLeadingZero>Y</SuppressLeadingZero>
</CurrentSummation>
<PriceCluster>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<MeterMacId>******REMOVED*********</MeterMacId>
<TimeStamp>0x1c9de9f0</TimeStamp>
<StartTime>0xffffffff</StartTime>
<Duration>0xffff</Duration>
<Price>0x0000001f</Price>
<Currency>0x0348</Currency>
<TrailingDigits>0x02</TrailingDigits>
<Tier>4</Tier>
<RateLabel>Tier 4</RateLabel>
</PriceCluster>
<MessageCluster>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<MeterMacId>******REMOVED*********</MeterMacId>
<TimeStamp>0x00000000</TimeStamp>
<StartTime>0x00000000</StartTime>
<Duration>0x0000</Duration>
<Id>0x00000000</Id>
<ConfirmationRequired>N</ConfirmationRequired>
<Confirmed>N</Confirmed>
<Read>Y</Read>
<Queue>active</Queue>
</MessageCluster>
<MeterInfo>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<MeterMacId>******REMOVED*********</MeterMacId>
<Enabled>Y</Enabled>
</MeterInfo>
<Threshold>
<DeviceMacId>******REMOVED*********</DeviceMacId>
<MeterMacId>******REMOVED*********</MeterMacId>
<UpperDemand>5.000000</UpperDemand>
<LowerDemand>-2.000000</LowerDemand>
</Threshold>
Energy EAGLE Debug Energy EAGLE version: 0.9.13
Energy EAGLE Debug eagleDeviceData received XML from sendCommand:
Class: <type 'str'>
Data:
<Data><NetworkInfo> <DeviceMacId>******REMOVED*********</DeviceMacId> <Status>Connected</Status> <CoordMacId>******REMOVED*********</CoordMacId> <ExtPanId>******REMOVED*********</ExtPanId> <ShortAddr>0x2bc2</ShortAddr> <Channel>25</Channel> <LinkStrength>0x64</LinkStrength></NetworkInfo><LocalCommand> <Name>get_device_data</Name> <MacId>0xd8d5b90000000eda</MacId></LocalCommand><DeviceInfo> <DeviceMacId>0xd8d5b90000000eda</DeviceMacId> <InstallCode>******REMOVED*********</InstallCode> <LinkKeyHigh>******REMOVED*********</LinkKeyHigh> <LinkKeyLow>******REMOVED*********</LinkKeyLow> <FWVersion>1.4.48 (6952)</FWVersion> <HWVersion>3.2.3</HWVersion> <Manufacturer>Rainforest Automation, Inc.</Manufacturer> <ModelId>Z109-EAGLE</ModelId> <DateCode>20121201EC051052</DateCode> <ImageType>0x1001</ImageType></DeviceInfo><InstantaneousDemand> <DeviceMacId>******REMOVED*********</DeviceMacId> <MeterMacId>******REMOVED*********</MeterMacId> <TimeStamp>0x1cf807b8</TimeStamp> <Demand>0x000703</Demand> <Multiplier>0x00000001</Multiplier> <Divisor>0x000003e8</Divisor> <DigitsRight>0x03</DigitsRight> <DigitsLeft>0x06</DigitsLeft> <SuppressLeadingZero>Y</SuppressLeadingZero></InstantaneousDemand><CurrentSummation> <DeviceMacId>******REMOVED*********</DeviceMacId> <MeterMacId>******REMOVED*********</MeterMacId> <TimeStamp>0x1cf80720</TimeStamp> <SummationDelivered>0x03f8f675</SummationDelivered> <SummationReceived>0x00000000</SummationReceived> <Multiplier>0x00000001</Multiplier> <Divisor>0x000003e8</Divisor> <DigitsRight>0x01</DigitsRight> <DigitsLeft>0x06</DigitsLeft> <SuppressLeadingZero>Y</SuppressLeadingZero></CurrentSummation><PriceCluster> <DeviceMacId>******REMOVED*********</DeviceMacId> <MeterMacId>******REMOVED*********</MeterMacId> <TimeStamp>0x1c9de9f0</TimeStamp> <StartTime>0xffffffff</StartTime> <Duration>0xffff</Duration> <Price>0x0000001f</Price> <Currency>0x0348</Currency> <TrailingDigits>0x02</TrailingDigits> <Tier>4</Tier> <RateLabel>Tier 4</RateLabel></PriceCluster><MessageCluster> <DeviceMacId>******REMOVED*********</DeviceMacId> <MeterMacId>******REMOVED*********</MeterMacId> <TimeStamp>0x00000000</TimeStamp> <StartTime>0x00000000</StartTime> <Duration>0x0000</Duration> <Id>0x00000000</Id> <ConfirmationRequired>N</ConfirmationRequired> <Confirmed>N</Confirmed> <Read>Y</Read> <Queue>active</Queue></MessageCluster><MeterInfo> <DeviceMacId>0xd8d5b90000000eda</DeviceMacId> <MeterMacId>0x0007810000226b9b</MeterMacId> <Enabled>Y</Enabled></MeterInfo><Threshold> <DeviceMacId>******REMOVED*********</DeviceMacId> <MeterMacId>******REMOVED*********</MeterMacId> <UpperDemand>5.000000</UpperDemand> <LowerDemand>-2.000000</LowerDemand></Threshold></Data>
Energy EAGLE Debug Parsing Device Data XML from "Rainforest Gateway".
Energy EAGLE Debug Parsed data:
<?xml version="1.0" ?>
<Data>
<NetworkInfo>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<Status>
Connected
</Status>
<CoordMacId>
******REMOVED*********
</CoordMacId>
<ExtPanId>
******REMOVED*********
</ExtPanId>
<ShortAddr>
0x2bc2
</ShortAddr>
<Channel>
25
</Channel>
<LinkStrength>
0x64
</LinkStrength>
</NetworkInfo>
<LocalCommand>
<Name>
get_device_data
</Name>
<MacId>
******REMOVED*********
</MacId>
</LocalCommand>
<DeviceInfo>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<InstallCode>
******REMOVED*********
</InstallCode>
<LinkKeyHigh>
******REMOVED*********
</LinkKeyHigh>
<LinkKeyLow>
******REMOVED*********
</LinkKeyLow>
<FWVersion>
1.4.48 (6952)
</FWVersion>
<HWVersion>
3.2.3
</HWVersion>
<Manufacturer>
Rainforest Automation, Inc.
</Manufacturer>
<ModelId>
Z109-EAGLE
</ModelId>
<DateCode>
20121201EC051052
</DateCode>
<ImageType>
0x1001
</ImageType>
</DeviceInfo>
<InstantaneousDemand>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<MeterMacId>
******REMOVED*********
</MeterMacId>
<TimeStamp>
0x1cf807b8
</TimeStamp>
<Demand>
0x000703
</Demand>
<Multiplier>
0x00000001
</Multiplier>
<Divisor>
0x000003e8
</Divisor>
<DigitsRight>
0x03
</DigitsRight>
<DigitsLeft>
0x06
</DigitsLeft>
<SuppressLeadingZero>
Y
</SuppressLeadingZero>
</InstantaneousDemand>
<CurrentSummation>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<MeterMacId>
******REMOVED*********
</MeterMacId>
<TimeStamp>
0x1cf80720
</TimeStamp>
<SummationDelivered>
0x03f8f675
</SummationDelivered>
<SummationReceived>
0x00000000
</SummationReceived>
<Multiplier>
0x00000001
</Multiplier>
<Divisor>
0x000003e8
</Divisor>
<DigitsRight>
0x01
</DigitsRight>
<DigitsLeft>
0x06
</DigitsLeft>
<SuppressLeadingZero>
Y
</SuppressLeadingZero>
</CurrentSummation>
<PriceCluster>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<MeterMacId>
******REMOVED*********
</MeterMacId>
<TimeStamp>
0x1c9de9f0
</TimeStamp>
<StartTime>
0xffffffff
</StartTime>
<Duration>
0xffff
</Duration>
<Price>
0x0000001f
</Price>
<Currency>
0x0348
</Currency>
<TrailingDigits>
0x02
</TrailingDigits>
<Tier>
4
</Tier>
<RateLabel>
Tier 4
</RateLabel>
</PriceCluster>
<MessageCluster>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<MeterMacId>
******REMOVED*********
</MeterMacId>
<TimeStamp>
0x00000000
</TimeStamp>
<StartTime>
0x00000000
</StartTime>
<Duration>
0x0000
</Duration>
<Id>
0x00000000
</Id>
<ConfirmationRequired>
N
</ConfirmationRequired>
<Confirmed>
N
</Confirmed>
<Read>
Y
</Read>
<Queue>
active
</Queue>
</MessageCluster>
<MeterInfo>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<MeterMacId>
******REMOVED*********
</MeterMacId>
<Enabled>
Y
</Enabled>
</MeterInfo>
<Threshold>
<DeviceMacId>
******REMOVED*********
</DeviceMacId>
<MeterMacId>
0x0007810000226b9b
</MeterMacId>
<UpperDemand>
5.000000
</UpperDemand>
<LowerDemand>
-2.000000
</LowerDemand>
</Threshold>
</Data>
Energy EAGLE Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 662, in runConcurrentThread
File "plugin.py", line 1137, in eagleDeviceData
<type 'exceptions.IndexError'>: list index out of range
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
Users browsing this forum: No registered users and 1 guest