more location naming cleanup
This commit is contained in:
parent
efd2cc7808
commit
70aa6bd336
|
@ -126,7 +126,7 @@ class CurrentWeather extends WeatherDisplay {
|
||||||
fill.wind = data.WindDirection.padEnd(3, '') + data.WindSpeed.toString().padStart(3, ' ');
|
fill.wind = data.WindDirection.padEnd(3, '') + data.WindSpeed.toString().padStart(3, ' ');
|
||||||
if (data.WindGust) fill['wind-gusts'] = `Gusts to ${data.WindGust}`;
|
if (data.WindGust) fill['wind-gusts'] = `Gusts to ${data.WindGust}`;
|
||||||
|
|
||||||
fill.location = this.data.station.properties.name.substr(0, 20);
|
fill.location = utils.string.locationCleanup(this.data.station.properties.name).substr(0, 20);
|
||||||
|
|
||||||
fill.humidity = `${data.Humidity}%`;
|
fill.humidity = `${data.Humidity}%`;
|
||||||
fill.dewpoint = data.DewPoint + String.fromCharCode(176);
|
fill.dewpoint = data.DewPoint + String.fromCharCode(176);
|
||||||
|
|
Loading…
Reference in a new issue