From 70aa6bd3369bc470592ba54ea8eb28e62248ae4d Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Thu, 4 Aug 2022 13:00:12 -0500 Subject: [PATCH] more location naming cleanup --- server/scripts/modules/currentweather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/modules/currentweather.js b/server/scripts/modules/currentweather.js index 8da9403..f4346b2 100644 --- a/server/scripts/modules/currentweather.js +++ b/server/scripts/modules/currentweather.js @@ -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);