Problem with pws when using btmon.py?
Posted: Fri Jan 15, 2016 8:16 pm
I'm a newbie to GEM and btmon - so I apologize in advance if any of my questions are dense.
I'm struggling to get my head around btmon. Using a new GEM with current firmware and btmon.py 3.1.1.
Running on CentOS 7 now (I was running under 6.5 but python-rrdtool was failing under the older version of python)
1. I was trying to use rrd and I found that aws was reliably populated but that pws was always 0. I then set it up with mysql and I seem to have the same result.
In reading through the code, it sounds like aws is absolute watts and pws is (only) positive watts? Is that correct? I haven't been able to find a clear explanation
I've tried reversing the polarity of the CT and reversing it in btmon - and pws is always 0. Am I overlooking something?
2. Second question, is there a way to get btmon to report amps for each channel?
Looking at the print example, I think that perhaps it only reports amps for ECM packets.
It would be very nice to get the amps data so that PF can be calculated.
Example from btmon w/print:
2016/01/15 19:59:23: Serial: 01100XXX
2016/01/15 19:59:23: Voltage: 123.50V
2016/01/15 19:59:23: Ch01: 0.026282KWh ( 68W)
2016/01/15 19:59:23 MYSQL: opening connection to localhost
2016/01/15 19:59:23 DB: query: INSERT INTO gem.gem48ptbin_counters (time_created,serial,secs,volts,ch1_aws,ch1_pws,ch2_aws,ch2_pws,ch3_aws,ch3_pws,ch4_aws,ch4_pws,ch5_aws,ch5_pws,ch6_aws,ch6_pws,ch7_aws,ch7_pws,ch
8_aws,ch8_pws,ch9_aws,ch9_pws,ch10_aws,ch10_pws,ch11_aws,ch11_pws,ch12_aws,ch12_pws,ch13_aws,ch13_pws,ch14_aws,ch14_pws,ch15_aws,ch15_pws,ch
16_aws,ch16_pws,ch17_aws,ch17_pws,ch18_aws,ch18_pws,ch19_aws,ch19_pws,ch20_aws,ch20_pws,ch21_aws,ch21_pws,ch22_aws,ch22_pws,ch23_aws,ch23_p
ws,ch24_aws,ch24_pws,ch25_aws,ch25_pws,ch26_aws,ch26_pws,ch27_aws,ch27_pws,ch28_aws,ch28_pws,ch29_aws,ch29_pws,ch30_aws,ch30_pws,ch31_aws,ch
31_pws,ch32_aws,ch32_pws,p1,p2,p3,p4,t1,t2,t3,t4,t5,t6,t7,t8) VALUES (1452905963,'01100XXX',1403,123.5,94614,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0)
I'm struggling to get my head around btmon. Using a new GEM with current firmware and btmon.py 3.1.1.
Running on CentOS 7 now (I was running under 6.5 but python-rrdtool was failing under the older version of python)
1. I was trying to use rrd and I found that aws was reliably populated but that pws was always 0. I then set it up with mysql and I seem to have the same result.
In reading through the code, it sounds like aws is absolute watts and pws is (only) positive watts? Is that correct? I haven't been able to find a clear explanation
I've tried reversing the polarity of the CT and reversing it in btmon - and pws is always 0. Am I overlooking something?
2. Second question, is there a way to get btmon to report amps for each channel?
Looking at the print example, I think that perhaps it only reports amps for ECM packets.
It would be very nice to get the amps data so that PF can be calculated.
Example from btmon w/print:
2016/01/15 19:59:23: Serial: 01100XXX
2016/01/15 19:59:23: Voltage: 123.50V
2016/01/15 19:59:23: Ch01: 0.026282KWh ( 68W)
2016/01/15 19:59:23 MYSQL: opening connection to localhost
2016/01/15 19:59:23 DB: query: INSERT INTO gem.gem48ptbin_counters (time_created,serial,secs,volts,ch1_aws,ch1_pws,ch2_aws,ch2_pws,ch3_aws,ch3_pws,ch4_aws,ch4_pws,ch5_aws,ch5_pws,ch6_aws,ch6_pws,ch7_aws,ch7_pws,ch
8_aws,ch8_pws,ch9_aws,ch9_pws,ch10_aws,ch10_pws,ch11_aws,ch11_pws,ch12_aws,ch12_pws,ch13_aws,ch13_pws,ch14_aws,ch14_pws,ch15_aws,ch15_pws,ch
16_aws,ch16_pws,ch17_aws,ch17_pws,ch18_aws,ch18_pws,ch19_aws,ch19_pws,ch20_aws,ch20_pws,ch21_aws,ch21_pws,ch22_aws,ch22_pws,ch23_aws,ch23_p
ws,ch24_aws,ch24_pws,ch25_aws,ch25_pws,ch26_aws,ch26_pws,ch27_aws,ch27_pws,ch28_aws,ch28_pws,ch29_aws,ch29_pws,ch30_aws,ch30_pws,ch31_aws,ch
31_pws,ch32_aws,ch32_pws,p1,p2,p3,p4,t1,t2,t3,t4,t5,t6,t7,t8) VALUES (1452905963,'01100XXX',1403,123.5,94614,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0)