I have changed the code so that if winddir is None, it is not sent to Windy.


> Le 11 févr. 2026 à 13:10, Francisco Alonso <[email protected]> a 
> écrit :
> 
> I still get the same error message: DEBUG weewx.restx: Windy: Failed upload 
> attempt 3: HTTP Error 400: Bad Request
> 
> On Wed, 11 Feb 2026 at 12:21, John Smith <[email protected] 
> <mailto:[email protected]>> wrote:
>> Actually it is because there isn't any atm
>> 
>> winddir=None
>> 
>> On Wed, 11 Feb 2026 at 22:20, John Smith <[email protected] 
>> <mailto:[email protected]>> wrote:
>>> 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}
>>> 
>>> On Wed, 11 Feb 2026 at 22:08, John Smith <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>>> You're missing an inverted comma
>>>> 
>>>>   File "/tmp/tmp10z6i7_5/weewx-windy-master/install.py", line 23
>>>>     'station_password': 'replace_me}}},
>>>> 
>>>> On Wed, 11 Feb 2026 at 21:31, [email protected] 
>>>> <mailto:[email protected]> <[email protected] 
>>>> <mailto:[email protected]>> wrote:
>>>>> I have modified the original Windy uploader  to the Windy API V2 :
>>>>> 
>>>>> https://github.com/Jterrettaz/weewx-windy
>>>>> 
>>>>> Two parameters are required : station_id and station_password.  You can 
>>>>> find these parameters here : https://stations.windy.com/stations
>>>>> 
>>>>> 
>>>>> 
>>>>> Le mercredi 11 février 2026 à 10:56:57 UTC+1, Vetti52 a écrit :
>>>>>> 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
>>>>>> 
>>>>>> Tomasz J schrieb am Dienstag, 10. Februar 2026 um 19:10:17 UTC+1:
>>>>>>> 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.
>>>>>>> 
>>>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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 [email protected] 
>>>>> <mailto:[email protected]>.
>>>>> To view this discussion visit 
>>>>> https://groups.google.com/d/msgid/weewx-user/547ea9ca-f041-4560-bdd9-d34f6075d4ean%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/547ea9ca-f041-4560-bdd9-d34f6075d4ean%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
>> 
>> -- 
>> 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 [email protected] 
>> <mailto:[email protected]>.
>> To view this discussion visit 
>> https://groups.google.com/d/msgid/weewx-user/CAGTinV4ffEpz0FUM1GCxLZeEvm14014nOFxBKab6WytOgVGRtA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/CAGTinV4ffEpz0FUM1GCxLZeEvm14014nOFxBKab6WytOgVGRtA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> 
> 
> -- 
> Saludos/Regards,
> 
> Francisco Javier Alonso
> 
> -- 
> 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 
> [email protected] 
> <mailto:[email protected]>.
> To view this discussion visit 
> https://groups.google.com/d/msgid/weewx-user/CAB2B1-XTJaOKx%3DJUT-Q%2BWPoQHX%3DQH7upBfZSqNF7XXz4jMYbKQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/weewx-user/CAB2B1-XTJaOKx%3DJUT-Q%2BWPoQHX%3DQH7upBfZSqNF7XXz4jMYbKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/1E98B83A-2D6B-4316-B228-82FC9A92D854%40terrettaz.net.

Reply via email to