WeeWX Interceptor: Rain not registering

1,965 views
Skip to first unread message

Fred

unread,
Jul 12, 2017, 2:38:28 PM7/12/17
to weewx-user
Hi all,

Recently installed WeeWX in combination with the Interceptor driver in order to read my Ventus W830. The Ventus W830 is forwarding data to Wunderground via WIFI

I have managed to intercept the data reading into WeeWX but the rain is not registering unfortunately (Even though Wunderground does get the data)

Here is part of the TCP Dump (Formatting changed)

07:25:42.475896 IP 192.168.2.165.29165 > ec2-52-25-21-79.us-west-2.compute.amazonaws.com.http: Flags [P.], seq 1831777945:1831778467, ack 158718101, win 5840, length 522: HTTP: GET /weatherstation/updateweatherstation.php?ID=ITILBURG71&PASSWORD=xxxxxxxxx&indoortempf=72.9&tempf=59.7&dewptf=59.4&windchillf=59.7&indoorhumidity=60&humidity=99&windspeedmph=0.0&windgustmph=0.0&winddir=267&absbaromin=29.73&baromin=29.57&rainin=0.40&dailyrainin=0.64&weeklyrainin=0.89&monthlyrainin=2.92&yearlyrainin=-9999&solarradiation=6.85&UV=0&dateutc=2017-7-12%205:25:37&softwaretype=EasyWeatherV1.1.2&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
07:25:42.488933 IP 192.168.2.165.29165 > ec2-52-25-21-79.us-west-2.compute.amazonaws.com.http: Flags [F.], seq 522, ack 1, win 5840, length 0


07:25:52.452701 IP 192.168.2.165.14924 > ec2-52-43-231-150.us-west-2.compute.amazonaws.com.http: Flags [S], seq 1838297214, win 5840, options [mss 1460], length 0
07:25:52.966711 IP 192.168.2.165.14924 > ec2-52-43-231-150.us-west-2.compute.amazonaws.com.http: Flags [P.], seq 1838297215:1838297737, ack 3699355203, win 5840, length 522: HTTP: GET /weatherstation/updateweatherstation.php?ID=ITILBURG71&PASSWORD=xxxxxxxxx&indoortempf=72.9&tempf=59.7&dewptf=59.4&windchillf=59.7&indoorhumidity=60&humidity=99&windspeedmph=0.0&windgustmph=0.0&winddir=267&absbaromin=29.73&baromin=29.57&rainin=0.40&dailyrainin=0.64&weeklyrainin=0.89&monthlyrainin=2.92&yearlyrainin=-9999&solarradiation=6.85&UV=0&dateutc=2017-7-12%205:25:47&softwaretype=EasyWeatherV1.1.2&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
07:25:53.542677 IP 192.168.2.165.14924 > ec2-52-43-231-150.us-west-2.compute.amazonaws.com.http: Flags [F.], seq 522, ack 109, win 5732, length 0

In the logging I see:

Jul 11 07:37:35 FredsPi weewx[838]: interceptor: MainThread: skipping rain measurement of None: no last rain
Jul 11 07:37:41 FredsPi weewx[838]: interceptor: MainThread: unrecognized parameter absbaromin=29.85
Jul 11 07:37:41 FredsPi weewx[838]: interceptor: MainThread: skipping rain measurement of None: no last rain
Jul 11 07:37:51 FredsPi weewx[838]: interceptor: MainThread: unrecognized parameter absbaromin=29.85
Jul 11 07:37:51 FredsPi weewx[838]: interceptor: MainThread: skipping rain measurement of None: no last rain
Jul 11 07:38:06 FredsPi wpa_supplicant[810]: wlan0: Failed to initiate sched scan
Jul 11 07:38:08 FredsPi weewx[838]: interceptor: MainThread: unrecognized parameter absbaromin=29.85
Jul 11 07:38:08 FredsPi weewx[838]: interceptor: MainThread: skipping rain measurement of None: no last rain
Jul 11 07:38:08 FredsPi rsyslogd-2007: action 'action 10' suspended, next retry is Tue Jul 11 07:39:38 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ]
Jul 11 07:38:23 FredsPi weewx[838]: interceptor: MainThread: unrecognized parameter absbaromin=29.85
Jul 11 07:38:23 FredsPi weewx[838]: interceptor: MainThread: skipping rain measurement of None: no last rain
Jul 11 07:38:36 FredsPi weewx[838]: interceptor: MainThread: unrecognized parameter absbaromin=29.85

