Ambient Weather WS-2902 reporting troubles with the interceptor extension

847 views
Skip to first unread message

Jim Woodruff

unread,
Mar 17, 2018, 1:27:17 PM3/17/18
to weewx-user

I am using the interceptor extension for my Ambient Weather WS-2902. Data sent to wunderground, ambientweather.net, and weathercloud are the same as on my console. The data sent through weewx is way off. I.E., temperature is off by 12 degrees.


I installed weewx in the simulator mode. Here is the relevant sections in my weewx.conf


##############################################################################


[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 = eth1

# pcap_filter = src 192.168.0.25 and dst port 80 (Note: this the IP of my console – but don’t see anything with tcpdump)



Here is the uploading section from my syslog file:


Mar 17 10:05:15 freyr weewx[23744]: manager: Added record 2018-03-17 10:05:16 PDT (1521306316) to database 'cmon.sdb'

Mar 17 10:05:15 freyr weewx[23744]: manager: Added record 2018-03-17 10:05:16 PDT (1521306316) to daily summary in 'cmon.sdb'

Mar 17 10:05:15 freyr weewx[23744]: manager: Added record 2018-03-17 10:05:00 PDT (1521306300) to database 'weewx.sdb'

Mar 17 10:05:15 freyr weewx[23744]: manager: Added record 2018-03-17 10:05:00 PDT (1521306300) to daily summary in 'weewx.sdb'

Mar 17 10:05:16 freyr weewx[23744]: forecast: NWSThread: NWS: downloading forecast from 'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=PQR'

Mar 17 10:05:16 freyr weewx[23744]: restx: PWSWeather: Published record 2018-03-17 10:05:00 PDT (1521306300)

Mar 17 10:05:16 freyr weewx[23744]: forecast: NWSThread: NWS: no PFM found for MIWO3 in forecast from PQR

Mar 17 10:05:16 freyr weewx[23744]: restx: AWEKAS: Published record 2018-03-17 10:05:00 PDT (1521306300)

Mar 17 10:05:16 freyr weewx[23744]: restx: CWOP: Published record 2018-03-17 10:05:00 PDT (1521306300)

Mar 17 10:05:16 freyr weewx[23744]: restx: WeatherBug: Published record 2018-03-17 10:05:00 PDT (1521306300)

Mar 17 10:05:16 freyr weewx[23744]: cheetahgenerator: Generated 14 files for report StandardReport in 0.82 seconds

Mar 17 10:05:17 freyr weewx[23744]: imagegenerator: Generated 16 images for StandardReport in 0.49 seconds

Mar 17 10:05:17 freyr weewx[23744]: copygenerator: copied 0 files to /var/www/weewx

Mar 17 10:05:17 freyr weewx[23744]: cheetahgenerator: Generated 1 files for report cmon in 0.01 seconds

Mar 17 10:05:22 freyr weewx[23744]: imagegenerator: Generated 32 images for cmon in 4.98 seconds

Mar 17 10:05:31 freyr weewx[23744]: cheetahgenerator: Generated 10 files for report forecast in 9.00 seconds

Mar 17 10:05:31 freyr weewx[23744]: copygenerator: copied 0 files to /var/www/weewx/forecast


and here is output from tcpdump (tcpdump -vvv -i eth1 src 192.168.0.5 and port 80):


09:20:16.112303 IP (tos 0x0, ttl 64, id 47369, offset 0, flags [DF], proto TCP (6), length 60)

freyr.asgard.33494 > a23-194-100-92.deploy.static.akamaitechnologies.com.http: Flags [S], cksum 0x60a9 (correct), seq 232509794, win 29200, options [mss 1460,sackOK,TS val 4259239991 ecr 0,nop,wscale 7], length 0

09:20:16.127521 IP (tos 0x0, ttl 64, id 16817, offset 0, flags [DF], proto TCP (6), length 60)

freyr.asgard.59422 > ip165.kremstalnet.at.http: Flags [S], cksum 0x75c4 (correct), seq 2754030047, win 29200, options [mss 1460,sackOK,TS val 1353633783 ecr 0,nop,wscale 7], length 0

09:20:16.137197 IP (tos 0x0, ttl 64, id 47370, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.33494 > a23-194-100-92.deploy.static.akamaitechnologies.com.http: Flags [.], cksum 0xa3e5 (correct), seq 232509795, ack 1145923412, win 229, options [nop,nop,TS val 4259240016 ecr 244163171], length 0

09:20:16.140364 IP (tos 0x0, ttl 64, id 40069, offset 0, flags [DF], proto TCP (6), length 60)

freyr.asgard.41310 > ec2-52-73-22-124.compute-1.amazonaws.com.http: Flags [S], cksum 0x8565 (correct), seq 2192307447, win 29200, options [mss 1460,sackOK,TS val 259923016 ecr 0,nop,wscale 7], length 0

09:20:16.140437 IP (tos 0x0, ttl 64, id 47371, offset 0, flags [DF], proto TCP (6), length 231)

freyr.asgard.33494 > a23-194-100-92.deploy.static.akamaitechnologies.com.http: Flags [P.], cksum 0x10d1 (correct), seq 0:179, ack 1, win 229, options [nop,nop,TS val 4259240019 ecr 244163171], length 179: HTTP, length: 179

GET /product.php?site=NWS&product=PFM&format=txt&issuedby=PQR HTTP/1.1

Accept-Encoding: identity

Host: forecast.weather.gov

Connection: close

User-Agent: Python-urllib/2.7

09:20:16.140508 IP (tos 0x0, ttl 64, id 30599, offset 0, flags [DF], proto TCP (6), length 60)

freyr.asgard.52722 > ec2-107-23-220-109.compute-1.amazonaws.com.http: Flags [S], cksum 0xcd8a (correct), seq 871833589, win 29200, options [mss 1460,sackOK,TS val 2759997825 ecr 0,nop,wscale 7], length 0

09:20:16.166457 IP (tos 0x0, ttl 64, id 47372, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.33494 > a23-194-100-92.deploy.static.akamaitechnologies.com.http: Flags [.], cksum 0xa20c (correct), seq 179, ack 228, win 237, options [nop,nop,TS val 4259240045 ecr 244163201], length 0

09:20:16.166971 IP (tos 0x0, ttl 64, id 47373, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.33494 > a23-194-100-92.deploy.static.akamaitechnologies.com.http: Flags [F.], cksum 0xa20b (correct), seq 179, ack 228, win 237, options [nop,nop,TS val 4259240045 ecr 244163201], length 0

09:20:16.167302 IP (tos 0x0, ttl 64, id 47374, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.33494 > a23-194-100-92.deploy.static.akamaitechnologies.com.http: Flags [.], cksum 0xa209 (correct), seq 180, ack 229, win 237, options [nop,nop,TS val 4259240046 ecr 244163201], length 0

09:20:16.233472 IP (tos 0x0, ttl 64, id 40070, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.41310 > ec2-52-73-22-124.compute-1.amazonaws.com.http: Flags [.], cksum 0x6291 (correct), seq 2192307448, ack 3314839672, win 229, options [nop,nop,TS val 259923109 ecr 1574055551], length 0

09:20:16.233530 IP (tos 0x0, ttl 64, id 40071, offset 0, flags [DF], proto TCP (6), length 452)

freyr.asgard.41310 > ec2-52-73-22-124.compute-1.amazonaws.com.http: Flags [P.], cksum 0x9040 (correct), seq 0:400, ack 1, win 229, options [nop,nop,TS val 259923109 ecr 1574055551], length 400: HTTP, length: 400

GET /pwsupdate/pwsupdate.php?action=updateraw&ID=KORMILWA6&PASSWORD=active75&softwaretype=weewx-3.8.0&baromin=31.089&dewptf=25.0&humidity=080&dateutc=2018-03-17%2016%3A20%3A00&UV=8.06&solarradiation=575.88&dailyrainin=0.02&winddir=358&tempf=30.5&windspeedmph=0.1&windgustmph=0.1&rainin=0.00 HTTP/1.1

Accept-Encoding: identity

Host: www.pwsweather.com

Connection: close

User-Agent: weewx/3.8.0

09:20:16.234843 IP (tos 0x0, ttl 64, id 30600, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.52722 > ec2-107-23-220-109.compute-1.amazonaws.com.http: Flags [.], cksum 0x0d94 (correct), seq 871833590, ack 4004644241, win 229, options [nop,nop,TS val 2759997919 ecr 149512787], length 0

09:20:16.235004 IP (tos 0x0, ttl 64, id 30601, offset 0, flags [DF], proto TCP (6), length 514)

freyr.asgard.52722 > ec2-107-23-220-109.compute-1.amazonaws.com.http: Flags [P.], cksum 0x0665 (correct), seq 0:462, ack 1, win 229, options [nop,nop,TS val 2759997920 ecr 149512787], length 462: HTTP, length: 462

GET /data/livedata.aspx?dateutc=2018-03-17+16%3A20%3A00&solarradiation=575.9&softwaretype=weewx_3.8.0&tempfhi=53.9&windspeedmph=0.1&baromin=31.089&UV=8&tempflo=30.5&rainin=0.00&windgustmph=0.1&dailyRainin=0.02&winddir=358&dewptf=25.0&tempf=30.5&Num=20717&Key=active75&Yearlyrainin=103.61&action=live&humidity=

80&ID=p09121&monthlyrainin=91.33 HTTP/1.1

Accept-Encoding: identity

Host: data.backyard2.weatherbug.com

Connection: close

User-Agent: weewx/3.8.0

09:20:16.322698 IP (tos 0x0, ttl 64, id 16818, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.59422 > ip165.kremstalnet.at.http: Flags [.], cksum 0xae32 (correct), seq 2754030048, ack 2758269565, win 229, options [nop,nop,TS val 1353633978 ecr 1258790089], length 0

09:20:16.322957 IP (tos 0x0, ttl 64, id 16819, offset 0, flags [DF], proto TCP (6), length 343)

freyr.asgard.59422 > ip165.kremstalnet.at.http: Flags [P.], cksum 0xdb81 (correct), seq 0:291, ack 1, win 229, options [nop,nop,TS val 1353633978 ecr 1258790089], length 291: HTTP, length: 291

GET /eingabe_pruefung.php?val=jawoodruff;025080a30e83aac73394c2f257549880;17.03.2018;16:20;-0.8;80;1052.802;0.60;0.1;358;;;;de;;0.1;575.88;8.06;;;;0.00;weewx_3.8.0;-122.605295;45.450916 HTTP/1.1

Accept-Encoding: identity

Host: data.awekas.at

Connection: close

User-Agent: weewx/3.8.0

09:20:16.330937 IP (tos 0x0, ttl 64, id 40072, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.41310 > ec2-52-73-22-124.compute-1.amazonaws.com.http: Flags [.], cksum 0x5f3b (correct), seq 400, ack 326, win 237, options [nop,nop,TS val 259923206 ecr 1574055575], length 0

09:20:16.331306 IP (tos 0x0, ttl 64, id 40073, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.41310 > ec2-52-73-22-124.compute-1.amazonaws.com.http: Flags [F.], cksum 0x5f38 (correct), seq 400, ack 327, win 237, options [nop,nop,TS val 259923207 ecr 1574055575], length 0

09:20:16.526397 IP (tos 0x0, ttl 64, id 16820, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.59422 > ip165.kremstalnet.at.http: Flags [.], cksum 0xab49 (correct), seq 291, ack 192, win 237, options [nop,nop,TS val 1353634182 ecr 1258790140], length 0

09:20:16.568030 IP (tos 0x0, ttl 64, id 16821, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.59422 > ip165.kremstalnet.at.http: Flags [.], cksum 0xab1d (correct), seq 291, ack 193, win 237, options [nop,nop,TS val 1353634224 ecr 1258790141], length 0

09:20:16.616029 IP (tos 0x0, ttl 64, id 30602, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.52722 > ec2-107-23-220-109.compute-1.amazonaws.com.http: Flags [.], cksum 0x0909 (correct), seq 462, ack 278, win 237, options [nop,nop,TS val 2759998301 ecr 149512821], length 0

09:20:16.664378 IP (tos 0x0, ttl 64, id 30603, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.52722 > ec2-107-23-220-109.compute-1.amazonaws.com.http: Flags [F.], cksum 0x08d8 (correct), seq 462, ack 278, win 237, options [nop,nop,TS val 2759998349 ecr 149512821], length 0

09:20:16.664709 IP (tos 0x0, ttl 64, id 16822, offset 0, flags [DF], proto TCP (6), length 52)

freyr.asgard.59422 > ip165.kremstalnet.at.http: Flags [F.], cksum 0xaabc (correct), seq 291, ack 193, win 237, options [nop,nop,TS val 1353634320 ecr 1258790141], length 0


FYI, I have stopped apache2.


Any suggestions?


Jim Woodruff

unread,
Mar 17, 2018, 6:06:56 PM3/17/18
to weewx-user
Hold on, there might not be a problem. After approximately 5 hours the readings are edging closer to reality. I've made no changes. Doesn't make any sense to me.

jan hallink

unread,
Mar 17, 2018, 6:50:32 PM3/17/18
to weewx-user
Also it could be that your weewx is still using simulated weatherdata instead of your ws 2902 data.

What I see in the interceptor section of your config file that you must remove the last three # symbols to activate those lines.

Andrew Milner

unread,
Mar 18, 2018, 6:29:29 AM3/18/18
to weewx-user
What station type is specified in the [station] section of weewx.conf?  It should be set to Interceptor

also the Interceptor stanza header is missing a closing bracket-
[Interceptor]

together with the commented out lines which should probably not be commented out (as already mentioned)

Jim Woodruff

unread,
Mar 18, 2018, 11:40:40 AM3/18/18
to weewx-user
from my weewx.conf:

    # Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    station_type = Interceptor

I have run weewx with the sniff mode lines uncommitted but I don't receive any weather data. The IP 192.168.0.25 is my WS-2902 console. Running tcpdump on this src comes up blank.

Andrew Milner

unread,
Mar 18, 2018, 12:13:43 PM3/18/18
to weewx-user
Have you corrected the typos (closing bracket and #'s) associated with the Interceptor stanza which I mentioned in last post??

Jim Woodruff

unread,
Mar 18, 2018, 4:27:45 PM3/18/18
to weewx-user
Yes, I added the closing bracket. I had the lines commented out as I was trying the "listen" mode.

jan hallink

unread,
Mar 19, 2018, 2:15:17 PM3/19/18
to weewx-user
I think I had the same problem: my weewx couldn't read the station data from my ventus w830 (simular to ws2902).
But after I added ip tables in my router, the data is routed to my weewx ip adress and still also to Weather Underground.
Interceptor driver now reads the data into weewx without problems.


Jim Woodruff

unread,
Mar 21, 2018, 10:55:13 AM3/21/18
to weewx-user
Thanks for the tip. I have iptables configured as a module, but running iptables - L it isn't seeing any packets. looks like I have work to do.

Ian Millard

unread,
Mar 22, 2018, 5:24:52 PM3/22/18
to weewx-user
Also try using the HP1000 extension rather than the interceptor. I have found it much more reliable and easier to setup.

Jim Woodruff

unread,
Mar 23, 2018, 11:00:51 AM3/23/18
to weewx-user


On Thursday, March 22, 2018 at 2:24:52 PM UTC-7, Ian Millard wrote:
Also try using the HP1000 extension rather than the interceptor. I have found it much more reliable and easier to setup.

I changed the extension from interceptor to hp1000. Still not working. This is from my syslog:
Mar 23 07:26:56 freyr weewx[14907]: engine: Initializing weewx version 3.8.0
Mar 23 07:26:56 freyr weewx[14907]: engine: Using Python 2.7.14+ (default, Mar 13 2018, 15:23:44) #012[GCC 7.3.0]
Mar 23 07:26:56 freyr weewx[14907]: engine: Platform Linux-4.15.12-x86_64-with-debian-buster-sid
Mar 23 07:26:56 freyr weewx[14907]: engine: Locale is 'en_US.UTF-8'
Mar 23 07:26:56 freyr weewx[14907]: engine: pid file is /var/run/weewx.pid
Mar 23 07:26:56 freyr weewx[14911]: engine: Using configuration file /etc/weewx/weewx.conf
Mar 23 07:26:56 freyr weewx[14911]: engine: Loading station type HP1000 (user.HP1000)
Mar 23 07:26:56 freyr weewx[14911]: HP1000: HP1000 Starting
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Using "netifaces" to determine broadcast mask
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Address Mask = 192.168.0.255
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Retry count = 5.000000
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Socket timeout = 5.000000
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Loop delay = 15.000000
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Retry Wait = 5.000000
Mar 23 07:26:56 freyr weewx[14911]: HP1000: Max Retry = 3.000000
Mar 23 07:26:56 freyr weewx[14911]: engine: StdConvert target unit is 0x1
Mar 23 07:26:56 freyr weewx[14911]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Mar 23 07:26:56 freyr weewx[14911]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Mar 23 07:26:56 freyr weewx[14911]: cmon: service version is 0.16
Mar 23 07:26:56 freyr weewx[14911]: cmon: sysinfo: Linux freyr.asgard 4.15.12 #1 SMP Wed Mar 21 17:38:18 PDT 2018 x86_64
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: cpu cores: 2
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: bogomips: 5969.97
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: core id: 1
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: apicid: 1
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: fpu_exception: yes
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: stepping: 3
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: cache_alignment: 64
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: clflush size: 64
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: cache size: 1024 KB
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: cpuid level: 1
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: fpu: yes
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: model name: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: siblings: 2
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: physical id: 0
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: address sizes: 40 bits physical, 48 bits virtual
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: cpu family: 15
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: vendor_id: AuthenticAMD
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: TLB size: 1024 4K pages
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: wp: yes
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: power management: ts fid vid ttp tm stc
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: bugs: fxsave_leak sysret_ss_attrs null_seg swapgs_fence amd_e400 spectre_v1 spectre_v2
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl cpuid extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch vmmcall
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: cpu MHz: 2984.934
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: model: 67
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: processor: 1
Mar 23 07:26:56 freyr weewx[14911]: cmon: cpuinfo: initial apicid: 1
Mar 23 07:26:56 freyr weewx[14911]: engine: Archive will use data binding wx_binding
Mar 23 07:26:56 freyr weewx[14911]: engine: Record generation will be attempted in 'software'
Mar 23 07:26:56 freyr weewx[14911]: engine: Using archive interval of 300 seconds (specified in weewx configuration)
Mar 23 07:26:56 freyr weewx[14911]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Mar 23 07:26:56 freyr weewx[14911]: manager: Starting backfill of daily summaries
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: Zambretti: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: Zambretti: interval=600 max_age=604800 winddir_period=1800 pressure_period=10800 hemisphere=NORTH lower_pressure=950.0 upper_pressure=1050.0
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: WU: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: WU: interval=10800 max_age=604800 api_key=XXXXXXXXXXXX7443 location=45.450916,-122.605295 fc=hourly10day
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: NWS: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: NWS: interval=10800 max_age=604800 lid=MIWO3 foid=PQR
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: XTide: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: XTide: interval=1209600 max_age=2419200 location='Garibaldi' duration=2419200
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: OWM: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: OWM: interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXebfb location=45.450916,-122.605295 fc=5day3hour
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: UKMO: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: UKMO: API key (api_key) is not specified
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: UKMO: location is not specified
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: UKMO: forecast will not be run
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: Aeris: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: Aeris: client identifier (client_id) is not specified
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: Aeris: client secret (client_secret) is not specified
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: Aeris: forecast will not be run
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: WWO: forecast version 3.2.17
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: WWO: API key (api_key) is not specified
Mar 23 07:26:57 freyr weewx[14911]: forecast: MainThread: WWO: forecast will not be run
Mar 23 07:26:57 freyr weewx[14911]: restx: StationRegistry: Station will be registered.
Mar 23 07:26:57 freyr weewx[14911]: restx: Wunderground: No config info. Skipped.
Mar 23 07:26:57 freyr weewx[14911]: restx: PWSWeather: Data for station KORMILWA6 will be posted
Mar 23 07:26:57 freyr weewx[14911]: restx: CWOP: Data for station DW6016 will be posted
Mar 23 07:26:57 freyr weewx[14911]: restx: WOW: Data for station 180966029 will be posted
Mar 23 07:26:57 freyr weewx[14911]: restx: AWEKAS: Data will be uploaded for user jawoodruff
Mar 23 07:26:57 freyr weewx[14911]: restx: WeatherBug: service version is 0.6
Mar 23 07:26:57 freyr weewx[14911]: restx: WeatherBug: Data will be uploaded for station_number=20717 publisher_id=p09121
Mar 23 07:26:57 freyr weewx[14911]: engine: Starting up weewx version 3.8.0
Mar 23 07:27:22 freyr weewx[14911]: HP1000: Timed out too many times
Mar 23 07:27:47 freyr weewx[14911]: HP1000: Timed out too many times
Mar 23 07:28:12 freyr weewx[14911]: HP1000: Timed out too many times
Mar 23 07:28:37 freyr weewx[14911]: HP1000: Timed out too many times
Mar 23 07:29:02 freyr weewx[14911]: HP1000: Timed out too many times
Mar 23 07:29:27 freyr weewx[14911]: HP1000: Timed out too many times
Mar 23 07:29:52 freyr weewx[14911]: HP1000: Timed out too many times


 

Ian Millard

unread,
Mar 23, 2018, 12:47:56 PM3/23/18
to weewx-user
Ok.
We know that the console is transmitting via your router to WU et al with no problem so that maybe narrows it down to your PC.
Do you know the IP address of your console and which port it is operating on? Mine operates on port 49154 but it might be different for you. If so try disabling IP Tables completely and then restart WeeWX and your console. If you get a connection with the HP1000 driver you may need to open up the appropriate port to allow connections to and from your console. I use UFW to do this as it makes the selection of devices and ports much more easy. I have also seen suggestions that ports 6500 and 6000 should also be open although that has no effect either way on my rig.

Hope this might help to get your further along the road.

Ian

Jim Woodruff

unread,
Mar 23, 2018, 2:35:32 PM3/23/18
to weewx-user
My console ip address is 192.168.0.25 and the port is 34642 according to my NAT table. I just installed ufw, but am not familiar with it yet. Thanks for the info. I'll try it.

Jim Woodruff

unread,
Mar 23, 2018, 2:42:47 PM3/23/18
to weewx-user
I'm wrong about the port address. According to my NAT table, I have more than one instance of my console IP address and the port number keeps changing. I'm delving into new territory here.

Jim

jan hallink

unread,
Mar 27, 2018, 3:15:04 PM3/27/18
to weewx-user
If you want to try fixing it with ip tables in your router, these are my rules in my router:

iptables -t mangle -A PREROUTING  -s 192.168.179.52 -j ROUTE --tee --gw 192.168.179.118

iptables -t mangle -A POSTROUTING -d 192.168.179.52 -j ROUTE --tee --gw 192.168.179.118


The first IP is my weatherstation, the second IP is the raspberry pi with weewx 


I have also added my weewx.conf 


Maybe this helps you 

putty weewx log bewerkt.txt

Jim Woodruff

unread,
Mar 30, 2018, 7:16:42 PM3/30/18
to weewx-user
Thanks for the info. My weewx.conf is set up like yours. I tried adding those two rules to my iptables but received:
 iptables v1.6.2: unknown option "--tee" in response. In looking at iptables --help I don't see the gw option either.

One question -- Do you replace your iptables.test.rules with these two lines or are they an addition?
I'm attaching a copy of my iptables.test.rules file
iptables.test.rules

jan hallink

unread,
Mar 31, 2018, 11:30:38 AM3/31/18
to weewx-user


I don't know which router you have, but I have a Asus rt-n66u
This router have a possibility of command line access (telnet or ssh)

What I did is the following:
enable SSH in my router
connect with putty (or other ssh client) to my router
type the 2 iptable rules

after that, interceptor driver could read the data

Jim Woodruff

unread,
Apr 2, 2018, 9:58:16 PM4/2/18
to weewx-user

I have an Actiontec C1900A and apparently I don't have the ssh enable option, only telnet.
I updated the firmware and gained two additional telnet options. I appreciate all your input.
Thanks

Lorin Tremblay

unread,
Apr 18, 2018, 5:38:15 PM4/18/18
to weewx-user
So just ordered a WS-2902 and was wondering if you ever got it to work?

Jim Woodruff

unread,
Apr 20, 2018, 8:12:14 PM4/20/18
to weewx-user
No I haven't. I think my problem is with my router as I am unable to see the WS-2902 traffic using tcpdump or wireshark. Consequently, the Interceptor extension can't see it either.


Lorin Tremblay

unread,
Apr 20, 2018, 11:12:10 PM4/20/18
to weewx-user
LOL not really the answer I was hopping for!

Jim Woodruff

unread,
Apr 21, 2018, 2:12:14 AM4/21/18
to weewx-user
Hope I didn't misled you. It works fine sending data to wunderground, ambientweather.net, and weathercloud. I am having trouble sending data using weewx to CWOP, PWS, and AWEKAS using the sniffer software interceptor.

Lorin Tremblay

unread,
Apr 21, 2018, 3:15:09 PM4/21/18
to weewx-user
Nah, knew it wasn't going to be fun and every environment is different so sort of expected trouble ;)

jan hallink

unread,
Apr 21, 2018, 5:40:56 PM4/21/18
to weewx-user
Jim
I don't know if your actiontec modem/router have the possibility to add the ip tables in the right way.

I have also struggled with my Ubee modem/router.
The solution for me was to install an asus router (second hand rt-n66u) behind my Ubee and switched the Ubee to bridge mode.

I setup the asus router in wireless router mode. After that this router has the possibility to add the right ip tables with telnet in the command line.

Later I updated my asus with the free asuswrt-merlin firmware. With that it's possible to enable ssh and I used that instead of telnet.
Then it is also possible to put the ip tables into a firewall start script.
The profit is that after a reboot of the router the ip tables are not disappeared.

Maybe there is a more simple way to connect the ws-2902 with the weewx, but I could not discover it.
My configuration is running now for 3 months without problems.

Lorin Tremblay

unread,
Apr 22, 2018, 11:10:04 PM4/22/18
to weewx-user
Do you mind sharing your config files to compare?
If you run on the raspberry pi this comand netstat -lptn do see to port you are listening to on the rapsberry Pi?

jan hallink

unread,
Apr 23, 2018, 11:17:23 AM4/23/18
to weewx-user


pi@raspberrypi:~ $ nwetstat -lpnt tn do
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::22                   :::*                    LISTEN      -                   
pi@raspberrypi:~ $ exit

Lorin Tremblay

unread,
Apr 23, 2018, 11:23:26 AM4/23/18
to weewx-user
I'm really struggling to send the stuff to the raspberry PI, I know that my tcpdump is good, it's just to send the data to the PI.....
NOW the unknown for me is the following
does the nc really sending data to the PI
is the PI listening
to be follow!

Lorin Tremblay

unread,
Apr 23, 2018, 11:28:51 AM4/23/18
to weewx-user
I have tried those on the router/server (10.0.1.1):

sudo tcpdump -vvv -i en0 dst ec2-52-25-111-41.us-west-2.compute.amazonaws.com and port 80 | nc -D -v 10.0.1.120 9999

and 

sudo tcpdump -vvv -i en0 dst ec2-52-25-111-41.us-west-2.compute.amazonaws.com and port 80 | xargs -n 1 curl http://10.0.1.120:9999 -s -d -v


and on the PI (10.0.1.120)
I have those all running at the same time because i'm not sure anymore of what it should be:

sudo PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/interceptor.py --device=observer --mode=sniff --iface=wlan0  --filter="src 10.0.1.144 and dst port 9999"  --debug

and

sudo PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/interceptor.py --device=observer --mode=sniff --iface=wlan0  --filter="src 10.0.1.1 and dst port 9999"  --debug


sudo PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/interceptor.py --device=observer --mode=sniff --iface=wlan0  --filter="src 10.0.1.120 and dst port 9999"  --debug


and yet still no success....


On Monday, April 23, 2018 at 11:17:23 AM UTC-4, jan hallink wrote:

Lorin Tremblay

unread,
Apr 23, 2018, 7:34:35 PM4/23/18
to weewx-user
OK i've made some progress..... here is where i'm at.

sudo tcpdump -vvv -i en0 dst ec2-52-25-111-41.us-west-2.compute.amazonaws.com and port 80 > ~/Desktop/test

 

obviously writes the dump to a file that the destination is ec2-52-25-111-41.us-west-2.compute.amazonaws.com which is fine.

 

To verify  the dump I send it to the host that I wish it would get it to with the following command...

nc 10.0.1.120 9999 < ~/Desktop/test

and it works all fine, the host receives and parse it.

 

now with that logic is assumed that this would have worked but it's not.

sudo tcpdump -vvv -i en0 dst ec2-52-25-111-41.us-west-2.compute.amazonaws.com and port 80 | nc -D -v 10.0.1.120 9999 &


at least now I know that weewx is running and that the interceptor is also running and working... 

just got to figure out how to get the a shell script running on my mac/router.....

Reply all
Reply to author
Forward
0 new messages