weewx stopped logging

120 views
Skip to first unread message

Ed Wilts

unread,
Mar 10, 2022, 9:00:48 PM3/10/22
to weewx-user
Everything seemed to be working fine with my weewx/Tempest until mid-February, but now nothing is logging.
The Tempest works fine and uploads to the Tempest website.
weewx appears to be working
weewx is not getting data via weatherflowudp

/var/log/weewx:

Mar 10 19:42:05 weatherpi weewx[3727]: Starting weewx weather system: weewx.
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.restx: StationRegistry: Station will not be registered: no station_url specified.
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.restx: Wunderground-PWS: Data for station KTXCEDAR382 will be posted
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.restx: PWSWeather: Data for station Tempest57399 will be posted
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.restx: CWOP: Data for station GW0498 will be posted
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.restx: WOW: Posting not enabled.
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.restx: AWEKAS: Posting not enabled.
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Mar 10 19:42:05 weatherpi weewx[3742] INFO __main__: Starting up weewx version 4.7.0
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.manager: Starting backfill of daily summaries
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.manager: Daily summaries up to date
Mar 10 19:42:05 weatherpi weewx[3742] INFO weewx.engine: Starting main packet loop.
Mar 10 19:50:58 weatherpi weewx[3742] INFO __main__: Received signal TERM (15).
Mar 10 19:50:58 weatherpi weewx[3742] INFO weewx.engine: Main loop exiting. Shutting engine down.

weewx.conf:

[WeatherFlowUDP]
    driver = user.weatherflowudp
    log_raw_packets = False
    udp_address = <broadcast>
    # udp_address = 0.0.0.0
    # udp_address = 255.255.255.255
    udp_port = 50222
    udp_timeout = 90
    share_socket = False

    [[sensor_map]]
        outTemp = air_temperature.ST-00051784.obs_st
        outHumidity = relative_humidity.ST-00051784.obs_st
        pressure = station_pressure.ST-00051784.obs_st
        lightning_strikes = lightning_strike_count.ST-00051784.obs_st
        avg_distance = lightning_strike_avg_distance.ST-00051784.obs_st
        outTempBatteryStatus = battery.ST-00051784.obs_st
        windSpeed = wind_speed.ST-00051784.rapid_wind
        windDir = wind_direction.ST-00051784.rapid_wind
        lux = illuminance.ST-00051784.obs_st
        UV = uv.ST-00051784.obs_st
        rain = rain_accumulated.ST-00051784.obs_st
        windBatteryStatus = battery.ST-00051784.obs_st
        radiation = solar_radiation.ST-00051784.obs_st
        lightningXXX = distance.ST-00051784.evt_strike
        lightningYYY = energy.ST-00051784.evt_strike

/var/log/syslog:

Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: sensor map is {'outTemp': 'air_temperature.ST-00051784.obs_st', 'outHumidity': 'relative_humidity.ST-00051784.obs_st', 'pressure': 'station_pressure.ST-00051784.obs_st', 'lightning_strikes': 'lightning_strike_count.ST-00051784.obs_st', 'avg_distance': 'lightning_strike_avg_distance.ST-00051784.obs_st', 'outTempBatteryStatus': 'battery.ST-00051784.obs_st', 'windSpeed': 'wind_speed.ST-00051784.rapid_wind', 'windDir': 'wind_direction.ST-00051784.rapid_wind', 'lux': 'illuminance.ST-00051784.obs_st', 'UV': 'uv.ST-00051784.obs_st', 'rain': 'rain_accumulated.ST-00051784.obs_st', 'windBatteryStatus': 'battery.ST-00051784.obs_st', 'radiation': 'solar_radiation.ST-00051784.obs_st', 'lightningXXX': 'distance.ST-00051784.evt_strike', 'lightningYYY': 'energy.ST-00051784.evt_strike'}
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: *** Sensor names per packet type
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: packet obs_air: ('time_epoch', 'station_pressure', 'air_temperature', 'relative_humidity', 'lightning_strike_count', 'lightning_strike_avg_distance', 'battery', 'report_interval')
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: packet obs_sky: ('time_epoch', 'illuminance', 'uv', 'rain_accumulated', 'wind_lull', 'wind_avg', 'wind_gust', 'wind_direction', 'battery', 'report_interval', 'solar_radiation', 'local_day_rain_accumulation', 'precipitation_type', 'wind_sample_interval')
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: packet rapid_wind: ('time_epoch', 'wind_speed', 'wind_direction')
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: packet evt_precip: time_epoch
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: packet evt_strike: ('time_epoch', 'distance', 'energy')
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: packet obs_st: ('time_epoch', 'wind_lull', 'wind_avg', 'wind_gust', 'wind_direction', 'wind_sample_interval', 'station_pressure', 'air_temperature', 'relative_humidity', 'illuminance', 'uv', 'solar_radiation', 'rain_accumulated', 'precipitation_type', 'lightning_strike_avg_distance', 'lightning_strike_count', 'battery', 'report_interval')
Mar 10 19:50:58 weatherpi systemd[1]: Started LSB: weewx weather system.
Mar 10 19:50:58 weatherpi /weewxd: weatherflowudp: MainThread: Listening for UDP broadcasts to IP address <broadcast> on port 50222, with timeout 90 and share_socket False...
Mar 10 19:52:28 weatherpi /weewxd: weatherflowudp: MainThread: Socket timeout waiting for incoming UDP packet!
Mar 10 19:53:58 weatherpi /weewxd: weatherflowudp: MainThread: Socket timeout waiting for incoming UDP packet!