With Debug set to 1:

Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: ServerThread: SNIFF: ID=ITILBURG71&PASSWORD=XXXX&indoortempf=73.0&tempf=59.9&dewptf=59.5&windchillf=59.9&indoorhumidity=60&humidity=99&windspeedmph=0.9&windgustmph=1.1&winddir=267&absbaromin=29.73&baromin=29.56&rainin=0.50&dailyrainin=0.83&weeklyrainin=1.08&monthlyrainin=3.11&yearlyrainin=-9999&solarradiation=13.33&UV=0&dateutc=2017-7-12%206:2:51&softwaretype=EasyWeatherV1.1.2&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: ServerThread: sniff: start GET
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: raw data: ID=ITILBURG71&PASSWORD=xxxxxxxxx&indoortempf=73.0&tempf=59.9&dewptf=59.5&windchillf=59.9&indoorhumidity=60&humidity=99&windspeedmph=0.9&windgustmph=1.1&winddir=267&absbaromin=29.73&baromin=29.56&rainin=0.50&dailyrainin=0.83&weeklyrainin=1.08&monthlyrainin=3.11&yearlyrainin=-9999&solarradiation=13.33&UV=0&dateutc=2017-7-12%206:2:51&softwaretype=EasyWeatherV1.1.2&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter rainin=0.50
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: unrecognized parameter absbaromin=29.73
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter dailyrainin=0.83
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter monthlyrainin=3.11
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter realtime=1
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter PASSWORD=xxxxxxxx
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter ID=ITILBURG71
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter softwaretype=EasyWeatherV1.1.2
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter action=updateraw
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter weeklyrainin=1.08
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: skipping rain measurement of None: no last rain
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: raw packet: {'wind_speed': 0.9, 'humidity_in': 60.0, 'temperature_in': 73.0, 'barometer': 29.56, 'windchill': 59.9, 'dewpoint': 59.5, 'humidity_out': 99.0, 'uv': 0.0, 'radiation': 13.33, 'rain': None, 'dateTime': 1499839371, 'temperature_out': 59.9, 'wind_dir': 267.0, 'rain_total': None, 'usUnits': 1, 'wind_gust': 1.1}
Jul 12 08:03:12 FredsPi weewx[18976]: interceptor: MainThread: mapped packet: {'barometer': 29.56, 'windchill': 59.9, 'dewpoint': 59.5, 'outHumidity': 99.0, 'UV': 0.0, 'radiation': 13.33, 'rain': None, 'dateTime': 1499839371, 'windDir': 267.0, 'outTemp': 59.9, 'windSpeed': 0.9, 'inHumidity': 60.0, 'inTemp': 73.0, 'windGust': 1.1, 'usUnits': 1}
Jul 12 08:03:13 FredsPi weewx[18976]: interceptor: ServerThread: sniff: timestamp=1499839393.36 pktlen=60 data=b8 27 eb 71 8d b1 9c 5c 8e 8b 5d 58 08 00 45 00 00 28 dc b2 00 00 fe 06 01 0e c0 a8 02 a5 34 2b e7 96 7e d6 00 50 ac fe d4 60 ba b0 5f 4b 50 11 16 64 9f de 00 00 00 00 00 00 00 00
Jul 12 08:03:13 FredsPi weewx[18976]: interceptor: ServerThread: sniff: skip 00 00 00 00 00 00
Jul 12 08:03:14 FredsPi weewx[18976]: interceptor: ServerThread: sniff: timestamp=1499839394.27 pktlen=60 data=b8 27 eb 71 8d b1 9c 5c 8e 8b 5d 58 08 00 45 00 00 28 dc b3 00 00 fe 06 01 0d c0 a8 02 a5 34 2b e7 96 7e d6 00 50 ac fe d4 61 ba b0 5f 4c 50 10 16 63 9f de 00 00 00 00 00 00 00 00
Jul 12 08:03:14 FredsPi weewx[18976]: interceptor: ServerThread: sniff: skip 00 00 00 00 00 00
Jul 12 08:03:17 FredsPi weewx[18976]: interceptor: ServerThread: sniff: timestamp=1499839397.11 pktlen=60 data=b8 27 eb 71 8d b1 9c 5c 8e 8b 5d 58 08 00 45 00 00 28 dc b4 00 00 fe 06 d3 65 c0 a8 02 a5 34 19 15 4f a9 66 00 50 ac 9b 15 24 c1 8d 5b 04 50 10 16 cf 04 48 00 00 00 00 00 00 00 00
Jul 12 08:03:17 FredsPi weewx[18976]: interceptor: ServerThread: sniff: skip 00 00 00 00 00 00
Jul 12 08:03:22 FredsPi weewx[18976]: interceptor: MainThread: empty queue
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: ServerThread: sniff: timestamp=1499839408.49 pktlen=60 data=b8 27 eb 71 8d b1 9c 5c 8e 8b 5d 58 08 00 45 00 00 2c dc b9 00 00 fe 06 d3 5c c0 a8 02 a5 34 19 15 4f 8d 5b 00 50 ad 62 92 14 00 00 00 00 60 02 16 d0 a7 7e 00 00 02 04 05 b4 00 00
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: ServerThread: sniff: skip 02 04 05 b4 00 00
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: ServerThread: sniff: timestamp=1499839408.76 pktlen=576 data=b8 27 eb 71 8d b1 9c 5c 8e 8b 5d 58 08 00 45 00 02 32 dc ba 00 00 fe 06 d1 55 c0 a8 02 a5 34 19 15 4f 8d 5b 00 50 ad 62 92 15 27 e2 42 5e 50 18 16 d0 4b 9a 00 00 47 45 54 20 2f 77 65 61 74 68 65 72 73 74 61 74 69 6f 6e 2f 75 70 64 61 74 65 77 65 61 74 68 65 72 73 74 61 74 69 6f 6e 2e 70 68 70 3f 49 44 3d 49 54 49 4c 42 55 52 47 37 31 26 50 41 53 53 57 4f 52 44 3d 4e 61 67 67 79 31 39 37 30 26 69 6e 64 6f 6f 72 74 65 6d 70 66 3d 37 33 2e 30 26 74 65 6d 70 66 3d 35 39 2e 39 26 64 65 77 70 74 66 3d 35 39 2e 35 26 77 69 6e 64 63 68 69 6c 6c 66 3d 35 39 2e 39 26 69 6e 64 6f 6f 72 68 75 6d 69 64 69 74 79 3d 36 30 26 68 75 6d 69 64 69 74 79 3d 39 39 26 77 69 6e 64 73 70 65 65 64 6d 70 68 3d 30 2e 32 26 77 69 6e 64 67 75 73 74 6d 70 68 3d 31 2e 31 26 77 69 6e 64 64 69 72 3d 32 36 37 26 61 62 73 62 61 72 6f 6d 69 6e 3d 32 39 2e 37 33 26 62 61 72 6f 6d 69 6e 3d 32 39 2e 35 36 26 72 61 69 6e 69 6e 3d 30 2e 35 30 26 64 61 69 6c 79 72 61 69 6e 69 6e 3d 30 2e 38 33 26 77 65 65 6b 6c 79 72 61 69 6e 69 6e 3d 31 2e 30 38 26 6d 6f 6e 74 68 6c 79 72 61 69 6e 69 6e 3d 33 2e 31 31 26 79 65 61 72 6c 79 72 61 69 6e 69 6e 3d 2d 39 39 39 39 26 73 6f 6c 61 72 72 61 64 69 61 74 69 6f 6e 3d 31 32 2e 31 31 26 55 56 3d 30 26 64 61 74 65 75 74 63 3d 32 30 31 37 2d 37 2d 31 32 25 32 30 36 3a 33 3a 32 33 26 73 6f 66 74 77 61 72 65 74 79 70 65 3d 45 61 73 79 57 65 61 74 68 65 72 56 31 2e 31 2e 32 26 61 63 74 69 6f 6e 3d 75 70 64 61 74 65 72 61 77 26 72 65 61 6c 74 69 6d 65 3d 31 26 72 74 66 72 65 71 3d 35 20 48 54 54 50 2f 31 2e 30 0d 0a 41 63 63 65 70 74 3a 2a 2f 2a 0d 0a 48 6f 73 74 3a 20 72 74 75 70 64 61 74 65 2e 77 75 6e 64 65 72 67 72 6f 75 6e 64 2e 63 6f 6d 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 43 6c 6f 73 65 0d 0a 0d 0a
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: ServerThread: sniff: flush 47 45 54 20 2f 77 65 61 74 68 65 72 73 74 61 74 69 6f 6e 2f 75 70 64 61 74 65 77 65 61 74 68 65 72 73 74 61 74 69 6f 6e 2e 70 68 70 3f 49 44 3d 49 54 49 4c 42 55 52 47 37 31 26 50 41 53 53 57 4f 52 44 3d 4e 61 67 67 79 31 39 37 30 26 69 6e 64 6f 6f 72 74 65 6d 70 66 3d 37 33 2e 30 26 74 65 6d 70 66 3d 35 39 2e 39 26 64 65 77 70 74 66 3d 35 39 2e 35 26 77 69 6e 64 63 68 69 6c 6c 66 3d 35 39 2e 39 26 69 6e 64 6f 6f 72 68 75 6d 69 64 69 74 79 3d 36 30 26 68 75 6d 69 64 69 74 79 3d 39 39 26 77 69 6e 64 73 70 65 65 64 6d 70 68 3d 30 2e 37 26 77 69 6e 64 67 75 73 74 6d 70 68 3d 31 2e 31 26 77 69 6e 64 64 69 72 3d 32 36 37 26 61 62 73 62 61 72 6f 6d 69 6e 3d 32 39 2e 37 33 26 62 61 72 6f 6d 69 6e 3d 32 39 2e 35 36 26 72 61 69 6e 69 6e 3d 30 2e 35 30 26 64 61 69 6c 79 72 61 69 6e 69 6e 3d 30 2e 38 33 26 77 65 65 6b 6c 79 72 61 69 6e 69 6e 3d 31 2e 30 38 26 6d 6f 6e 74 68 6c 79 72 61 69 6e 69 6e 3d 33 2e 31 31 26 79 65 61 72 6c 79 72 61 69 6e 69 6e 3d 2d 39 39 39 39 26 73 6f 6c 61 72 72 61 64 69 61 74 69 6f 6e 3d 31 32 2e 34 38 26 55 56 3d 30 26 64 61 74 65 75 74 63 3d 32 30 31 37 2d 37 2d 31 32 25 32 30 36 3a 33 3a 37 26 73 6f 66 74 77 61 72 65 74 79 70 65 3d 45 61 73 79 57 65 61 74 68 65 72 56 31 2e 31 2e 32 26 61 63 74 69 6f 6e 3d 75 70 64 61 74 65 72 61 77 26 72 65 61 6c 74 69 6d 65 3d 31 26 72 74 66 72 65 71 3d 35 20 48 54 54 50 2f 31 2e 30 0d 0a 41 63 63 65 70 74 3a 2a 2f 2a 0d 0a 48 6f 73 74 3a 20 72 74 75 70 64 61 74 65 2e 77 75 6e 64 65 72 67 72 6f 75 6e 64 2e 63 6f 6d 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 43 6c 6f 73 65 0d 0a 0d 0a
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: ServerThread: SNIFF: ID=ITILBURG71&PASSWORD=XXXX&indoortempf=73.0&tempf=59.9&dewptf=59.5&windchillf=59.9&indoorhumidity=60&humidity=99&windspeedmph=0.7&windgustmph=1.1&winddir=267&absbaromin=29.73&baromin=29.56&rainin=0.50&dailyrainin=0.83&weeklyrainin=1.08&monthlyrainin=3.11&yearlyrainin=-9999&solarradiation=12.48&UV=0&dateutc=2017-7-12%206:3:7&softwaretype=EasyWeatherV1.1.2&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: ServerThread: sniff: start GET
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: MainThread: raw data: ID=ITILBURG71&PASSWORD=xxxxxxxx&indoortempf=73.0&tempf=59.9&dewptf=59.5&windchillf=59.9&indoorhumidity=60&humidity=99&windspeedmph=0.7&windgustmph=1.1&winddir=267&absbaromin=29.73&baromin=29.56&rainin=0.50&dailyrainin=0.83&weeklyrainin=1.08&monthlyrainin=3.11&yearlyrainin=-9999&solarradiation=12.48&UV=0&dateutc=2017-7-12%206:3:7&softwaretype=EasyWeatherV1.1.2&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter rainin=0.50
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: MainThread: unrecognized parameter absbaromin=29.73
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter dailyrainin=0.83
Jul 12 08:03:28 FredsPi weewx[18976]: interceptor: MainThread: ignored parameter monthlyrainin=3.11

