To verify that I'm receiving data from the hub I used: sudo PYTHONPATH=/home/weewx/bin python /home/weewx/weewx-interceptor-master/bin/user/interceptor.py --device=acurite-bridge --mode=sniff --iface=eth0 --filter="src 192.168.1.19 and dst port 80" --debug
src = hub dst port = pi Additionally my acurite hub is patched to a managed switch. Rich On Saturday, April 21, 2018 at 3:08:08 PM UTC-4, Lorin Tremblay wrote: > > Hi > > I'm trying to set-up a raspberry pi APRS and Weather Station..... > > Hardware is the following: > Mac Pro as the router (10.0.1.1on en0) > Ambient Weather Station WS-2902 (10.0.1.144 on wlan) > Raspberry PI 3. (10.0.1.20 on wlan0) > > So far everything is installed on the raspberry pi and i'm trying to > capture the data from the PWS.... > > here are some configs: > Weewx config: > > > ############################################################################## > > > > [Simulator] > > # This section is for the weewx weather station simulator > > > > # The time (in seconds) between LOOP packets. > > loop_interval = 2.5 > > > > # The simulator mode can be either 'simulator' or 'generator'. > > # Real-time simulator. Sleep between each LOOP packet. > > mode = simulator > > # Generator. Emit LOOP packets as fast as possible (useful for > testing). > > #mode = generator > > > > # The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the > default > > # is to use the present time. > > #start = 2011-01-01T00:00 > > > > # The driver to use: > > driver = weewx.drivers.simulator > > > > > ############################################################################## > > > > [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 = observer > > mode = sniff > > iface = wlan0 > > pcap_filter = src 10.0.1.144 and dst port 5571 > > > > > ############################################################################## > > > > I have run a tcpdump on the server and established that it works... here > is what I ran and the results. > > sudo tcpdump -i en0 src 10.0.1.144 > ~/Desktop/test > > here are the partial result of this dump: > > > 14:58:35.766179 IP 10.0.1.144.bre > 10.0.1.1.domain: 59991+ A? > rtupdate.wunderground.com. (43) > > 14:58:35.993921 IP 10.0.1.144.17325 > > ec2-52-25-21-79.us-west-2.compute.amazonaws.com.http: Flags [P.], seq > 429532811:429533334, ack 2695086611, win 5840, length 523: HTTP: GET > /weatherstation/updateweatherstation.php?ID=********&PASSWORD=********&indoortempf=73.0&tempf=51.1&dewptf=22.3&windchillf=51.1&indoorhumidity=33&humidity=32&windspeedmph=8.7&windgustmph=11.4&winddir=252&absbaromin=30.21&baromin=30.04&rainin=0.00&dailyrainin=0.00&weeklyrainin=0.00&monthlyrainin=0.00&yearlyrainin=-9999&solarradiation=696.21&UV=7&dateutc=2018-4-21%2018:58:31&softwaretype=AMBWeatherV3.0.3&action=updateraw&realtime=1&rtfreq=5 > > HTTP/1.0 > > 14:58:36.300327 IP 10.0.1.144.17325 > > ec2-52-25-21-79.us-west-2.compute.amazonaws.com.http: Flags [F.], seq 523, > ack 109, win 5732, length 0 > > 14:58:37.219037 IP 10.0.1.144.17325 > > ec2-52-25-21-79.us-west-2.compute.amazonaws.com.http: Flags [.], ack 110, > win 5731, length 0 > > 14:58:39.266122 IP 10.0.1.144.bre > 10.0.1.1.domain: 17419+ A? > api.weathercloud.net. (38) > > 14:58:40.139191 IP 10.0.1.144.bre > 10.0.1.1.domain: 49211+ A? > rtupdate.wunderground.com. (43) > > > so for me that proves that the tcpdump capture works. > > > Now when i run the this code: sudo tcpdump -i en0 src 10.0.1.144 | nc > 10.0.1.120 5571 I'm not sure that it reaches the raspberry PI on the other > end. > > > I ran a tcpdump on the raspberryPI and havent seen any packet that > resembles what was captured on the server, do you guys have any clue? > > > > > -- 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.
