Add convective outlook presentation
This commit is contained in:
30
templates/outlooks_convective.txt.tmpl
Normal file
30
templates/outlooks_convective.txt.tmpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{{- if .Data -}}
|
||||
Convective Outlook
|
||||
Location ID: {{if .Data.LocationID}}{{.Data.LocationID}}{{else}}n/a{{end}}
|
||||
Location Name: {{if .Data.LocationName}}{{.Data.LocationName}}{{else}}n/a{{end}}
|
||||
As Of: {{.Data.AsOf}}
|
||||
{{- if .Data.IssuedAt}}
|
||||
Issued At: {{.Data.IssuedAt}}
|
||||
{{- end}}
|
||||
Outlooks: {{len .Data.Outlooks}}
|
||||
{{- range $i, $outlook := .Data.Outlooks}}
|
||||
|
||||
[{{$i}}] Day {{$outlook.Day}} {{$outlook.OutlookType}} {{$outlook.Label}}
|
||||
Valid: {{$outlook.ValidFrom}} -> {{$outlook.ValidTo}}
|
||||
Contains Location: {{$outlook.ContainsLocation}}
|
||||
{{- if $outlook.LabelText}}
|
||||
Label Text: {{$outlook.LabelText}}
|
||||
{{- end}}
|
||||
{{- if $outlook.Headline}}
|
||||
Headline: {{$outlook.Headline}}
|
||||
{{- end}}
|
||||
{{- if $outlook.Summary}}
|
||||
Summary: {{$outlook.Summary}}
|
||||
{{- end}}
|
||||
{{- if $outlook.SourceURL}}
|
||||
Source URL: {{$outlook.SourceURL}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- else -}}
|
||||
No convective outlook data available.
|
||||
{{- end}}
|
||||
Reference in New Issue
Block a user