Anybody have any idea what is going wrong?

Any help is appreciated!

Fred


weewx.conf

Fred

unread,
Jul 12, 2017, 2:49:47 PM7/12/17
to weewx-user
Including a sample of the report I get...
 
Report_Sample.jpg

jan hallink

unread,
Jul 13, 2017, 8:54:52 AM7/13/17
to weewx-user

Hello Fred
Very interesting what you are trying to fix.
I also planned to buy a ventus w830 and if possible connect it to weewx.
Unfortunately I can't help you directly,but maybe you can search on fine offset wh2900.
It's the same weather station and there was a thread about it in april/may.
They gave some hints about the archive interval time.

Jan

mwall

unread,
Jul 13, 2017, 11:19:35 AM7/13/17
to weewx-user


On Wednesday, July 12, 2017 at 2:38:28 PM UTC-4, Fred wrote:
Anybody have any idea what is going wrong?


fred,

please post the [Interceptor] section of your weewx configuration.

it looks like your station is always sending a junk value (-9999) for yearrainin.  yearrainin is the observation that the interceptor driver uses to determine the rainfall.  so when your station always reports -9999, the driver maps that to 'None', and voila! you have no rain reported.

i used yearrainin in order to minimize the effects of counter rollover, and because i was not seeing consistent use of rainin (is it rain since last sampling?  in a certain time period?  it seems to vary depending on the manufacturer and/or the firmware)

it looks like your rainin is a counter, but counting since when?  when does rainin reset?  and why is there no value for your yearrainin?

your station is also reporting absbaromin.  this value would be preferred to baromin, which i assume is a derivation of absbaromin with altitude/temperature compensation.  i'll have to see about making the driver prefer absbaromin if it exists.

btw, at some point the wu-based portions of the interceptor probably belong in a separate driver that simply captures data bound for wu, either by sniffing or by listening.  that driver *should* work with any manufacturer's hardware/firmware as long as they adhere to the wu protocol.

