portrait current conditions #167

This commit is contained in:
Matt Walsh
2026-04-19 14:39:59 -05:00
parent cfbe6b540c
commit ad05f4c580
10 changed files with 107 additions and 9 deletions

View File

@@ -201,7 +201,9 @@ class CurrentWeather extends WeatherDisplay {
temp: this.data.Temperature + String.fromCharCode(176),
condition,
wind,
'wind-portrait': wind,
location,
'portrait-location': location,
humidity: `${this.data.Humidity}%`,
dewpoint: this.data.DewPoint + String.fromCharCode(176),
ceiling: (this.data.Ceiling === 0 ? 'Unlimited' : this.data.Ceiling + this.data.CeilingUnit),
@@ -210,7 +212,9 @@ class CurrentWeather extends WeatherDisplay {
icon: { type: 'img', src: this.data.Icon },
};
if (this.data.WindGust !== '-') fill['wind-gusts'] = `Gusts to ${this.data.WindGust}`;
if (this.data.WindGust !== '-') {
fill['wind-gusts'] = `Gusts to ${this.data.WindGust}`;
}
if (this.data.observations.heatIndex.value && this.data.HeatIndex !== this.data.Temperature) {
fill['heat-index-label'] = 'Heat Index:';