more location naming cleanup

This commit is contained in:
Matt Walsh 2022-08-04 13:00:12 -05:00
parent efd2cc7808
commit 70aa6bd336

View file

@ -126,7 +126,7 @@ class CurrentWeather extends WeatherDisplay {
fill.wind = data.WindDirection.padEnd(3, '') + data.WindSpeed.toString().padStart(3, ' ');
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.dewpoint = data.DewPoint + String.fromCharCode(176);