tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytesGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1R&id=24C86E06B15C&mt=tower&sensor=00012694R&humidity=65&tempf=72.8R&baromin=29.35&battery=normal&rssi=3R HTTP/1.1User-Agent: Hub/224RConnection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1]&id=24C86E06B15C&mt=5N1x31&sensor=00002179]&windspeedmph=0&winddir=270]&rainin=0.00&dailyrainin=0.20&humidity=96&tempf=57.2&dewptf=56]&baromin=29.35&battery=normal&rssi=3] HTTP/1.1User-Agent: Hub/224]Connection: closeGET /weatherstation/updateweatherstation.php?ID=KCATHOUS110&PASSWORD=password&dateutc=now&action=updateraw&realtime=1^
&rtfreq=36^&id=24C86E06B15C&mt=5N1x31&sensor=00002179^&windspeedmph=0&winddir=270^&rainin=0.00&dailyrainin=0.20&humidity=96&tempf=57.2&dewptf=56^&baromin=29.35&battery=normal&rssi=3^ HTTP/1.1Connection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1b&id=24C86E06B15C&mt=tower&sensor=00008384b&humidity=48&tempf=81.4b&baromin=29.35&battery=normal&rssi=3b HTTP/1.1User-Agent: Hub/224bConnection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1c&id=24C86E06B15C&mt=tower&sensor=00012694c&humidity=65&tempf=72.8c&baromin=29.35&battery=normal&rssi=3c HTTP/1.1User-Agent: Hub/224cConnection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1{&id=24C86E06B15C&mt=5N1x38&sensor=00002179{&windspeedmph=0&humidity=96{&tempf=56.9{&baromin=29.35&battery=normal&rssi=3{ HTTP/1.1User-Agent: Hub/224{Connection: closeI'll give tcpflow a shot as well.
Any idea why nc only stays alive for a short period?
Thanks!
Brad
Thanks,
B
Thanks for the help!
Brad
..P.....C.&P....0..GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1..P...0.C.&P....p..&id=24C86E06B15C&mt=5N1x38&sensor=00002179..P...Z.C.&P...cl..&windspeedmph=2&humidity=50..P...u.C.&P.......&tempf=71.0..P.....C.&P.......&baromin=29.30&battery=normal&rssi=3..P.....C.&P....... HTTP/1.1..P.....C.&P.......hubapi.myacurite.comdateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=3&humidity=50&humidity=50&tempf=71.5&baromin=29.30&battery=normal&rssi=3{ "success": 1, "checkversion": "126" }Oct 31 13:25:39 weather weewx[15893]: interceptor: ServerThread: POST: dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=3&humidity=50&humidity=50&tempf=71.5&baromin=29.30&battery=normal&rssi=3Oct 31 13:25:39 weather weewx[15893]: interceptor: MainThread: raw data: dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=3&humidity=50&humidity=50&tempf=71.5&baromin=29.30&battery=normal&rssi=3Oct 31 13:25:39 weather weewx[15893]: interceptor: MainThread: ignored parameter realtime=1Oct 31 13:25:39 weather weewx[15893]: interceptor: MainThread: ignored parameter action=updaterawOct 31 13:25:39 weather weewx[15893]: interceptor: MainThread: raw packet: {'sensor_type.00002179.24C86E06B15C': '5N1x38', 'sensor_id.00002179.24C86E06B15C': '00002179', 'temperature.00002179.24C86E06B15C': 71.5, 'dateTime.00002179.24C86E06B15C': 1477945540, 'usUnits.00002179.24C86E06B15C': 1, 'battery.00002179.24C86E06B15C': 0, 'dateTime': 1477945540, 'humidity.00002179.24C86E06B15C': 50.0, 'bridge_id.00002179.24C86E06B15C': '24C86E06B15C', 'barometer.00002179.24C86E06B15C': 29.3, 'rssi.00002179.24C86E06B15C': 0.75, 'windspeed.00002179.24C86E06B15C': 3.0, 'usUnits': 1}Oct 31 13:25:39 weather weewx[15893]: interceptor: MainThread: mapped packet: {'txBatteryStatus': 0, 'outHumidity': 50.0, 'dateTime': 1477945540, 'outTemp': 71.5, 'windSpeed': 3.0, 'rxCheckPercent': 0.75, 'usUnits': 1}Oct 31 13:25:40 weather weewx[15893]: manager: added record 2016-10-31 13:25:00 PDT (1477945500) to database 'weewx.sdb'..P}hNg.MdvP.......GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1..P}hN..MdvP...K...&id=24C86E06B15C&mt=tower&sensor=00008384..P}hN..MdvP.......&humidity=44&tempf=83.8..P}hN..MdvP...U"..&baromin=29.30&battery=normal&rssi=3dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=61&tempf=73.4&baromin=29.30&battery=normal&rssi=3{ "success": 1, "checkversion": "126" }Oct 31 13:25:42 weather weewx[15893]: interceptor: ServerThread: POST: dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=61&tempf=73.4&baromin=29.30&battery=normal&rssi=3Oct 31 13:25:43 weather weewx[15893]: interceptor: MainThread: raw data: dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=61&tempf=73.4&baromin=29.30&battery=normal&rssi=3Oct 31 13:25:43 weather weewx[15893]: interceptor: MainThread: ignored parameter realtime=1Oct 31 13:25:43 weather weewx[15893]: interceptor: MainThread: ignored parameter action=updaterawOct 31 13:25:43 weather weewx[15893]: interceptor: MainThread: raw packet: {'dateTime.00012694.24C86E06B15C': 1477945543, 'sensor_type.00012694.24C86E06B15C': 'tower', 'rssi.00012694.24C86E06B15C': 0.75, 'battery.00012694.24C86E06B15C': 0, 'dateTime': 1477945543, 'bridge_id.00012694.24C86E06B15C': '24C86E06B15C', 'usUnits': 1, 'humidity.00012694.24C86E06B15C': 61.0, 'usUnits.00012694.24C86E06B15C': 1, 'barometer.00012694.24C86E06B15C': 29.3, 'temperature.00012694.24C86E06B15C': 73.4, 'sensor_id.00012694.24C86E06B15C': '00012694'}Oct 31 13:25:43 weather weewx[15893]: interceptor: MainThread: mapped packet: {'txBatteryStatus': 0, 'outHumidity': 61.0, 'dateTime': 1477945543, 'outTemp': 73.4, 'rxCheckPercent': 0.75, 'usUnits': 1}Oct 31 13:25:43 weather weewx[15893]: manager: unable to add record 2016-10-31 13:25:00 PDT (1477945500) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTimeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=2&humidity=50&tempf=70.9&baromin=29.31&battery=normal&rssi=3 HTTP/1.1Host: hubapi.myacurite.comUser-Agent: Hub/224Connection: close
GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00008384&humidity=44&tempf=83.8&baromin=29.31&battery=normal&rssi=3 HTTP/1.1Host: hubapi.myacurite.comUser-Agent: Hub/224Connection: close
GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=63&tempf=73.0&baromin=29.31&battery=normal&rssi=3 HTTP/1.1Host: hubapi.myacurite.comUser-Agent: Hub/224Connection: close3. Why does the Console say ""checkversion": "126" when my bridge is the latest 2.24 firmware?
I also have 2 Tower Sensors attached so I included logs for this incase one of them is conflicting...
I tried to figure out, based on what I have, a mock sensor map. Im sure I have called out some of the values incorrect. would you please take a look and let me know if Im on the right track? If you can point me to more info and the proper syntax of the sensor map in the documentation that might be helpful. Im having a hard time finding it.These are the sensors I have:5n1 (on the roof)TempWind SpeedWind DirectionRainHumidityTower Sensor (Office)TempHumidityTower Sensor (Living Room)TempHumidityBridgeTempHumidityPressure
2. Any idea on why the Barometric Pressure is not logging?
curl -s -d 'dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=2&winddir=158&rainin=0.00&dailyraini&baromin=29.27&battery=normal&rssi=3' http://192.168.1.22:8080
Oct 31 23:01:14 weather weewx[2895]: interceptor: ServerThread: POST: dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=2&winddir=158&rainin=0.00&dailyrainin=0.01&humidity=69&tempf=62.2&dewptf=51&baromin=29.27&battery=normal&rssi=3Oct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: raw data: dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=2&winddir=158&rainin=0.00&dailyrainin=0.01&humidity=69&tempf=62.2&dewptf=51&baromin=29.27&battery=normal&rssi=3Oct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: ignored parameter realtime=1Oct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: unrecognized parameter dewptf=51Oct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: ignored parameter dailyrainin=0.01Oct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: ignored parameter action=updaterawOct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: raw packet: {'sensor_type.00002179.24C86E06B15C': '5N1x31', 'sensor_id.00002179.24C86E06B15C': '00002179', 'winddir.00002179.24C86E06B15C': 158.0, 'temperature.00002179.24C86E06B15C': 62.2, 'rssi.00002179.24C86E06B15C': 0.75, 'usUnits.00002179.24C86E06B15C': 1, 'battery.00002179.24C86E06B15C': 0, 'rainfall.00002179.24C86E06B15C': 0.0, 'dateTime.00002179.24C86E06B15C': 1477980075, 'bridge_id.00002179.24C86E06B15C': '24C86E06B15C', 'barometer.00002179.24C86E06B15C': 29.27, 'dateTime': 1477980075, 'windspeed.00002179.24C86E06B15C': 2.0, 'humidity.00002179.24C86E06B15C': 69.0, 'usUnits': 1}Oct 31 23:01:14 weather weewx[2895]: interceptor: MainThread: mapped packet: {'outHumidity': 69.0, 'rain': 0.0, 'dateTime': 1477980075, 'windDir': 158.0, 'outTemp': 62.2, 'windSpeed': 2.0, 'usUnits': 1}Thanks for the help Mwall.For some reason it is still not mapping the barometer. i have included my sensor map as well as logs.
GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x38&sensor=00002179&windspeedmph=2&humidity=50&tempf=70.9&baromin=29.31&battery=normal&rssi=3 HTTP/1.1User-Agent: Hub/224Connection: close
GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00008384&humidity=44&tempf=83.8&baromin=29.31&battery=normal&rssi=3 HTTP/1.1User-Agent: Hub/224Connection: close
GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=63&tempf=73.0&baromin=29.31&battery=normal&rssi=3 HTTP/1.1User-Agent: Hub/224Connection: close [[sensor_map]] # bridge pressure = pressure..* inTemp = temperature..* inHumidity = humidity..* barometer = barometer.*.*
# 5n1 outTemp = temperature.00002179.* outHumidity = humidity.00002179.* windSpeed = windspeed.00002179.* windDir = winddir.00002179.* rain = rainfall.00002179.*
# living room tower extraTemp1 = temperature.00012694.* extraHumid1 = humidity.00012694.*
# second tower extraTemp2 = temperature.00008384.* extraHumid2 = humidity.00008384.*Hello everyone!
Nov 2 18:48:22 weewx weewx[20752]: interceptor: MainThread: parse failed for dateutc=now&action=updateraw&realtime=1&id=24C86E08150D&mt=5N1x31&sensor=00002701&windspeedmph=0&winddir=68&rainin=0.00&dailyrainin=0.00&humidity=83&tempf=60.0&dewptf=55&baromin=30.34&battery=normal&rssi=3 HTTP/1.1#015&windspeedmph=0&winddir=68&rainin=0.00&dailyrainin=0.00&humidity=83&tempf=60.0&dewptf=55&baromin=30.34&battery=normal&rssi=3 HTTP/1.1#015&humidity=83&tempf=60.0&dewptf=55&baromin=30.34&battery=normal&rssi=3 HTTP/1.1#015&baromin=30.34&battery=normal&rssi=3 HTTP/1.1#015: invalid literal for float(): 3 HTTP/1.1
tcpflow -C -0 -s tcp dst port 80 | ./acurite-lwp.pl
sudo tcpdump -A -n -p -l -i eth0 -s0 -W tcp dst port 80 | stdbuf -oL strings -n8 | stdbuf -oL grep "&" | ./acurite-lwp2.pl
I've been following this thread thanks to Brad letting me know of it. It seems I ran into a snag. It seems the interceptor driver doesn't like the input.
[root@weewx ~]# tcpflow -C -0 -s tcp dst port 80tcpflow: listening on bridge0GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E08150D&mt=5N1x38&sensor=00002701&windspeedmph=0&humidity=86&tempf=58.8&baromin=30.34&battery=normal&rssi=3 HTTP/1.1GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1&id=24C86E08150D&mt=5N1x31&sensor=00002701&windspeedmph=0&winddir=158&rainin=0.00&dailyrainin=0.00&humidity=86&tempf=58.8&dewptf=54&baromin=30.34&battery=normal&rssi=3 HTTP/1.1GET /weatherstation/updateweatherstation.php?ID=KNJNEWJE4&PASSWORD=pat6854&dateutc=now&action=updateraw&realtime=1&rtfreq=36&id=24C86E08150D&mt=5N1x31&sensor=00002701&windspeedmph=0&winddir=158&rainin=0.00&dailyrainin=0.00&humidity=86&tempf=58.8&dewptf=54&baromin=30.34&battery=normal&rssi=3 HTTP/1.1Connection: close
[root@weewx ~]# tcpdump -A -n -p -l -i bridge0 -s0 -W tcp dst port 80 | stdbuf -oL strings -n8 | stdbuf -oL grep "&" | ./acurite-lwp.pltcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on bridge0, link-type EN10MB (Ethernet), capture size 65535 bytes^C42 packets captured42 packets received by filter0 packets dropped by kernelsudo tcpdump -A -n -p -l -i eth0 -s0 -W tcp dst port 80 | stdbuf -oL strings -n8 | stdbuf -oL grep "&"
pi@weather:~ $ sudo tcpdump -A -n -p -l -i eth0 -s0 -W tcp dst port 80 | stdbuf -oL strings -n8 | stdbuf -oL grep "&"tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytesE..xfd..d.=.....4....}.P.. B...cP...D...GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1E..Qfe..d.=.....4....}.P.. ....cP....g..&id=24C86E06B15C&mt=tower&sensor=00012694....4....}.P.. ....cP...OD..&humidity=53&tempf=73.0E..Lfg..d.=.....4....}.P.. ....cP....|..&baromin=29.31&battery=normal&rssi=3E..xfs..d.......4....~.P..0....jP.......GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1E..Qft..d.......4....~.P..0....jP...UH..&id=24C86E06B15C&mt=tower&sensor=00008384E..?fu..d.......4....~.P..1....jP....$..&humidity=37&tempf=82.3E..Lfv..d.......4....~.P..1/...jP..._c..&baromin=29.31&battery=normal&rssi=2E..xf...d.^.....46._...P/.......P...3...GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1E..Rf...d.^.....46._...P/..L....P....5..&id=24C86E06B15C&mt=5N1x38&sensor=00002179E..Cf...d.^.....46._...P/..v....P....6..&windspeedmph=3&humidity=15E..3f...d.^.....46._...P/.......P...Rg..&tempf=78.4E..Lf...d.^.....46._...P/.......P.......&baromin=29.31&battery=normal&rssi=3[root@weewx ~]# tcpdump -A -n -p -l -i bridge0 -s0 -W tcp dst port 80 | stdbuf -oL strings -n8 | stdbuf -oL grep "&"tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on bridge0, link-type EN10MB (Ethernet), capture size 65535 bytesE..4l.@.1..+b..7...*...P.&........9.R...............E..(l.@.1..6b..7...*...P.&...v.PP...3.........E...l.@.1...b..7...*...P.&...v.PP...{4..GET / HTTP/1.0E..4l.@.1..(b..7...*...P.&...v.P.....{.....E..4l.@.1..'b..7...*...P.&...v...."8.......E..4l.@.1..&b..7...*...P.&...v....'........E..4l.@.1..%b..7...*...P.&...v.l..-..C.....E..4l.@.1..$b..7...*...P.&...v.l..-..?.....E..(..@.1.Y.b..7...*...P.&......P.............E..(..@.1.Y.b..7...*...P.&......P.............E..(..@.1.Y.b..7...*...P.&......P.............E..(..@.1.Y.b..7...*...P.&......P.............E..(..@.1.Y.b..7...*...P.&......P.............E.....@.5.&.F,4....*...PX~4..;.......*.....E....&@.5...F,4....*...P..-..X.R.....$.....E..4.&@.5.+.F,4....*...PX~6M.<.w...........f.6.&,.....[.....f.6.&,...........f.6.&-.....5.....^C62 packets captured62 packets received by filter0 packets dropped by kernel
I posted a modified version of the interceptor a few weeks ago, I used the libpcap libraries to sniff the data stream directly (no need to run tcpdump or ngrep or any of that external to the driver. My setup has weewx running directly on the machine that is routing traffic to myacurite.com. This would also work in any of the scenarios where you have a router redirecytSince we aren't running an HTTP server ourselves, the version response becomes a non-issue. The way my system is set up the entire thing actually still operates with myacurite.com and will still receive all firmware updates as they show up.
I posted a modified version of the interceptor a few weeks ago, I used the libpcap libraries to sniff the data stream directly (no need to run tcpdump or ngrep or any of that external to the driver.
Finally got a chance to check out the driver (latest commit 2ad77b7), had to make some changes to get it to run at all.
- I see you had to change from filter to pcap_filter
- The weewx.conf template still references filter
- The standalone version of the program (__main__) does as well
- class SniffServer had references to itself in its init when referencing SniffServer.SNAPLEN, SniffServer.PROMISCUOUS, SniffServer.TIMEOUT_MSEnter code here...
- Changed these to self.SNAPLEN, self.PROMISCUOUS, self.TIMEOUT_MS
- The two logdbg statements in decode_ip_packet are causing problems... some of the values arent strings.
- I had no solution... just commented them out for now.
With those changes it seems to be running great now
def __init__(self, parser, mode='listen',
address=DEFAULT_ADDR, port=DEFAULT_PORT, handler=None,
iface=DEFAULT_IFACE, pcap_filter=DEFAULT_FILTER):
device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
mode=options.mode,
iface=options.iface, filter=options.filter,
address=options.addr, port=options.port)
self._device = self.DEVICE_TYPES.get(self._device_type)(**stn_dict) Filter was an issue because the class Consumer init function uses pcap_filter:
I have setup a bridge running raspberry pi. It is connected as follows:Acurite Bridge -> RaspberyPi WeeWX Bridge -> Internet ConnectionIt is passing packets through the bridge. The bridge has been updating myaccurite & weather underground for hours and all is well with it.I am having problems passing the sniffed data to the weewx driver. I have picked together what I think is a decent script but its not parsing properly.sudo tcpdump -A -n -p -l -i eth0 -s0 -w - tcp dst port 80 | stdbuf -oL strings -n8output:tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytesGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1R&id=24C86E06B15C&mt=tower&sensor=00012694R&humidity=65&tempf=72.8R&baromin=29.35&battery=normal&rssi=3RHTTP/1.1User-Agent: Hub/224RConnection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1]&id=24C86E06B15C&mt=5N1x31&sensor=00002179]&windspeedmph=0&winddir=270]&rainin=0.00&dailyrainin=0.20&humidity=96&tempf=57.2&dewptf=56]&baromin=29.35&battery=normal&rssi=3]HTTP/1.1User-Agent: Hub/224]Connection: closeGET /weatherstation/updateweatherstation.php?ID=KCATHOUS110&PASSWORD=password&dateutc=now&action=updateraw&realtime=1^&rtfreq=36^&id=24C86E06B15C&mt=5N1x31&sensor=00002179^&windspeedmph=0&winddir=270^&rainin=0.00&dailyrainin=0.20&humidity=96&tempf=57.2&dewptf=56^&baromin=29.35&battery=normal&rssi=3^HTTP/1.1Connection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1b&id=24C86E06B15C&mt=tower&sensor=00008384b&humidity=48&tempf=81.4b&baromin=29.35&battery=normal&rssi=3bHTTP/1.1User-Agent: Hub/224bConnection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1c&id=24C86E06B15C&mt=tower&sensor=00012694c&humidity=65&tempf=72.8c&baromin=29.35&battery=normal&rssi=3cHTTP/1.1User-Agent: Hub/224cConnection: closeGET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1{&id=24C86E06B15C&mt=5N1x38&sensor=00002179{&windspeedmph=0&humidity=96{&tempf=56.9{&baromin=29.35&battery=normal&rssi=3{HTTP/1.1
when I run the following through netcat like this:sudo tcpdump -A -n -p -l -i eth0 -s0 -w - tcp dst port 80 | stdbuf -oL strings -n8 | nc 192.168.1.22 8080the process only stays alive for seconds and I get this:tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes19 packets captured19 packets received by filter
0 packets dropped by kernel
and syslog reports this:Oct 30 19:58:57 weather weewx[781]: interceptor: MainThread: empty queueOct 30 19:59:07 weather weewx[781]: interceptor: MainThread: empty queueOct 30 19:59:17 weather weewx[781]: interceptor: MainThread: empty queueOct 30 19:59:27 weather weewx[781]: interceptor: MainThread: empty queueOct 30 19:59:37 weather weewx[781]: interceptor: MainThread: empty queueAfter spending the better part of a day with this Im out of ideas.Please Help!Brad
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
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
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'}
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))
I see you and Matt are already trouble shooting your problems but to answer your question, I believe I am using a new hub. I only bought the unit weeks ago. With that said here is what the bridge reports.
Boot firmware version : 104
Application version : 224
Hope this helps,
Brad
it might be
this is from running it with ./weewxd ../weewx.conf --log-label=weewx-3.6.1
Good luck.
B