I have an issue to receive the data from my new weather station 
((FineOffset clone, Eurochron WS2900) that is sent through my local network 
to a Raspberry Pi running Weewx.

The station (IP 192.168.0.11 below) is configured to send according to WU 
protocol *but* to the (static) IP of my R-Pi 192.168.0.160 and port 8000. 
The problem is that Interceptor receives *something* but the packets are 
empty. 

If I instead use Netcat to monitor the port, correct data is received each 
60s (it's no row brake after GET, forum editor adds that):

pi@raspberrypi:~ $ sudo nc -l 8000
GET 
ID=EMCO&PASSWORD=1234&indoortempf=70.0&tempf=69.8&dewptf=56.1&windchillf=69.8&indoorhumidity=59&humidity=62&windspeedmph=0.0&windgustmph=0.0&winddir=356&absbaromin=29.076&baromin=29.912&rainin=0.000&dailyrainin=0.000&weeklyrainin=0.000&monthlyrainin=0.000&solarradiation=0.00&UV=0&dateutc=2019-10-24%2016:24:42&softwaretype=EasyWeatherV1.4.4&action=updateraw&realtime=1&rtfreq=5
 
HTTP/1.0
Host: 192.168.0.160
Accept:*/*
Connection: Close

But this data never reach Weewx through Interceptor, and the weewx debug 
info shows that Interceptor queue is always empty. By running Interceptor 
alone and directly (below in debug mode) it shows that something really is 
happening/received each 60s (the result, four last rows, are written each 
60 s), *but* it's empty:

pi@raspberrypi:~ $ sudo PYTHONPATH=/usr/share/weewx python 
/usr/share/weewx/user/interceptor.py --port=8000 --debug --device=observer 
--mode=listen
identifiers: {}
raw data: 
raw packet: {'usUnits': 16, 'dateTime': 1571935276}
mapped packet: {'usUnits': 16, 'dateTime': 1571935276}

And if I instead use Tcpdump, I also get packets with no data (or at least 
not the weather station data, only the necessary communication related, I 
think). And also a little bit too often, each 16 s, but nothing additional 
as long as the data i see with Netcat each 60s:

pi@raspberrypi:~ $ sudo tcpdump -i wlan0 port 8000 -A -X -v
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 
262144 bytes
18:45:15.911352 IP (tos 0x0, ttl 128, id 486, offset 0, flags [none], proto 
TCP (6), length 44)
    192.168.0.11.10877 > 192.168.0.160.8000: Flags [S], cksum 0x8304 
(correct), seq 275093, win 5840, options [mss 1460], length 0
0x0000:  4500 002c 01e6 0000 8006 b6ea c0a8 000b  E..,............
0x0010:  c0a8 00a0 2a7d 1f40 0004 3295 0000 0000  ....*}.@..2.....
0x0020:  6002 16d0 8304 0000 0204 05b4            `...........
18:45:15.911459 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    192.168.0.160.8000 > 192.168.0.11.10877: Flags [R.], cksum 0xb17d 
(correct), seq 0, ack 275094, win 0, length 0
0x0000:  4500 0028 0000 4000 4006 b8d4 c0a8 00a0  E..(..@.@.......
0x0010:  c0a8 000b 1f40 2a7d 0000 0000 0004 3296  .....@*}......2.
0x0020:  5014 0000 b17d 0000                      P....}..
18:45:31.903936 IP (tos 0x0, ttl 128, id 487, offset 0, flags [none], proto 
TCP (6), length 44)
    192.168.0.11.28473 > 192.168.0.160.8000: Flags [S], cksum 0x3504 
(correct), seq 277465, win 5840, options [mss 1460], length 0
0x0000:  4500 002c 01e7 0000 8006 b6e9 c0a8 000b  E..,............
0x0010:  c0a8 00a0 6f39 1f40 0004 3bd9 0000 0000  ....o9.@..;.....
0x0020:  6002 16d0 3504 0000 0204 05b4            `...5.......
18:45:31.904053 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    192.168.0.160.8000 > 192.168.0.11.28473: Flags [R.], cksum 0x637d 
(correct), seq 0, ack 277466, win 0, length 0
0x0000:  4500 0028 0000 4000 4006 b8d4 c0a8 00a0  E..(..@.@.......
0x0010:  c0a8 000b 1f40 6f39 0000 0000 0004 3bda  .....@o9......;.
0x0020:  5014 0000 637d 0000                      P...c}..

It's the same behaviour regardless if I use eth0 or wlan0 interface on my 
Pi. Version of Interceptor is 0.46 (latest). Have also tried different 
device settings in Interceptor, but because already the raw data is missing 
it may be irrelevant. 

But the weather station seems to be correct configured and transmits 
everything ok I think, otherwise the data could not have been captured by 
Netcat on my Pi. But why is it then filtered out (?) before it gets to 
Tcpdump or Interceptor, what is the difference in interface handling 
compared to Netcat ?

I'm VERY thankful if somebody could help. I have spent days on this now. 
Have a faulty station that should be replaced ASAP (Renkforce/FineOffset 
2315) that only worked ok for few weeks. But it was USB interface on that 
(=easier ;-).



-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a8eb1780-e7bc-41c8-97d6-41350a5ee906%40googlegroups.com.

Reply via email to