Unfortunately once I add curl into the mix nothing happens: pi@weather:~ $ sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 pi@weather:~ $ sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1 &id=24C86E06B15C&mt=tower&sensor=00012694 &humidity=45&tempf=71.7 &baromin=29.28&battery=normal&rssi=3 HTTP/1.1 Host: hubapi.myacurite.com User-Agent: Hub/224 Connection: close GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1 &id=24C86E06B15C&mt=5N1x38&sensor=00002179 &windspeedmph=0&humidity=56 &tempf=69.6 &baromin=29.28&battery=normal&rssi=3 HTTP/1.1 Host: hubapi.myacurite.com User-Agent: Hub/224 Connection: close GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1 &id=24C86E06B15C&mt=tower&sensor=00008384 &humidity=30&tempf=80.2 &baromin=29.28&battery=normal&rssi=2 HTTP/1.1 Host: hubapi.myacurite.com User-Agent: Hub/224 Connection: close GET /weatherstation/updateweatherstation?dateutc=now&action=updateraw&realtime=1 &id=24C86E06B15C&mt=tower&sensor=00012694 &humidity=45&tempf=71.7 &baromin=29.28&battery=normal&rssi=3 HTTP/1.1 Host: hubapi.myacurite.com User-Agent: Hub/224 Connection: close ^C58 packets captured 58 packets received by filter 0 packets dropped by kernel
sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 | ./combine-lines.pl pi@weather:~ $ sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 | ./combine-lines.pl tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00008384&humidity=30&tempf=80.2&baromin=29.28&battery=normal&rssi=2 dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00012694&humidity=45&tempf=71.7&baromin=29.28&battery=normal&rssi=3 dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=0&winddir=23&rainin=0.00&dailyrainin=0.20&humidity=56&tempf=69.6&dewptf=53&baromin=29.28&battery=normal&rssi=3 ID=KCATHOUS110&PASSWORD=XXXXXX&dateutc=now&action=updateraw&realtime=1&rtfreq=36&id=24C86E06B15C&mt=5N1x31&sensor=00002179&windspeedmph=0&winddir=23&rainin=0.00&dailyrainin=0.20&humidity=56&tempf=69.6&dewptf=53&baromin=29.28&battery=normal&rssi=3 dateutc=now&action=updateraw&realtime=1&id=24C86E06B15C&mt=tower&sensor=00008384&humidity=30&tempf=80.2&baromin=29.28&battery=normal&rssi=2 ^C72 packets captured 72 packets received by filter 0 packets dropped by kernel pi@weather:~ $ sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 | ./combine-lines.pl | xargs -n 1 curl http://192.168.1.7:8080 -s -d pi@weather:~ $ sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 | ./combine-lines.pl | xargs -n 1 curl http://192.168.1.7:8080 -s -d tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes syslog Nov 5 17:02:36 weather weewx[769]: interceptor: MainThread: empty queue Nov 5 17:02:46 weather weewx[769]: interceptor: MainThread: empty queue Nov 5 17:02:56 weather weewx[769]: interceptor: MainThread: empty queue Thanks, Brad On Saturday, November 5, 2016 at 4:48:30 PM UTC-7, mwall wrote: > > On Saturday, November 5, 2016 at 7:39:30 PM UTC-4, Brad Tucker wrote: >> >> Here is the latest out put with the new combine.pl. I rebooted the pi as >> I was getting strange outputs as well. Once I reboot this new output was >> looking mighty fine... >> > > use -n5 instead of -n8 as the argument to strings. that will ensure that > the hostnames do not get appended. > > at that point you should be able to connect to the interceptor using curl > and xargs: > > sudo tcpdump -Anpl -s0 -w - -i eth0 dst port 80 | stdbuf -oL strings -n5 | > ./combine-lines.pl | xargs -n 1 curl http://localhost:9999 -s -d > > that is all one line > > 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.