Allow for station data overrides #125

This commit is contained in:
Matt Walsh
2025-07-15 22:00:33 -05:00
parent 2db7f30de7
commit 7d50ce28bd
6 changed files with 16169 additions and 16139 deletions

View File

@@ -133,7 +133,10 @@ const baseScreens = [
// hazards
hazards,
// station name
(data) => `Conditions at ${locationCleanup(data.station.properties.name).substr(0, 20)}`,
(data) => {
const location = (StationInfo[data.station.properties.stationIdentifier]?.city ?? locationCleanup(data.station.properties.name)).substr(0, 20);
return `Conditions at ${location}`;
},
// temperature
(data) => {