Skip to content

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

@dnegorov

Description

@dnegorov

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/50d@4x.png
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,
"50d@2x.png" - x2 size 100x100px,
"50d@4x.png" - 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions