mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-21 02:59:31 -07:00
portrait current conditions #167
This commit is contained in:
@@ -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:';
|
||||
|
||||
Reference in New Issue
Block a user