Windy-weewx

105 views
Skip to first unread message

Tomasz J

unread,
Feb 10, 2026, 1:10:17 PM (8 days ago) Feb 10
to weewx-user

Hi all,
maybe I missed an announcement or update, but has there been any work on adapting the original Windy REST uploader for the new Windy Stations API v2?

It looks like the legacy Windy uploader (API key–based) started returning HTTP 400 errors recently, likely due to Windy enforcing the v2 endpoints and authentication model (station password / bearer auth).

Is there an updated plugin or patch in progress, or are people handling Windy uploads via external scripts now?

Thanks for any insight.


Vetti52

unread,
Feb 11, 2026, 4:56:57 AM (8 days ago) Feb 11
to weewx-user
Thanks for this information. Fortunately the old version works still fine for me.
Looking at https://stations.windy.com/api-reference, there is a deadline:
______________

This is a new API, effective from January 2026.

If you are currently using a previous (legacy) version of the API, please note that it is no longer supported. The legacy API will remain operational only until the end of 2026, after which it will be fully shut down.

We strongly recommend migrating to the new API specification below as soon as possible.





Observations
Upload measurements or read observations from your stations. Authenticate with the station password.
______
So there is no Api-Key needed for uploading data, but for management of the station. 
The station password is provided by Windy. If I would have a hint of python skills, I would try to update the weewx windy uploader. Maybe someone can do this until end of 2026, please????

Kind regards
Peter

jterr...@gmail.com

unread,
Feb 11, 2026, 5:31:24 AM (8 days ago) Feb 11
to weewx-user
I have modified the original Windy uploader  to the Windy API V2 :


Two parameters are required : station_id and station_password.  You can find these parameters here : https://stations.windy.com/stations

John Smith

unread,
Feb 11, 2026, 6:09:05 AM (8 days ago) Feb 11
to weewx...@googlegroups.com
You're missing an inverted comma

  File "/tmp/tmp10z6i7_5/weewx-windy-master/install.py", line 23
    'station_password': 'replace_me}}},

--
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+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/547ea9ca-f041-4560-bdd9-d34f6075d4ean%40googlegroups.com.

Vetti52

unread,
Feb 11, 2026, 6:12:02 AM (8 days ago) Feb 11
to weewx-user
Great! Thanks a lot. 
Just another question to your fork of M Wall‘s version: This one needed to install python3-setuptools, because of a deprecated module „distutils“ used here. Did you „repair“ this part? 
Sorry for questioning, but I am completely naive with python.

John Smith

unread,
Feb 11, 2026, 6:20:45 AM (8 days ago) Feb 11
to weewx...@googlegroups.com
Looks like windy might have been more flexible in v1

{"message":["winddir must be an integer number","winddir must not be greater than 359","winddir must not be less than 0"],"error":"Bad Request","statusCode":400}

John Smith

unread,
Feb 11, 2026, 6:21:54 AM (8 days ago) Feb 11
to weewx...@googlegroups.com
Actually it is because there isn't any atm

winddir=None

Francisco Alonso

unread,
Feb 11, 2026, 7:11:18 AM (7 days ago) Feb 11
to weewx...@googlegroups.com
I still get the same error message: DEBUG weewx.restx: Windy: Failed upload attempt 3: HTTP Error 400: Bad Request



--
Saludos/Regards,

Francisco Javier Alonso

Jacques Terrettaz

unread,
Feb 11, 2026, 8:28:28 AM (7 days ago) Feb 11
to weewx...@googlegroups.com
Thanks. I have added the missing quote.

Jacques Terrettaz

unread,
Feb 11, 2026, 8:48:10 AM (7 days ago) Feb 11
to weewx...@googlegroups.com
I have therefore forced winddir to be an integer.  

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/-8W4t9NXiPA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAGTinV4KrOdvyeuVEnfCvcp10OPYXwqMN-6tXkjEQYDiN17Mkg%40mail.gmail.com.

Jacques Terrettaz

unread,
Feb 11, 2026, 9:05:49 AM (7 days ago) Feb 11
to weewx...@googlegroups.com
I removed weewx version checking, so no more need to import "distutils".

It is now specified in the readme file that Weewx V3,8,0 or greater is required.

-- 
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/-8W4t9NXiPA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Vetti52

unread,
Feb 11, 2026, 9:26:58 AM (7 days ago) Feb 11
to weewx-user
no idea, why to check the version here, but I doubt, that reading the readme file will proof the version required.
I had a look into the python3 packaging doc, where the correct version check looks like

from packaging.version import Version, parse

So, I think, that this should replace distutils in the future, if version check is needed. Anyway, I am not an expert. So, I trust in your coding.

Thanks
Peter

Jacques Terrettaz

unread,
Feb 11, 2026, 9:33:33 AM (7 days ago) Feb 11
to weewx...@googlegroups.com
I have changed the code so that if winddir is None, it is not sent to Windy.


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/-8W4t9NXiPA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAB2B1-XTJaOKx%3DJUT-Q%2BWPoQHX%3DQH7upBfZSqNF7XXz4jMYbKQ%40mail.gmail.com.

gary....@gmail.com

unread,
Feb 11, 2026, 10:26:22 AM (7 days ago) Feb 11
to weewx-user
Thank you, working well.

Francisco Alonso

unread,
Feb 11, 2026, 10:31:59 AM (7 days ago) Feb 11
to weewx...@googlegroups.com
Working over here too. Thanks!

Mark Fraser

unread,
Feb 12, 2026, 3:12:56 AM (7 days ago) Feb 12
to weewx...@googlegroups.com
Do you need to remove the old version first, or will this install as an update?


Jacques Terrettaz

unread,
Feb 12, 2026, 4:31:40 AM (7 days ago) Feb 12
to weewx...@googlegroups.com
It is easier to remove the old version first. 

If not removed before, the installation of the new version will be OK, but you will have to clean-up the [[Windy]] stanza of weewx.conf by deleting the api_key =  line, and the station= line if applicable.

At the end, the stanza should have only  these 2 lines :
[[Windy]]
        station_id = replace_me
        station_password = replace_me


Le 12 févr. 2026 à 09:12, Mark Fraser <mfr...@gmail.com> a écrit :


Do you need to remove the old version first, or will this install as an update?



--
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/-8W4t9NXiPA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

John Smith

unread,
Feb 12, 2026, 4:32:13 AM (7 days ago) Feb 12
to weewx...@googlegroups.com
Do you need to remove the old version first, or will this install as an update?

I didn't consider that and just installed the new version and turned out I didn't need to. 

--
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+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages