"wind_string" - string in KPH rather than MPH?

  • 1
  • Question
  • Updated 5 years ago
"wind_string" (appears to) always return speeds in MPH eg: "From the NNW at 22.0 MPH Gusting to 28.0 MPH". Is there some way to force the return of KPH in this string or is there a KPH version? If not, is it a conflict of the Terms of Service (ToS) to programmatically alter the string to contain the KPH equivalent values: ToS says: "(1) you will not modify the data from Wunderground Data Feed in any way;" I would have thought that altering the units is not altering the actual data, which in theory could be expressed in many ways eg in Kelvin.
Photo of Just checking

Just checking

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
Don't worry -- it's not be a conflict of ToS to programmatically convert units.
Photo of GEOSoft

GEOSoft

  • 26 Posts
  • 1 Reply Like
Why bother converting units? Just do a string replacement using the wind_kph and wind_gust_kph fields or create your own string by also including the wind_dir
Photo of Just checking

Just checking

  • 2 Posts
  • 0 Reply Likes
Good approach but not sure if this can cover the occasions when it just says "Calm", plus there may be other wording that I have not yet experienced. Like "Watch out - hurricane coming" !!