I've updated everything to current but no luck yet.  Any suggestions as to what I should try?

Thanks!

vince

unread,
Mar 11, 2022, 12:01:03 PM3/11/22
to weewx-user
Run my standalone UDP listener with the --raw option and see if your computer is hearing anything (github link)

Or run wireshark if you know how to do that.  Basically sniff the wire/wireless.

You have the weewx driver set to "share_socket = False" so you will need to shut down weewx first.  FWIW, I recommend setting that True so multiple programs can listen for the broadcasts.

Ed Wilts

unread,
Mar 12, 2022, 12:47:53 PM3/12/22
to weewx...@googlegroups.com
Thanks Vince,

I did change share_socket to True but have weewx down for safety while I debug this.
Your tool doesn't show any incoming UDP packets.  This just sits there forever, not displaying anything:
pi@weatherpi:~/weatherflow-udp-listener $ ./listen.py --raw

I know I have TCP from the hub because I'm seeing updates to https://tempestwx.com/station/57399/graph/159963/temp/4 (and wunderground) so it's just the UDP bits that aren't working.  But they did work for over 6 months :(

It's not just your tool - I also tested with tcpdump and netcat and both come up dry.

I reconfigured the wireless on both the Pi and the Tempest to use the same 2.4Ghz SSID (my home guest network - my main internal network is both 2.4 and 5 with the same SSID managed by the ASUS router.)

So now that I've demonstrated that UDP packets aren't getting from my hub to my Pi, what can I do?  They're sitting about a foot apart from each other.

Thanks again,
   .../Ed

--
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/hT4aoA3t_wg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b5719a40-d68a-45e7-89eb-5bc97921946fn%40googlegroups.com.

vince

unread,
Mar 12, 2022, 1:09:43 PM3/12/22
to weewx-user
I've never heard of the UDP not working.   Typically the mistake folks make is trying to put the hub on a IoT network and they forget that the weewx box has to be on that network too because they forget that broadcasts don't route. Make sure your weewx/sniffer/listener boxes are really on the same wifi network as the hub. 

If your hub is on the same network as weewx and your sniffer(s) and that doesn't help, then I guess get WF support involved via their forums.

I'm guessing your guest LAN is a different subnet than your regular LAN (?) so you could try 'traceroute -n' to the ip of the hub and see if it's a straight shot or if it's routing through your ASUS router.

But if you have them all on your normal LAN and they worked, and moved them and it broke, it's 'likely' that one box isn't on the same network as the other.



Ed Wilts

unread,
Mar 12, 2022, 4:47:23 PM3/12/22
to weewx...@googlegroups.com
Thanks Vince - you got me on the right track.  I added a network block in my router to prevent my Pi from connecting to the 5Ghz network and now that they're on the same 2.4Ghz network, I'm getting weather data via UDP again.

Now that it's getting data and it's updating the local web page and my externally-facing website, I just need to get the updates to the weatherpi page on the local display.  I've got the fields on the display but not the data.  I don't know what that's about but I'll work on that some more later.

Thanks again for your help,
   .../Ed

--
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/hT4aoA3t_wg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages