Just to leave some hints for others dealing with the changing upload API.
Current windy account provide 3 credentials:
-
the API KEY that is used in the legacy API to identify your account. It is just this, no password is needed here. The second parameter is the STATION ID, which is a pure numerical that allows you to enumerate multiple stations if you have that. Default is "0" for the regular case where just one station is registered.
-
The PASSWORD which is given to make use of the new V2 API. In addition to the password you are also provided a STATION ID which is not just an enumeration of your own stations, but a unique ID to identify your station within all stations on the network. This is no longer pure decimal but alphanumeric (or hex? I don't know and they don't tell).
-
As mentioned before STATION ID is different, when using legacy API or V2 API. This will give a lot of confusion for users, when they have to change from old to new upload API.
You can derive the V2 credentials from Windy when calling this URL with your legacy API KEY:
https://stations.windy.com/api/v2/pws?key=***your_legacy_api_key***&station=0
The returning JSON text shows new Station ID and PASSWORD
Caveat on handling the return information on uploads:
Error and/or success reporting is unclear as before. On some conditions it returns nothing, sometimes lengthy JSON stuff with "success":"true" somewhere in it, sometimes error messages introduced by "message", confusion all over the place and of course no documentation. I understand that it is hard to document things that don't have a proper design apart from "you get something in JSON", sometimes...