Revise the hourly weather template
This commit is contained in:
@@ -1,27 +1,9 @@
|
|||||||
# {{ .Report.Title }}
|
# {{ .Report.Title }}
|
||||||
|
|
||||||
{{ .Report.LocationName }}
|
**Updated:** {{ .Report.GeneratedAtLabel }}
|
||||||
Valid: {{ .Report.ValidPeriodLabel }}
|
|
||||||
Generated: {{ .Report.GeneratedAtLabel }}
|
|
||||||
|
|
||||||
## Summary
|
|
||||||
|
|
||||||
{{ .GeneratedText.Summary }}
|
{{ .GeneratedText.Summary }}
|
||||||
|
|
||||||
## Timing
|
|
||||||
|
|
||||||
{{ .GeneratedText.Timing }}
|
|
||||||
|
|
||||||
## Impacts
|
|
||||||
|
|
||||||
{{ .GeneratedText.Impacts }}
|
|
||||||
{{ with .GeneratedText.Confidence }}
|
|
||||||
|
|
||||||
## Confidence
|
|
||||||
|
|
||||||
{{ . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
## Current Conditions
|
## Current Conditions
|
||||||
{{ with .Modules.CurrentConditions }}
|
{{ with .Modules.CurrentConditions }}
|
||||||
{{ with .ConditionText }}{{ . }}{{ end }}{{ with .TemperatureF }}; {{ . }} F{{ end }}{{ with .ApparentTemperatureF }}; feels like {{ . }} F{{ end }}{{ with .RelativeHumidityPercent }}; humidity {{ . }}%{{ end }}{{ with .WindDirection }}; wind {{ . }}{{ end }}{{ with .WindSpeedMph }} {{ . }} mph{{ end }}.
|
{{ with .ConditionText }}{{ . }}{{ end }}{{ with .TemperatureF }}; {{ . }} F{{ end }}{{ with .ApparentTemperatureF }}; feels like {{ . }} F{{ end }}{{ with .RelativeHumidityPercent }}; humidity {{ . }}%{{ end }}{{ with .WindDirection }}; wind {{ . }}{{ end }}{{ with .WindSpeedMph }} {{ . }} mph{{ end }}.
|
||||||
@@ -31,11 +13,7 @@ No current conditions available.
|
|||||||
|
|
||||||
## Hourly Forecast
|
## Hourly Forecast
|
||||||
{{ with .Modules.HourlyForecast }}{{ range .Periods }}
|
{{ with .Modules.HourlyForecast }}{{ range .Periods }}
|
||||||
- {{ if .PeriodBegins }}{{ .PeriodBegins }}{{ else }}{{ .Name }}{{ end }}: {{ if .TextDescription }}{{ .TextDescription }}{{ else }}{{ .Name }}{{ end }}{{ with .TemperatureF }}; {{ . }} F{{ end }}{{ with .ProbabilityOfPrecipitationPercent }}; {{ . }}% precipitation{{ end }}{{ if .WindDirection }}; wind {{ .WindDirection }}{{ with .WindSpeedMph }} {{ . }} mph{{ end }}{{ else }}{{ with .WindSpeedMph }}; wind {{ . }} mph{{ end }}{{ end }}{{ with .WindGustMph }}, gusts {{ . }} mph{{ end }}
|
- **{{ .Name }}:* {{ .TextDescription }} and {{ .TemperatureF }}. Chance of precipitation {{ .ProbabilityOfPrecipitationPercent }}%.
|
||||||
{{ else }}
|
|
||||||
- No hourly forecast rows available.
|
|
||||||
{{ end }}{{ else }}
|
|
||||||
- No hourly forecast rows available.
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
## Precipitation Timing
|
## Precipitation Timing
|
||||||
@@ -98,3 +76,17 @@ No weather story available.
|
|||||||
{{ end }}{{ else }}
|
{{ end }}{{ else }}
|
||||||
No weather story available.
|
No weather story available.
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
## Timing
|
||||||
|
|
||||||
|
{{ .GeneratedText.Timing }}
|
||||||
|
|
||||||
|
## Impacts
|
||||||
|
|
||||||
|
{{ .GeneratedText.Impacts }}
|
||||||
|
{{ with .GeneratedText.Confidence }}
|
||||||
|
|
||||||
|
## Confidence
|
||||||
|
|
||||||
|
{{ . }}
|
||||||
|
{{ end }}
|
||||||
Reference in New Issue
Block a user