m

Fred

unread,
Jul 13, 2017, 11:29:59 AM7/13/17
to weewx-user
Hi,

First of all: Thank you for writing this software! Its great :)

This is the section you requested (Full file is in my original post, but maybe you missed it)

[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 = enxb827eb718db1
    pcap_filter = src 192.168.2.165 and dst port 80

Thanks!

Fred

Fred

unread,
Jul 13, 2017, 11:31:33 AM7/13/17
to weewx-user
Oh,

forgot to mention:

The station is not very old yet: Is it possible it posts the 9999 yearrain because it simply has not calculated it yet?!?

Just theorizing :)

Fred

Fred

unread,
Jul 13, 2017, 11:39:09 AM7/13/17
to weewx-user
Hi Jan,

Biggest problem was getting the data to the interceptor driver: My weatherstation is on a different router than my pi...

Thankfully I have the ASUS wrt router software installed, so I was able to insert some rules to forward my traffic sent from port 80 to the pi:

iptables -t mangle -A PREROUTING  -s 192.168.2.165 -j ROUTE --tee --gw 192.168.1.45
iptables -t mangle -A POSTROUTING -d 192.168.2.165 -j ROUTE --tee --gw 192.168.1.45

The first IP is my weatherstation, the second IP is the PI ...

Maybe it can help you in your quest :)

Fred

mwall

unread,
Jul 13, 2017, 11:45:19 AM7/13/17
to weewx-user
On Thursday, July 13, 2017 at 11:31:33 AM UTC-4, Fred wrote:
The station is not very old yet: Is it possible it posts the 9999 yearrain because it simply has not calculated it yet?!?

i suppose that is possible.  but meanwhile we are missing rainfall data!

according to the wunderground docs:

rainin - [rain inches over the past hour)] -- the accumulated rainfall in the past 60 min
dailyrainin - [rain inches so far today in local time]

so i suppose i could make the interceptor use dailyrainin instead of yearrainin, as long as we get the local time right...

cannot use rainin since it is a moving window - rain in the past 60 min, not rain since the top of the last hour.

m

Fred

unread,
Jul 13, 2017, 12:05:34 PM7/13/17
to weewx-user
yes, indeed, but would that break other weatherstation interceptor data?

Also, would that be hard to implement? I guess for a generic Wunderground Interceptor it would cover many stations in one decoding (This is me assuming all station reporting always report all the same fields tu WU?!? Probably wishful thinking...)

Fred

Mike Frison

unread,
Sep 18, 2017, 11:55:35 AM9/18/17
to weewx-user
Did this ever get resolved?  The rainy season started yesterday and I'm having the same problem.

My wunderground data looks like this:

GET /weatherstation/updateweatherstation.php?ID=KWAVANCO306&PASSWORD=foo&indoortempf=68.7&tempf=54.0&dewptf=53.6&windchillf=54.0&indoorhumidity=54&humidity=99&windspeedmph=0.0&windgustmph=0.0&winddir=181&absbaromin=29.57&baromin=29.88&rainin=0.00&dailyrainin=0.07&weeklyrainin=0.26&monthlyrainin=0.27&yearlyrainin=-9999&solarradiation=2.94&UV=0&dateutc=2017-9-18%2014:30:31&softwaretype=AMBWeatherV3.0.0&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0.

I will mention that the ws-2902 manual mentions tracking total rain (user resettable) but not yearly rain.

An alternative is the protocol for sending data to ambientweather.net:

GET /endpoint?stationtype=AMBWeatherV3.0.0&PASSKEY=bar&dateutc=2017-09-18+14:30:40&winddir=181&windspeedmph=0.0&windgustmph=0.0&maxdailygust=9.2&tempf=54.0&hourlyrainin=0.01&dailyrainin=0.07&weeklyrainin=0.26&monthlyrainin=0.27&totalrainin=0.28&baromrelin=29.88&baromabsin=29.57&humidity=99&tempinf=68.7&humidityin=54&uv=0&solarradiation=2.94 HTTP/1.1

Ambient lists a boat load of weather stations that can send to ambientweather.net.  Would support for this protocol make sense?


mwall

unread,
Sep 18, 2017, 1:09:48 PM9/18/17
to weewx-user
On Monday, September 18, 2017 at 11:55:35 AM UTC-4, Mike Frison wrote:
Did this ever get resolved?  The rainy season started yesterday and I'm having the same problem.

My wunderground data looks like this:

GET /weatherstation/updateweatherstation.php?ID=KWAVANCO306&PASSWORD=foo&indoortempf=68.7&tempf=54.0&dewptf=53.6&windchillf=54.0&indoorhumidity=54&humidity=99&windspeedmph=0.0&windgustmph=0.0&winddir=181&absbaromin=29.57&baromin=29.88&rainin=0.00&dailyrainin=0.07&weeklyrainin=0.26&monthlyrainin=0.27&yearlyrainin=-9999&solarradiation=2.94&UV=0&dateutc=2017-9-18%2014:30:31&softwaretype=AMBWeatherV3.0.0&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0.

I will mention that the ws-2902 manual mentions tracking total rain (user resettable) but not yearly rain.

thank you - it is incredibly helpful to have concrete examples of the station output.

so it sounds like the most robust solution is to make the interceptor use dailyrainin rather than yearlyrainin.  or maybe it should try to use yearlyrainin, but fall back to dailyrainin if yearlyrainin does not exist or is -9999.

 
An alternative is the protocol for sending data to ambientweather.net:

GET /endpoint?stationtype=AMBWeatherV3.0.0&PASSKEY=bar&dateutc=2017-09-18+14:30:40&winddir=181&windspeedmph=0.0&windgustmph=0.0&maxdailygust=9.2&tempf=54.0&hourlyrainin=0.01&dailyrainin=0.07&weeklyrainin=0.26&monthlyrainin=0.27&totalrainin=0.28&baromrelin=29.88&baromabsin=29.57&humidity=99&tempinf=68.7&humidityin=54&uv=0&solarradiation=2.94 HTTP/1.1

Ambient lists a boat load of weather stations that can send to ambientweather.net.  Would support for this protocol make sense?

i'm not sure if it would help to look explicitly for ambientweather.net protocol.  is that protocol published somewhere?

apparently one must run weatherbridge in order to upload to ambientweather.net.  weatherbridge is simply ambient's brand name for meteobridge.  so there must be an uploader in meteobridge that speaks the ambientweather.net protocol.

