Windy not working?
Moderator: Mattk
-
garybridge
- Expert Boarder

- Posts: 95
- Joined: Tue Nov 05, 2019 7:04 pm
- Contact:
-
garybridge
- Expert Boarder

- Posts: 95
- Joined: Tue Nov 05, 2019 7:04 pm
- Contact:
Re: Windy not working?
6.4 April 4th for me
Re: Windy not working?
Windy should work fine with current Meteobridge version.
To give some hints how to deal with the changing upload API. Current windy accounts provide 3 credentials:
1) 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.
2) 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).
3) 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?k ... &station=0
The returning JSON text shows new Station ID and PASSWORD
To give some hints how to deal with the changing upload API. Current windy accounts provide 3 credentials:
1) 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.
2) 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).
3) 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?k ... &station=0
The returning JSON text shows new Station ID and PASSWORD
Re: Windy not working?
I have just updated to the latest meteobridge firmware and used my windy station password and station ID and can confirm this is all working now.
Thanks for sorting it!
Thanks for sorting it!
Station: Davis Vantage Pro2, MeteoBridge, Meteotemplate 18
My Aurora Meteobridge site
Dumfries Weather (geo-restricted to UK)
My Aurora Meteobridge site
Dumfries Weather (geo-restricted to UK)

