Fixed the weather widget, wind km/h was broken.
This commit is contained in:
parent
4c74de711f
commit
2d0cbf562e
|
@ -65,7 +65,8 @@ function worker(format, station)
|
|||
string.match(ws, "Relative[%s]Humidity:[%s]([%d]+)%%") or weather["{humid}"]
|
||||
weather["{press}"] = -- Pressure in hPa
|
||||
string.match(ws, "Pressure[%s].+%((.+)[%s]hPa%)") or weather["{press}"]
|
||||
weather["{windkmh}"] = -- Wind speed in KMH if MPH was available
|
||||
|
||||
-- Wind speed in KMH if MPH was available
|
||||
if weather["{windmph}"] ~= "N/A" then
|
||||
weather["{windkmh}"] = math.floor(weather["{windmph}"] * 1.6)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue