Add air pressure to weather card
This commit is contained in:
parent
8a00e40402
commit
0dec4e27aa
@ -57,9 +57,9 @@ const metaweatherContent = `
|
||||
<p><b>Predictability:</b> %d%%</p>
|
||||
</div>
|
||||
<div class="column has-text-centered">
|
||||
<p><b>Air Pressure:</b> %s</p>
|
||||
<p><b>Wind Direction:</b> %s</p>
|
||||
<p><b>Location:</b> %s</p>
|
||||
<p><b>Timezone:</b> %s</p>
|
||||
</div>
|
||||
</div>`
|
||||
|
||||
@ -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,
|
||||
))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user