from the snippet you posted, it looks like the ambientweather.net protocol is nearly identical to the wunderground protocol.

apparently the barometer parameter has been giving people grief - ambientweather.net uses baromrelin and baromabsin, probably to make explicit the difference between relative and absolute pressure.  however, they still confound things by using 'barom' instead of 'pressure'.

(btw, both make the mistake of misusing http GET - they should be doing a POST or a PUT, not a GET)

anyway, if someone were to write a weewx uploader for ambientweather.net, then even more types of stations would be supported :)

this is a pretty easy task - just derive from the wundergroun uploader, but override to use parameters specific to ambientweather.net.

mwall

unread,
Sep 18, 2017, 2:12:51 PM9/18/17
to weewx-user
On Monday, September 18, 2017 at 11:55:35 AM UTC-4, Mike Frison wrote:
Did this ever get resolved?  The rainy season started yesterday and I'm having the same problem.

please try interceptor v0.32 (commit 44438ad)

this should use yearly count if available, but fall back to daily if no yearly is provided
 

Mike Frison

unread,
Sep 18, 2017, 2:49:51 PM9/18/17
to weewx-user
First time through I got:

Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: raw data: ID=KWAVANCO306&PASSWORD=foo&indoortempf=68.5&tempf=54.5&dewptf=53.8&windchillf=54.5&indoorhumidity=53&humidity=97&windspeedmph=0.0&windgustmph=0.0&winddir=180&absbaromin=29.59&baromin=29.90&rainin=0.00&dailyrainin=0.48&weeklyrainin=0.67&monthlyrainin=0.68&yearlyrainin=-9999&solarradiation=51.99&UV=0&dateutc=2017-9-18%2018:31:31&softwaretype=AMBWeatherV3.0.0&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter rainin=0.00
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter monthlyrainin=0.68
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter realtime=1
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter PASSWORD=foo
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter ID=KWAVANCO306
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter softwaretype=AMBWeatherV3.0.0
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter action=updateraw
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: ignored parameter weeklyrainin=0.67
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: skipping rain measurement of 0.48: no last rain
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: raw packet: {'wind_speed': 0.0, 'humidity_in': 53.0, 'temperature_in': 68.5, 'barometer': 29.9, 'windchill': 54.5, 'dewpoint': 53.8, 'humidity_out': 97.0, 'uv': 0.0, 'radiation': 51.99, 'rain': None, 'dateTime': 1505759491, 'pressure': 29.59, 'temperature_out': 54.5, 'wind_dir': 180.0, 'rain_total': 0.48, 'usUnits': 1, 'wind_gust': 0.0}
Sep 18 11:32:40 piserver weewx[21827]: interceptor: MainThread: mapped packet: {'barometer': 29.9, 'windchill': 54.5, 'dewpoint': 53.8, 'pressure': 29.59, 'outHumidity': 97.0, 'UV': 0.0, 'radiation': 51.99, 'rain': None, 'dateTime': 1505759491, 'windDir': 180.0, 'outTemp': 54.5, 'windSpeed': 0.0, 'inHumidity': 53.0, 'inTemp': 68.5, 'windGust': 0.0, 'usUnits': 1}

The second time:

Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: raw data: ID=KWAVANCO306&PASSWORD=foo&indoortempf=68.5&tempf=54.5&dewptf=54.0&windchillf=54.5&indoorhumidity=53&humidity=98&windspeedmph=0.2&windgustmph=1.1&winddir=109&absbaromin=29.59&baromin=29.90&rainin=0.00&dailyrainin=0.48&weeklyrainin=0.67&monthlyrainin=0.68&yearlyrainin=-9999&solarradiation=60.19&UV=0&dateutc=2017-9-18%2018:32:35&softwaretype=AMBWeatherV3.0.0&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter rainin=0.00
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter monthlyrainin=0.68
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter realtime=1
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter rtfreq=5 HTTP/1.0#015#012Accept:*/*#015#012Host: rtupdate.wunderground.com#015#012Connection: Close
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter PASSWORD=foo
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter ID=KWAVANCO306
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter softwaretype=AMBWeatherV3.0.0
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter action=updateraw
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: ignored parameter weeklyrainin=0.67
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: raw packet: {'wind_speed': 0.2, 'humidity_in': 53.0, 'temperature_in': 68.5, 'barometer': 29.9, 'windchill': 54.5, 'dewpoint': 54.0, 'humidity_out': 98.0, 'uv': 0.0, 'radiation': 60.19, 'rain': 0.0, 'dateTime': 1505759555, 'pressure': 29.59, 'temperature_out': 54.5, 'wind_dir': 109.0, 'rain_total': 0.48, 'usUnits': 1, 'wind_gust': 1.1}
Sep 18 11:33:44 piserver weewx[21827]: interceptor: MainThread: mapped packet: {'barometer': 29.9, 'windchill': 54.5, 'dewpoint': 54.0, 'pressure': 29.59, 'outHumidity': 98.0, 'UV': 0.0, 'radiation': 60.19, 'rain': 0.0, 'dateTime': 1505759555, 'windDir': 109.0, 'outTemp': 54.5, 'windSpeed': 0.2, 'inHumidity': 53.0, 'inTemp': 68.5, 'windGust': 1.1, 'usUnits': 1}

So, still no rain.

mwall

unread,
Sep 18, 2017, 3:05:17 PM9/18/17
to weewx-user
On Monday, September 18, 2017 at 2:49:51 PM UTC-4, Mike Frison wrote:

So, still no rain.

that looks like expected behavior.  the 'rain' field in weewx LOOP and ARCHIVE data is a *delta* measure, not a *cumulative* measure.  the first time through there is no last value with which to calculate a delta, so 'rain' is None.  rain_total is set to 0.48.  the second time there is no change to the rain total - it is 0.48 again.  so the value for 'rain' is 0.

if you tip the bucket, you should see rain_total change, and you should see the volume for a single bucket tip reported for 'rain'

m

Fred

unread,
Sep 18, 2017, 3:27:16 PM9/18/17
to weewx-user
I shall try that version as well (Hopefully this weekend!) and let you know my results :)

Thanks

Fred

mwall

unread,
Sep 18, 2017, 3:34:31 PM9/18/17
to weewx-user
ok, yet another change at driver v0.34

this will prefer rainin, which appears to be a delta measurement

