Reading raw data input stream

42 views
Skip to first unread message

Derek Harding

unread,
Sep 18, 2021, 6:41:54 PM9/18/21
to weewx-user
Hi,

I wish to verify what data (if any) is being received by the station hardware and forwarded to weewx. This is to help verify hardware module function. With wview I could tail -f the log to see that packets were being received or not. How can I at least achieve that with weewx? The syslog entries don't seem to help with that.

Thanks,
Derek

ian...@kinnon.org

unread,
Sep 19, 2021, 8:59:54 AM9/19/21
to weewx-user
What station are you using? I suspect the answer will be different depending on hardware
I use the Interceptor driver and if you enable debug in weex.conf you can then see the intercepted packets in syslog:-
Sep 19 13:51:56 weather weewx[23851] DEBUG user.interceptor: raw packet: {'wind_speed': 0.0, 'humidity_in': 60.0, 'temperature_in': 68.5, 'solar_radiation': 108.88, 'wind_gust': 0.0, 'wh65_battery': 0.0, 'humidity_out': 80.0, 'uv': 1.0, 'rain': 0.0, 'dateTime': 1632055914, 'pressure': 29.584, 'temperature_out': 60.4, 'wind_dir': 188.0, 'rain_total': 48.079, 'rain_rate': 0.0, 'usUnits': 1}
Sep 19 13:51:56 weather weewx[23851] DEBUG user.interceptor: mapped packet: {'pressure': 29.584, 'outHumidity': 80.0, 'UV': 1.0, 'radiation': 108.88, 'rain': 0.0, 'dateTime': 1632055914, 'windDir': 188.0, 'outTemp': 60.4, 'windSpeed': 0.0, 'inHumidity': 60.0, 'inTemp': 68.5, 'windGust': 0.0, 'rainRate': 0.0, 'usUnits': 1}

As Interceptor is grabbing the raw packets from the wifi interface, a tcpdump would also show the data

Reply all
Reply to author
Forward
0 new messages