This "API" converts weather codes from OpenWeatherMap into images. This can be helpful if you use OpenWeatherMap and want to show your users suitable images for the current weather situation.
Clone the project on your CDN/WebServer. If necessary, in a subfolder.
Call the path, plus the IconCode and the extension "JPG":
https://yourweatherapi/images/ WeatherConditionCode
.jpg
Example/Demo: https://cdn.diestadt.app/i/weather/212.jpg
Weather-Condition-Code-List (Use the ID!)
All images are in 1080px X 608px size (16:9 aspect ratio). But you can also load them in double size.
https://yourweatherapi/images/ WeatherConditionCode
@2x.jpg
scattered clouds: 25-50% (ID: 802)
overcast clouds: 85-100% (ID: 804)
All photos and videos are free to use. Attribution is not required :) You can modify the photos – Be creative!
The whole thing is not yet a real API, there are certainly better images, cool functions, but that can still be better! So feel free to collaborate.
Ideas:
- Day and night images
- Videos / GIFs
- An API
- XD file for editing & easy export