We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openweathermap/openweathermap.go
Line 33 in 73cba80
On the page https://openweathermap.org/weather-conditions recomended to use URL like http://openweathermap.org/img/wn/[email protected] With this URL you can get image with different sizes by adding postfix "@nx" to file name, where N can be 2 or 4: "50d.png" - defaul size 50x50px, "[email protected]" - x2 size 100x100px, "[email protected]" - x4 size 200x200px.
Example: owm.RetrieveIcon(".", w.Weather[0].Icon+"@4x.png")
owm.RetrieveIcon(".", w.Weather[0].Icon+"@4x.png")
And change var iconUrl to var IconUrl to make it changeable. In this case users can change URL to different icon set.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
openweathermap/openweathermap.go
Line 33 in 73cba80
On the page https://openweathermap.org/weather-conditions recomended to use URL like http://openweathermap.org/img/wn/[email protected]
With this URL you can get image with different sizes by adding postfix "@nx" to file name, where N can be 2 or 4:
"50d.png" - defaul size 50x50px,
"[email protected]" - x2 size 100x100px,
"[email protected]" - x4 size 200x200px.
Example:
owm.RetrieveIcon(".", w.Weather[0].Icon+"@4x.png")
And change var iconUrl to var IconUrl to make it changeable. In this case users can change URL to different icon set.
The text was updated successfully, but these errors were encountered: