matthewwall / weewx-windy

uploader for windy.com
GNU General Public License v3.0
18 stars 2 forks source link

Local networking IP address change causes Windy uploads to fail until weewx restarted. #16

Open joecool1029 opened 2 years ago

joecool1029 commented 2 years ago

I was considering whether to open this upstream on weewx but I haven't seen any other components fail on it this way, just this uploader.

Steps to reproduce:

I will try to research and fix this. I think what might be happening is you specify the domain for windy's API and if uploads fail to it, this plugin or weewx runs a DNS lookup again and caches the failure.

joecool1029 commented 2 years ago

Apr 14 18:15:36 raspberrypi python3[21471]: weewx[21471] INFO weewx.restx: Windy: Published record 2022-04-14 18:15:00 EDT (1649974500) Apr 14 18:15:37 raspberrypi python[22510]: windy[22510] DEBUG weewx.restx: Windy: Failed upload attempt 1: HTTP Error 400: Bad Request Apr 14 18:15:43 raspberrypi python[22510]: windy[22510] DEBUG weewx.restx: Windy: Failed upload attempt 2: HTTP Error 400: Bad Request Apr 14 18:15:48 raspberrypi python[22510]: windy[22510] DEBUG weewx.restx: Windy: Failed upload attempt 3: HTTP Error 400: Bad Request Apr 14 18:15:48 raspberrypi python[22510]: windy[22510] ERROR weewx.restx: Windy: Failed to publish record 2022-04-14 18:15:32 EDT (1649974532): Failed upload after 3 tries

What log looks like when it fails due to no connection.

This is what it looks like when it fails after the connection comes back. Apr 14 08:16:37 raspberrypi weewx[510] ERROR weewx.restx: Windy: Failed to publish record 2022-04-14 08:15:00 EDT (1649938500): Failed upload after 3 tries

No other failure messages like the debug had.