From 0dec4e27aacc4656a33aa302899a8263feb8879f Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Mon, 13 Dec 2021 12:17:32 -0800 Subject: [PATCH] Add air pressure to weather card --- internal/cards/metaweather.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cards/metaweather.go b/internal/cards/metaweather.go index 1e22f82..2eaa098 100644 --- a/internal/cards/metaweather.go +++ b/internal/cards/metaweather.go @@ -57,9 +57,9 @@ const metaweatherContent = `

Predictability: %d%%

+

Air Pressure: %s

Wind Direction: %s

Location: %s

-

Timezone: %s

` @@ -228,12 +228,12 @@ func (mc *MetaweatherCard) Content() template.HTML { convert(mc.resp.Consolidated[0].Visibility, "visibility", units.Mile), // Write predictability percentage mc.resp.Consolidated[0].Predictability, + // Write air pressure + convert(mc.resp.Consolidated[0].AirPressure, "pressure", units.HectoPascal), // Write compass wind direction mc.resp.Consolidated[0].WindCompass, // Write title mc.resp.Title, - // Write timezone - mc.resp.Timezone, )) }