Files
weatherapi/templates/weatherstories.txt.tmpl
Eric Rakestraw ecea856e8e
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
Implemented weather stories support
2026-05-30 07:06:29 -05:00

27 lines
680 B
Cheetah

{{- if .Data -}}
Weather Stories
Office ID: {{if .Data.OfficeID}}{{.Data.OfficeID}}{{else}}n/a{{end}}
As Of: {{.Data.AsOf}}
Stories: {{len .Data.Stories}}
{{- range $i, $story := .Data.Stories}}
[{{$i}}] {{if $story.Title}}{{$story.Title}}{{else}}Untitled{{end}}
Start: {{$story.StartTime}}
End: {{$story.EndTime}}
Updated: {{$story.UpdatedAt}}
Priority: {{$story.Priority}}
Order: {{$story.Order}}
{{- if $story.Description}}
Description: {{$story.Description}}
{{- end}}
{{- if $story.AltText}}
Alt Text: {{$story.AltText}}
{{- end}}
{{- if $story.DownloadURL}}
Download URL: {{$story.DownloadURL}}
{{- end}}
{{- end}}
{{- else -}}
No weather stories data available.
{{- end}}