Skip to content
New issue

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

Please, change var iconUrl to "http://openweathermap.org/img/wn/%s" #91

Open
dnegorov opened this issue Mar 13, 2021 · 0 comments
Open

Comments

@dnegorov
Copy link

iconURL = "http://openweathermap.org/img/w/%s"

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant