Closed GoogleCodeExporter closed 9 years ago
Changed
if r.group(5):
sensor = '2'+r.group(2)
to
if r.group(5):
sensor = int('2'+r.group(2))
Appears to fix it up.
Original comment by jimmy.ha...@gmail.com
on 14 Jul 2013 at 2:52
Sorry to be more precise I changed all three sensor = int(....)
if r.group(5):
sensor = int('2'+r.group(2))
if sensors and sensors.has_key(sensor):
watt = int(r.group(5))
watt_sum += watt
sensor_data_check( sensor, watt, tmpr )
clamps = True
if r.group(7):
sensor = int('3'+r.group(2))
if sensors and sensors.has_key(sensor):
watt = int(r.group(7))
watt_sum += watt
sensor_data_check( sensor, watt, tmpr )
clamps = True
if clamps:
sensor = int('1'+r.group(2))
watt = int(r.group(3))
sensor_data_check( sensor, watt, tmpr )
sensor_data_check( r.group(2), watt_sum, tmpr )
Original comment by jimmy.ha...@gmail.com
on 14 Jul 2013 at 3:01
[deleted comment]
I just tried Jimmy's solution and it worked for me too.
Thanks,
Steve.
Original comment by wot...@gmail.com
on 15 Jul 2013 at 11:06
I spoke too soon I think. I'll see what the data looks like in the morning. But
I don't think it updates both clamps at the same time.
Original comment by wot...@gmail.com
on 15 Jul 2013 at 1:17
Jimmy's fix was ok. That will solve the problem.
I add some more debuging information. So please try the new grabber file:
https://measureit.googlecode.com/svn/trunk/measureit_system_files/python/data-in
put.py
Original comment by lalelu...@gmail.com
on 15 Jul 2013 at 6:44
Original comment by lalelu...@gmail.com
on 15 Jul 2013 at 6:45
Looks good on mine so far. Now running the new grabber. Thanks guys.
Original comment by wot...@gmail.com
on 16 Jul 2013 at 4:18
hi,
i have on device 0 a optismart working fine. also have on device 1 a CT with 3
clamps. it seems like only clamp 1 data is in measureit. I did set them up in
measureit as it should, so first a new sensor and then added 3 clamps.
if i look in the sensors database i see the device has id 1 and the clamps 11,
12, 13.
now when ik look at the data_now database i only see clamp 1 realtime data put
in sensor_id 1 row.
Shouldnt there be data in sensor_id 11, 12, 13 ? What script is responsible for
putting the data in the data_now table ?
thanks
Richard
ps
in what file this code is changed ?
========================================
Changed
if r.group(5):
sensor = '2'+r.group(2)
to
if r.group(5):
sensor = int('2'+r.group(2))
===========
Original comment by richardt...@gmail.com
on 10 Aug 2013 at 5:47
The data-input.py file is located at /usr/local/measureit/python
Use the link Thomas posted to get the latest version:
https://measureit.googlecode.com/svn/trunk/measureit_system_files/python/data-in
put.py
Regards,
Steve.
Original comment by wot...@gmail.com
on 10 Aug 2013 at 6:09
it works, thanks !
Original comment by richardt...@gmail.com
on 10 Aug 2013 at 6:20
I have been struggling for weeks to try and get Measureit to show data from the
second and third clamps of three clamps connected to a sensor. So I
immediately installed the new data-input.py file. But unfortunately, it does
not solve the problem completely. There is some improvement, in that I can now
see a graph of data from Clamp 1 on the Clamp 1 tab, but Clamps 2 and 3 are
still invisible. Does anyone have this new file working with three clamps on
a single sensor?
Rod Tucker
Original comment by r...@lamont-tucker.com
on 15 Dec 2013 at 7:12
Solved in version 116 that is available to download
Original comment by lalelu...@gmail.com
on 19 Apr 2014 at 9:06
Original issue reported on code.google.com by
jimmy.ha...@gmail.com
on 13 Jul 2013 at 10:02