LoveBootCaptain / WeatherPi_TFT

a weather display for a raspberry pi and a TFT display written in python3 and pygame
Other
80 stars 24 forks source link

Conversion of Current Wind Speed from m/s to mph #34

Open g0ods opened 4 years ago

g0ods commented 4 years ago

Hi there, I'm new to GitHub so am not sure if this is the best way to raise a bug report. In my understanding wind speed from Weatherbit.IO comes as m/s, which to convert to km/h you need to multiply by 3.6, similarly to convert from m/s to mph you need to multiply by 2.24, so in WeatherPiTFT.py the following line, line #731 wind_speed = wind_speed 3.6 if METRIC else wind_speed perhaps should be something like wind_speed = wind_speed 3.6 if METRIC else wind_speed * 2.2

BTW I love your work on this project, g0ods.