Skip to content

How to get current weather with specific measurement units? #436

@s101d1

Description

@s101d1

With pyowm, how to call this current weather API with units parameter (like "metric" or "imperial")?

I checked weather_at_place and weather_at_coords functions, but it seems there is no way to pass the units argument, so the returned data is always using the default "standard" units.


Also, is this a typo?

self.wnd = wind

I think the attribute name should be self.wind instead of self.wnd.

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