if there is no rainin, it will use yearlyrainin or yearlyrain

if no yearly, it will use dailyrainin or dailyrain

sigh.

so many different firmware versions, and they all do different things.  thank you fine offset for such attention to detail!

m

Fred

unread,
Sep 18, 2017, 3:37:43 PM9/18/17
to weewx-user
lol!

I saw the new version appear on Github as I wanted to have a look at the code...

Excellent and quick service Sir! Thanks!

Fred

Mike Frison

unread,
Sep 18, 2017, 4:46:16 PM9/18/17
to weewx-user

We got some more rain so I can confirm that v0.34 works.  Sorry about the earlier misunderstanding.

I'm happy to see the rain too.  It's helping with the 48,000 acre forest fire 30 miles East of here. (I'm near Portland, OR)  Beijing had much cleaner air than we did the last couple of weeks.

Matthew - Thanks again for the quick response. 

Mike

Mike Frison

unread,
Sep 19, 2017, 12:04:51 PM9/19/17
to weewx-user

It appears that, at least on the ws-2902, rainin is the wrong choice. I noticed v0.35 of interceptor.py last evening and installed it. As of 8AM this morning weewx is reporting today's rain at 7.37 inches with a high rain rate of 6.52 in/hr at 05:07:31.  The console, WU, and ambientweather.net all report a daily total of 0.12 inches.
 
A search of /var/log/syslog shows consistent messages of: interceptor: MainThread: using rain from 'rainin'


From the WS-2902 manual:
6.5.3 Increments of Rain Definitions
  • Rain rate or hourly rain is defined as the last 10 minutes of rainfall, multiplied by six (10 minutes x 6 = 1 hour). This is also referred to as instantaneous rain per hour.
  • Rain event is defined as continuous rain, and resets to zero if rainfall accumulation is less than 10 mm   (0.039 in)in a 24 hour period.
  • Daily Rain is defined as the rainfall since midnight (00:00).
  • Weekly Rain is defined as the  calendar week total and resets on Sunday morning at midnight (Sunday thru Saturday)
  • Monthly Rain is defined as the calendar month total and resets on the first day of the Month.
  • Total Rain is defined as the running total since station was powered up.

I would guess that on the ws-2902 rainin is the Rain rate.



.


mwall

unread,
Sep 19, 2017, 12:20:52 PM9/19/17
to weewx-user


On Tuesday, September 19, 2017 at 12:04:51 PM UTC-4, Mike Frison wrote:

It appears that, at least on the ws-2902, rainin is the wrong choice. I noticed v0.35 of interceptor.py last evening and installed it. As of 8AM this morning weewx is reporting today's rain at 7.37 inches with a high rain rate of 6.52 in/hr at 05:07:31.  The console, WU, and ambientweather.net all report a daily total of 0.12 inches.


thank you mike.

v0.36 reverts to ignoring the 'rainin' parameter.

Fred

unread,
Sep 19, 2017, 12:39:04 PM9/19/17
to weewx...@googlegroups.com
Heh, maybe you just missed a *lot* of rain? ;)

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/3wGBXbrNYJs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Frison

unread,
Sep 19, 2017, 12:48:43 PM9/19/17
to weewx-user
V0.36 is now using dailyrainin on my station.  There should be some rain here later today to test it.

Mike

Mike Frison

unread,
Sep 19, 2017, 12:55:33 PM9/19/17
to weewx-user
I miss a lot of things these days, but since I was up at 5:07 this morning, I doubt I would have missed a downpour like that.

Mike Frison

unread,
Sep 20, 2017, 8:55:59 AM9/20/17
to weewx-user
Just a couple of sprinkles yesterday but significant rain this morning.  Weewx is now matching the console, WU, and AmbientWeather.net numbers on the daily total.

Success!

Fred - I wanted to thank you for the iptables commands you posted earlier.  I like that they send a copy of the data to the pi while allowing it to continue directly to WU and other sites.  I made two changes:  I eliminated the POSTROUTING line because the interceptor driver doesn't seem to care about WU's response and I added the WU address as a destination so that it doesn't also forward the data being sent to AmbientWeather.net by my machine.  (I don't know if your Ventus supports multiple data streams) 

iptables -t mangle -A PREROUTING  -s 192.168.1.16 -d rtupdate.wunderground.com -j ROUTE --tee --gw 192.168.1.3

The first IP is the weather station and the second is the pi.

Now if I could just figure out how to get the router (Netgear R7000 running AdvancedTomato v3.4-140) to send it to a port on the pi other than 80.

Mike

Fred

unread,
Sep 20, 2017, 9:07:45 AM9/20/17
to weewx...@googlegroups.com
Hi Mike,

My pleasure...
Would this article help you maybe?


Fred


--

kan6526

unread,
Nov 19, 2017, 10:01:51 AM11/19/17
to weewx-user

 weewx[9312]: engine: Station does not support reading the time
 weewx[9312]: interceptor: ServerThread: SNIFF: ID=xxxx&Key=xxxxxx&num=360530&dateutc=2017-11-19%2014:22:37&tempf=67.1&tempf1
=77.9&humidity=95&humidity1=-32768&baromin1=30.05&baromin=30.25&windspeedmph=2.9&windgustmph=4.9&winddir=72&rainin=0.00&dailyrainin=0.00&monthlyrainin=0.32&s
oftwaretype=WeatherSmart%20V1.7.0 HTTP/1.0#015#012Accept: */*#015#012Host: data.backyard2.weatherbug.com#015#012Connection: Close#015#012#015

Nov 19 22:23:07 debian6-ANN weewx[9312]: engine: Starting main packet loop.
Nov 19 22:23:07 debian6-ANN weewx[9312]: interceptor: ServerThread: sniff: start GET
Nov 19 22:23:07 debian6-ANN weewx[9312]: interceptor: ServerThread: sniff: timestamp=1511101387.32 pktlen=60 data=9c 5c 8e c0 dc ea 5c cf 7f 23 ba 2a 08 00 45 00 00 28 7b 8b 00 00 ff 06 9c 8e c0 a8 02 fc 34 23 ab ee 0b 5c 00 50 22 58 f7 26 12 0a ac 9b 50 11 16 d0 11 7d 00 00 00 00 00 00 00 00
Nov 19 22:23:07 debian6-ANN weewx[9312]: interceptor: MainThread: raw data: ID=xxxx&Key=xxxxx&num=360530&dateutc=2017-11-19%2014:21:17&tempf=67.1&tempf1=77.9&humidity=95&humidity1=-32768&baromin1=30.04&baromin=30.24&windspeedmph=0.2&windgustmph=2.5&winddir=16&rainin=0.00&dailyrainin=0.00&monthlyrainin=0.32&softwaretype=WeatherSmart%20V1.7.0 HTTP/1.0#015#012Accept: */*#015#012Host: data.backyard2.weatherbug.com#015#012Connection: Close#015#012#015

Nov 19 22:23:07 debian6-ANN weewx[9312]: engine: Main loop exiting. Shutting engine down.
Nov 19 22:23:07 debian6-ANN weewx[9312]: interceptor: ServerThread: sniff: skip 00 00 00 00 00 00
Nov 19 22:23:07 debian6-ANN weewx[9312]: interceptor: MainThread: shutting down server thread
Nov 19 22:23:19 debian6-ANN weewx[9312]: interceptor: ServerThread: sniff: timestamp=1511101399.28 pktlen=60 data=9c 5c 8e c0 dc ea 5c cf 7f 23 ba 2a 08 00 45 00 00 2c 7b 8f 00 00 ff 06 35 13 c0 a8 02 fc 6b 17 dc 6d 49 b1 00 50 22 5c 9a cc 00 00 00 00 60 02 16 d0 6f 03 00 00 02 04 05 b4 00 00
Nov 19 22:23:19 debian6-ANN weewx[9312]: interceptor: MainThread: stop sniff server
Nov 19 22:23:19 debian6-ANN weewx[9312]: interceptor: ServerThread: sniff: skip 02 04 05 b4 00 00
Nov 19 22:23:19 debian6-ANN weewx[9312]: engine: Caught unrecoverable exception in engine:
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****  'yearlyrainin'
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****  Traceback (most recent call last):
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****    File "/usr/share/weewx/weewx/engine.py", line 871, in main
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****      engine.run()
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****    File "/usr/share/weewx/weewx/engine.py", line 187, in run
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****      for packet in self.console.genLoopPackets():
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****    File "/usr/share/weewx/user/interceptor.py", line 1976, in genLoopPackets
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****      pkt = self._device.parser.parse(data)
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****    File "/usr/share/weewx/user/interceptor.py", line 999, in parse
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****      year_total = self.decode_float(data.pop('yearlyrainin'))
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****  KeyError: 'yearlyrainin'
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****  Exiting.

weewx  3.7.1
interceptor 0.37

mwall

unread,
Nov 19, 2017, 10:22:14 AM11/19/17
to weewx-user


On Sunday, November 19, 2017 at 10:01:51 AM UTC-5, kan6526 wrote:
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****    File "/usr/share/weewx/user/interceptor.py", line 999, in parse
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****      year_total = self.decode_float(data.pop('yearlyrainin'))
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****  KeyError: 'yearlyrainin'
Nov 19 22:23:19 debian6-ANN weewx[9312]:     ****  Exiting.

weewx  3.7.1
interceptor 0.37

looks like yet another firmware variant.

you can deal with it by adding None as the default pop value by changing this:

                if 'dailyrainin' in data:

                    rain_total = self.decode_float(data.pop('dailyrainin'))

                    year_total = self.decode_float(data.pop('yearlyrainin'))

                    if year_total is not None:

                        rain_total = year_total

                        logdbg("using rain_total %s from yearlyrainin" % rain_total)

                    else:

                        logdbg("using rain_total %s from dailyrainin" % rain_total)

                elif 'dailyrain' in data:

                    rain_total = self.decode_float(data.pop('dailyrain'))

                    year_total = self.decode_float(data.pop('yearlyrain'))

                    if year_total is not None:

                        rain_total = year_total

                        logdbg("using rain_total %s from yearlyrain" % rain_total)

                    else:

                        logdbg("using rain_total %s from dailyrain" % rain_total)


to this:

                if 'dailyrainin' in data:

                    rain_total = self.decode_float(data.pop('dailyrainin', None))

                    year_total = self.decode_float(data.pop('yearlyrainin', None))

                    if year_total is not None:

                        rain_total = year_total

                        logdbg("using rain_total %s from yearlyrainin" % rain_total)

                    else:

                        logdbg("using rain_total %s from dailyrainin" % rain_total)

                elif 'dailyrain' in data:

                    rain_total = self.decode_float(data.pop('dailyrain', None))

                    year_total = self.decode_float(data.pop('yearlyrain', None))

                    if year_total is not None:

                        rain_total = year_total

                        logdbg("using rain_total %s from yearlyrain" % rain_total)

                    else:

                        logdbg("using rain_total %s from dailyrain" % rain_total)


changes applied in weewx-interceptor 0.38

kan6526

unread,
Nov 20, 2017, 11:50:31 AM11/20/17
to weewx-user
Can not report to the webpage
 
messages.txt
syslog.txt
weewx.conf

kan6526

unread,
Nov 22, 2017, 1:16:34 AM11/22/17
to weewx-user
root@debian6-ANN:~# /etc/init.d/weewx stop

-----------------------------------------------/var/log/syslog ----------------------------------------------
Nov 22 13:51:31 debian6-ANN weewx[5104]: interceptor: MainThread: ignored parameter softwaretype=WeatherSmart%V1.7.0
Nov 22 13:51:31 debian6-ANN weewx[5104]: interceptor: ServerThread: sniff: skip 00 00 00 00 00 00
Nov 22 13:51:31 debian6-ANN weewx[5104]: interceptor: MainThread: ignored parameter action=updateraw
Nov 22 13:51:46 debian6-ANN weewx[5104]: engine: Received signal TERM (15).
Nov 22 13:51:46 debian6-ANN weewx[5104]: engine: Main loop exiting. Shutting engine down.
Nov 22 13:51:46 debian6-ANN weewx[5104]: interceptor: MainThread: shutting down server thread
Nov 22 13:51:46 debian6-ANN weewx[5104]: interceptor: ServerThread: sniff: timestamp=1511329906.99 pktlen=60 data=9c 5c 8e c0 dc ea 5c cf 7f 23 ba 2a 08 00 45 00 00 2c ab b7 00 00 ff 06 6c 5e c0 a8 02 fc 34 23 ab ee 5b 65 00 50 ef c8 fd 92 00 00 00 00 60 02 16 d0 94 8f 00 00 02 04 05 b4 00 00
Nov 22 13:51:46 debian6-ANN weewx[5104]: interceptor: MainThread: stop sniff server
Nov 22 13:51:46 debian6-ANN weewx[5104]: interceptor: ServerThread: sniff: skip 02 04 05 b4 00 00
Nov 22 13:51:46 debian6-ANN weewx[5104]: engine: Terminating weewx version 3.7.1
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****  Traceback (most recent call last):
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/weewx/engine.py", line 871, in main
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      engine.run()
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/weewx/engine.py", line 187, in run
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      for packet in self.console.genLoopPackets():
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/user/interceptor.py", line 1986, in genLoopPackets
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      pkt = self._device.parser.parse(data)
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/user/interceptor.py", line 1031, in parse
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      logdbg("ignored parameter %s=%s" % (n, data[n]))
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/user/interceptor.py", line 227, in logdbg
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      logmsg(syslog.LOG_DEBUG, msg)
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/user/interceptor.py", line 224, in logmsg
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      (threading.currentThread().getName(), msg))
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****    File "/usr/share/weewx/weewx/engine.py", line 794, in sigTERMhandler
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****      raise Terminate
Nov 22 13:51:46 debian6-ANN weewx[5104]:     ****  Terminate
 

