Mapping between API response and weather icons
-
Hello,
I am using windy API for a custom weather forecast widget. How can I map the response data to the weather summary icon (cloudy, sunny, rainy, etc)? I can't find anything related in the API docs. -
Hello @sdolotom. Are you referring to ptype parameter? If so, check Parameters section of docs https://api.windy.com/point-forecast/docs#parameters
-
@filip_k Hello!
ptype
gives the precipitation info, yes. But how do I e.g. derive the cloud cover summary from the three valueslclouds
,mclouds
andhclouds
? I mean, how to convert them to "cloudy", "partly cloudy" etc? -
@sdolotom There is no only right way to do so. You could perhaps have a look at what meteoblue has to say about this topic (section Quantification of cloud cover) https://content.meteoblue.com/en/specifications/weather-variables/clouds