i don't send to WU and thought that maybe something in the http get might
be messing it up so was running tcpflow because of this in the stack trace
logdbg("SNIFF: %s" % _obfuscate_passwords(data))
On Saturday, November 12, 2016 at 8:11:44 AM UTC-6, Radar wrote:
>
> this is the part of the config file
>
> [Interceptor]
> # This section is for the network traffic interceptor driver.
>
> # The driver to use:
> driver = user.interceptor
>
> # Specify the hardware device to capture. Options include:
> # acurite-bridge - acurite internet bridge
> # observer - fine offset WH2600/HP1000/HP1003, aka 'observer'
> # lw30x - oregon scientific LW301/LW302
> # lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
> device_type = acurite-bridge
> # listen
> #mode = listen
> #port = 9999
> #address = 192.168.1.6
>
> # mode sniff
> mode = sniff
> iface = p5p1
> pcap_filter = "src 192.168.2.14 and dst port 80"
>
> [[sensor_map]]
> # smarthub
> barometer = barometer.*.*
> # 5n1 on grage
> outTemp = temperature.00002273.*
> outHumidity = humidity.00002273.*
> windSpeed = windspeed.00002273.*
> windDir = winddir.00002273.*
> rain = rainfall.00002273.*
> txBatteryStatus = battery.00002273.*
> rxCheckPercent = rssi.00002273.*
> # 5n1 on fence
> extraTemp1 = temperature.00002094.*
> extraHumid1 = humidity.00002094.*
> hail = rainfall.00002094.*
> extrawindSpeed = windspeed.00002094.*
> extrawindDir = winddir.00002094.*
> #BatteryStatus1 = battery.00002094.*
> windBatteryStatus = battery.00002094.*
> rssi1 = rssi.00002094.*
> # tower main floor
> inTemp = temperature.00009909.*
> inHumidity = humidity.00009909.*
> inTempBatteryStatus = battery.00009909.*
> # tower
> extraTemp2 = temperature.00009686.*
> extraHumid2 = humidity.00009686.*
> BatteryStatus2 = battery.00009686.*
> rssi2 = rssi.00009686.*
> # tower
> extraTemp3 = temperature.00007411.*
> extraHumid3 = humidity.00007411.*
> BatteryStatus3 = battery.00007411.*
> rssi3 = rssi.00007411.*
> # humidity not working
> extraTemp4 = temperature.00000882.*
> extraHumid4 = humidity.00000882.*
> BatteryStatus4 = battery.00000882.*
> rssi4 = rssi.00000882.*
> # tower
> extraTemp5 = temperature.00006045.*
> extraHumid5 = humidity.00006045.*
> BatteryStatus5 = battery.00006045.*
> rssi5 = rssi.00006045.*
> # rain gauge
> extrarain = rainfall.00011488.*
> #BatteryStatus6 = battery.00011488.*
> rainBatteryStatus = battery.00011488.*
> rssi6 = rssi.00011488.*
> # old tower
> extraTemp8 = temperature.00001626.*
> extraHumid8 = humidity.00001626.*
> BatteryStatus8 = battery.00001626.*
> rssi8 = rssi.00001626.*
> # ProIn water decetor
> extraTemp9 = temperature.00005179.*
> extraHumid9 = humidity.00005179.*
> BatteryStatus9 = battery.00005179.*
> rssi9 = rssi.00005179.*
> probe9 = probe.00005179.*
> check9 = check.00005179.*
> water9 = water.00005179.*
> probeTemp9 = ptempf.00005179.*
> probehumid9 = phumidity.00005179.*
> # ProOut soil and liquid temp
> extraTemp10 = temperature.00003896.*
> extraHumid10 = humidity.00003896.*
> BatteryStatus10 = battery.00003896.*
> rssi10 = rssi.00003896.*
> probe10 = probe.00003896.*
> check10 = check.00003896.*
> water10 = water.00003896.*
> probeTemp10 = ptempf.00003896.*
> probehumid10 = phumidity.00003896.*
>
>
> On Saturday, November 12, 2016 at 8:08:24 AM UTC-6, Radar wrote:
>>
>> here is it running by its self using
>> PYTHONPATH=. python user/interceptor.py --debug --mode=sniff --iface=p5p1
>> --filter="src host 192.168.2.14 && dst port 80" --device=acurite-bridge
>>
>> raw data:
>> dateutc=now&action=updateraw&realtime=1&id=24C86E01765D&mt=tower&sensor=00007411&humidity=51&tempf=52.1&baromin=28.67&battery=normal&rssi=2
>> raw packet: {'usUnits.00007411.24C86E01765D': 1,
>> 'barometer.00007411.24C86E01765D': 28.67,
>> 'temperature.00007411.24C86E01765D': 52.1,
>> 'bridge_id.00007411.24C86E01765D': '24C86E01765D',
>> 'humidity.00007411.24C86E01765D': 51.0, 'dateTime': 1478958489,
>> 'rssi.00007411.24C86E01765D': 50.0, 'sensor_id.00007411.24C86E01765D':
>> '00007411', 'battery.00007411.24C86E01765D': 0,
>> 'dateTime.00007411.24C86E01765D': 1478958489,
>> 'sensor_type.00007411.24C86E01765D': 'tower', 'usUnits': 1}
>> mapped packet: {'barometer': 28.67, 'txBatteryStatus': 0, 'outHumidity':
>> 51.0, 'dateTime': 1478958489, 'outTemp': 52.1, 'rxCheckPercent': 50.0,
>> 'usUnits': 1}
>> identifiers: {'bridge_id': '24C86E01765D', 'sensor_type': 'tower',
>> 'sensor_id': '00006045'}
>> raw data:
>> dateutc=now&action=updateraw&realtime=1&id=24C86E01765D&mt=tower&sensor=00006045&humidity=56&tempf=41.3&baromin=28.67&battery=normal&rssi=3
>> raw packet: {'humidity.00006045.24C86E01765D': 56.0,
>> 'barometer.00006045.24C86E01765D': 28.67, 'usUnits.00006045.24C86E01765D':
>> 1, 'dateTime': 1478958494, 'sensor_type.00006045.24C86E01765D': 'tower',
>> 'sensor_id.00006045.24C86E01765D': '00006045',
>> 'battery.00006045.24C86E01765D': 0, 'temperature.00006045.24C86E01765D':
>> 41.3, 'bridge_id.00006045.24C86E01765D': '24C86E01765D',
>> 'dateTime.00006045.24C86E01765D': 1478958494, 'usUnits': 1,
>> 'rssi.00006045.24C86E01765D': 75.0}
>> mapped packet: {'barometer': 28.67, 'txBatteryStatus': 0, 'outHumidity':
>> 56.0, 'dateTime': 1478958494, 'outTemp': 41.3, 'rxCheckPercent': 75.0,
>> 'usUnits': 1}
>> Exception in thread ServerThread:
>> Traceback (most recent call last):
>> File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
>> self.run()
>> File "/usr/lib64/python2.7/threading.py", line 764, in run
>> self.__target(*self.__args, **self.__kwargs)
>> File "user/interceptor.py", line 238, in run_server
>> self._server.run()
>> File "user/interceptor.py", line 275, in run
>> self.packet_sniffer.dispatch(1, self.decode_ip_packet)
>> File "/usr/lib64/python2.7/site-packages/pcap.py", line 95, in dispatch
>> def dispatch(*args): return _pcap.pcapObject_dispatch(*args)
>> File "user/interceptor.py", line 297, in decode_ip_packet
>> logdbg("SNIFF: %s" % _obfuscate_passwords(data))
>> File "user/interceptor.py", line 184, in logdbg
>> logmsg(syslog.LOG_DEBUG, msg)
>> File "user/interceptor.py", line 181, in logmsg
>> (threading.currentThread().getName(), msg))
>> TypeError: [priority,] message string
>> On Saturday, November 12, 2016 at 8:02:08 AM UTC-6, mwall wrote:
>>>
>>> On Saturday, November 12, 2016 at 8:52:20 AM UTC-5, Radar wrote:
>>>>
>>>> can i ask if you are using a new bridge/smarthub or one you updated
>>>> the reason is i use a old bridge i upgraded the firmware on when i use
>>>> the interceptor 0.15 driver in sniff mode and it dies after some time
>>>>
>>>> and tcpflow put out data that looks like this this could just be how
>>>> tcpflow printed the data too
>>>> {"localtime":"06:56:13","checkversion":"224"}GET
>>>> /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1GET
>>>>
>>>> /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1GET
>>>>
>>>> /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E01765D&mt=tower&sensor=00009686&humidity=43&tempf=57.9&baromin=28.67&battery=normal&rssi=3
>>>>
>>>> HTTP/1.1
>>>>>
>>>>>
>>>>>
>>> radar,
>>>
>>> how does it die? please post the exception stack.
>>>
>>> you do not need tcpflow when running in sniff mode.
>>>
>>> m
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.