jan hallink

unread,
Jan 7, 2018, 6:49:06 AM1/7/18
to weewx-user
I succeeded to run weewx with the latest interceptor driver connected to my ventus w830 weather station. Working great! Also thanks to Fred for your info: I also use a asus wrt router with the 2 ip tables rules.

Maarten Reyniers

unread,
Jan 12, 2018, 6:04:35 AM1/12/18
to weewx-user
Hello Jan,

I am the project leader for WOW in Belgium (WOW-BE, https://wow.meteo.be). Fine Offset informed us that the WH2900 station now supports the upload to WOW natively, after a firmware update, through the app https://play.google.com/store/apps/details?id=com.dtston.wstool&hl=nl

Since we cannot test this ourselves (we don't have a WH2900 at our disposal), we would like to ask this to an owner of such a station.

Could you test and confirm this? Thanks a lot -

Regards; vriendelijke groet,

Maarten Reyniers



Op zondag 7 januari 2018 12:49:06 UTC+1 schreef jan hallink:

jan hallink

unread,
Jan 13, 2018, 8:26:18 AM1/13/18
to weewx-user
Hello Maarten
I tried several times to upgrade my station from 1.1.2 to 1.1.4 firmware through the ws tool app, But I didn't succeeded, I got the message download fails.
So I cannot give you at this moment an answer if WOW works directly.
But with the weewx coupled to my station it is working with WOW

manfred

unread,
Jul 7, 2019, 9:51:48 AM7/7/19
to weewx-user
hi Jan,

I'm planning to get a Ventus w830 as well; can you let us know how well it worked for you (including any success in upgrading to latest firmware)?  
I'm also interested to learn how frequent the intervals are that you get updates from the station, as one of my usecases involves closing a suncover if there's sudden wind or rain.

thanks in advance!
Manfred


Op zaterdag 13 januari 2018 14:26:18 UTC+1 schreef jan hallink:

Eelco de Graaff

unread,
Jun 1, 2021, 6:06:00 PM6/1/21
to weewx-user

Does someone a working example of the interceptor for the  Ventus W830 would be nice. 

Op zondag 7 juli 2019 om 15:51:48 UTC+2 schreef manfred:

Rainer Lang

unread,
Jun 2, 2021, 5:41:05 AM6/2/21
to weewx...@googlegroups.com, Eelco de Graaff
One side remark regarding the dialogue below:
A Ventus830 (a FineOffset/Ecowitt WH2910 clone) cannot be updated with the WSTool app, even though this is sometimes written like that in the manual - you need the WSView app (latest version 😁) - when a firmware newer than what you have is available, the WSView app will tell you and offer the upgrade.

I can provide you with a working weewx with a WH2310E (also Froggit WH4000SE) and the interceptor driver on a RPi4.
The used WiFi-firmware of the WH2320E console and of the WH2910 console (Ventus 830) are the same and you will be using the customized server option in the console which is handled by the WIFi firmware. Setup via WSView app. 

There is no big example, just straightforward.

In the WSView app you have to enter the IP address of your server (RPi, ....), a path (it doesn't matter which path, but a path has to be there - otherwise the console will not send data - so /data is ok)
a port: 8000 is a good choice (has to be a port which is not used by another application on your server, hence 80 is not advisable)
and and posting interval - can be anything between 16 seconds and several minutes - I use 16 seconds)

your [Interceptor] section in weewx conf has to match these entries:

#---------------------- start weewx.conf excerpt --------------------
[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, smarthub, or access
    #   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
    #   lw30x - oregon scientific LW301/LW302
    #   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
    #   ecowitt-client - any hardware that uses the ecowitt protocol
    #   wu-client - any hardware that uses the weather underground protocol
    device_type = ecowitt-client
    port = 8000
    iface = eth0
# ---------------------- end weewx.conf excerpt --------------------

- if you use your WLAN interface ("WiFi"), the line must be "iface =wlan0" (without "")
- not using the interface option can lead to difficulties on certain servers,
- using WLAN on a Raspberry Pi is not very stable for the interceptor driver (feedback from several users)
that's not a weewx issue but a RPi issue
=> (at least on a RPi, Ethernet cable connection recommended)

to verify if you receive data you can run weewx directly in console mode:

sudo weewxd /etc/weewx/weewx.conf

(or whereever your weewx.conf is located - might be /home/weewx/weewx.conf depending on your weewx installation)

you should get a console output like:
LOOP:   2021-06-02 11:33:03 CEST (1622626383) altimeter: 30.040055564887226, appTemp: 77.23757274365485, barometer: 30.002845135685217, cloudbase: 5485.357712782114, dateTime: 1622626383, dewpoint: 55.90748098068117, heatindex: 75.54, humidex: 81.21588779667552, inDewpoint: 53.130015237966376, inHumidity: 43.0, inTemp: 77.4, maxSolarRad: None, outHumidity: 50.0, outTemp: 75.9, pressure: 29.03, radiation: 903.58, rain: None, rainRate: 0.0, usUnits: 1, UV: 8.0, windchill: 75.9, windDir: 53.0, windGust: 2.2, windSpeed: 0.9

Good luck !
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/38119453-cdd6-490f-b2f4-1fb78136b3ffn%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages