Btmon.py and SmartEnergyGroups

Post any 3rd party software here.
Post Reply
nbegin
Posts: 31
Joined: Sun Dec 19, 2010 12:07 am

Btmon.py and SmartEnergyGroups

Post by nbegin » Wed Dec 12, 2012 4:28 pm

Matthew, I'm having trouble getting data into SEG. In your experience is the following a valid SEG api call?

Code: Select all

(site 2e69784df126436 (node XXX358 2012-12-12T21:14:13Z (p_ch1 606.60)(e_ch1 0.84250)(p_ch2 2151.00)(e_ch2 2.98750)(p_ch3 -2.60)(e_ch3 -0.00361)(p_ch4 -26.00)(e_ch4 -0.03611)(p_ch5 -0.60)(e_ch5 -0.00083)(p_ch6 -2.80)(e_ch6 -0.00389)(p_ch7 -3.00)(e_ch7 -0.00417)(p_ch8 -40.40)(e_ch8 -0.05611)(p_ch9 -0.40)(e_ch9 -0.00056)(p_ch10 -1596.80)(e_ch10 -2.21778)(p_ch11 -0.00)(e_ch11 0.00000)(p_ch12 -82.80)(e_ch12 -0.11500)(p_ch13 -0.00)(e_ch13 0.00000)(p_ch14 -28.60)(e_ch14 -0.03972)(p_ch15 -3.20)(e_ch15   <snip> 
I'm using btmon.py 3.0.3 to collect data via gem48ptbin format into sqlite and then output to SEG.
SEG is getting the packets and shows no errors, but all streams show no data. (Is that date allowed after the node_id?) I've tried both positive and negative values in the data.
mwall
Posts: 140
Joined: Wed Dec 07, 2011 6:25 pm

Re: Btmon.py and SmartEnergyGroups

Post by mwall » Wed Dec 12, 2012 5:50 pm

the SEG api call looks ok. positive/negative should not matter - i have been inverting polarity on streams at SEG for months now with no problems.

the timestamp is ok - if there is no timestamp, then seg uses the current time for the data. you want the time at which the data were sampled, especially if you are reading from database to feed to seg.

seg has been having some calculation problems yesterday and today. until sam fixes the problems, be sure that you are looking at the stream, not a graph derived from the stream. seg seems to be accepting data, but any graphs or derivative streams are not being calculated/refreshed.

if your streams are showing no data, then be sure that the node name is correct. the easiest thing to do is to put seg into discover mode (see 'discoveries' in the 'tools' section) for a few minutes. as long as your site token is correct, seg will create a node and streams from the data it receives from btmon.
mwall
Posts: 140
Joined: Wed Dec 07, 2011 6:25 pm

Re: Btmon.py and SmartEnergyGroups

Post by mwall » Wed Dec 12, 2012 6:29 pm

by the way, sam at SEG suggests uploading samples that are 45 seconds to 60 seconds apart. the comments in btmon suggest 10 second sampling, and the default upload period is 60 seconds. so you might want to set the interval on the GEM to 60 seconds and set the btmon upload period for SEG to 120 or 180.
Post Reply