-
Notifications
You must be signed in to change notification settings - Fork 169
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
[Feature suggestion] Change wind speed unit #188
Comments
@feliciakrismanta implemented with #189 :) |
Would it be possible to expand this to km/h, beaufort and knots also? cheers |
Yes @robinpaulson . |
What are the conversion units for wind direction? |
@oopsie1412 What do you mean for conversion of the wind direction? It's already in degrees? If you're looking to convert the degrees into a cardinal direction here's a table with the degree breakdown. Also remember if you do go that route that the direction in degrees is saying which direction the wind is coming from and not the direction it's blowing. |
@oopsie1412 Please check https://github.com/csparpa/pyowm/blob/master/pyowm/utils/temputils.py User @robinpaulson proposed conversion also to/from "beaufort and knots" months ago... I am not an expert here, so if anybody can provides references to the math I can implement those conversions as well and pack them into version 3 (will be released in 2020) |
Implemented with 04bd0f5 |
While
get_temperature()
supports unit parameter,get_wind()
does not support it. OWM has wind speed unit available as Imperial (miles/hour) or Metric (meter/sec) unit.Suggested implementation:
w.get_wind(unit = 'Imperial')
orw.get_wind(unit = 'miles/hour')
orw.get_wind('Imperial')
References:
https://openweathermap.org/weather-data
The text was updated successfully, but these errors were encountered: