mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 03:59:30 -07:00
cleanup for metric floating point
This commit is contained in:
@@ -82,6 +82,8 @@ class LatestObservations extends WeatherDisplay {
|
|||||||
Temperature = utils.units.celsiusToFahrenheit(Temperature);
|
Temperature = utils.units.celsiusToFahrenheit(Temperature);
|
||||||
WindSpeed = utils.units.kphToMph(WindSpeed);
|
WindSpeed = utils.units.kphToMph(WindSpeed);
|
||||||
}
|
}
|
||||||
|
WindSpeed = Math.round(WindSpeed);
|
||||||
|
Temperature = Math.round(Temperature);
|
||||||
|
|
||||||
const fill = {};
|
const fill = {};
|
||||||
fill.location = utils.string.locationCleanup(condition.city).substr(0, 14);
|
fill.location = utils.string.locationCleanup(condition.city).substr(0, 14);
|
||||||
|
|||||||
Reference in New Issue
Block a user