Page 1 of 1

Help with Windy.com upload

Posted: Thu 14 Oct 2021 1:58 am
by Palometero
I have a WeatherFlow Tempest running CumulusMX 3.13.4 b3149. I've turned on data logging and debug logging and all I am getting is

Code: Select all

Windy: URL = https://stations.windy.com/pws/update/<<API_KEY>>?station=0&dateutc=2021-10-14+01:54:00&winddir=107&windspeedmph=7.8&windgustmph=10.0&tempf=84.7&rainin=0.00&baromin=29.815&dewptf=76.7&humidity=77&uv=0.0
then I get

Code: Select all

Windy: ERROR - An error occurred while sending the request
Is there any way to debug this? I have Weather Underground working fine. Just trying to get the Windy.com upload working.

Any and all help appreciated!

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 8:21 am
by mcrossley
First, try copying the latest URL from the log, and substitute your API key into it. Then try and use that URL in a browser on your desktop - I suspect it will work?

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 12:33 pm
by Palometero
Thanks for the response @mcrossley Yes, it works. Got this:

Code: Select all

SUCCESS (valid measurements count: 9, valid station info count: 0)
So is the tag not getting replaced? How do you fix this?

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 1:00 pm
by mcrossley
I think it is a problem with your rPi. My Windy uploads were failing too.

Windy uses Let's Encrypt for their SSL certificates, recently (30th Sept) the Let's Encrypt R3 intermediate CA certificate they use to authenticate their client certificates expired.

The rPi has not kept up with that change and still has the old intermediate CA cert.

I followed this question and it started working the following day on my rPi...
https://stackoverflow.com/questions/694 ... d-use-isrg

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 2:41 pm
by Palometero
@mcrossley, Thanks for that. I've updated the ca-certificates file. I'll let you know if that does it.

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 2:50 pm
by Palometero
[SOLVED]
Ok, that worked. Thank you @mcrossley! I just got this:

Code: Select all

2021-10-14 09:42:00.236 Windy: URL = https://stations.windy.com/pws/update/<<API_KEY>>?station=0&dateutc=2021-10-14+14:42:00&winddir=107&windspeedmph=2.9&windgustmph=4.8&tempf=85.2&rainin=0.00&baromin=29.837&dewptf=74.7&humidity=71&uv=7.0
2021-10-14 09:42:02.395 Windy: Response = OK: SUCCESS (valid measurements count: 9, valid station info count: 0)
Now to see if it shows up on windy.com

So just for anyone else looking for an answer on a rPi 4, If you get a "Windy: ERROR - An error occurred while sending the request" in your MXdiags/somedate.txt. do this

Code: Select all

sudo nano /etc/ca-certificates.conf
Put a ! in front of the line: /mozilla/DST_Root_CA_X3.crt
Save the file: Ctrl-X, y
sudo update-ca-certificates

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 3:03 pm
by mcrossley
Mine took a full day before the data started showing again! It seems it doesn't like you going offline for extended periods.

Re: Help with Windy.com upload

Posted: Thu 14 Oct 2021 5:38 pm
by AndyKF650
Perfect reply, I had given up on Windy since the certificate change. The data started to come back on the site in about 15mins.

Re: Help with Windy.com upload

Posted: Fri 15 Oct 2021 12:46 am
by Palometero
It came up for me in a few minutes once the cert issue was taken care of.

Re: Help with Windy.com upload

Posted: Fri 22 Oct 2021 3:10 am
by billy
I got this sorted out yesterday, but like Mark the data didn't appear on the site until this morning, although it has uploaded all the data since I made the correction :?

Re: Help with Windy.com upload

Posted: Fri 22 Oct 2021 7:46 pm
by f4phlyer
Had the same problem, CumulusMX running on "Raspberry Pi 3 Model B Rev 1.2".

Did a sudo apt update/upgrade, reboot then:

From the "stackoverflo" link from above used the solution
sudo apt install -y ca-certificates
sudo sed -i '/^mozilla\/DST_Root_CA_X3.crt$/ s/^/!/' /etc/ca-certificates.conf
sudo update-ca-certificates
Reboot.

Running fine.

Many thanks again to the users/supporters.