diff --git a/glance-system/glance-kisfenyo.yaml b/glance-system/glance-kisfenyo.yaml index 6892ee3..4ff1753 100644 --- a/glance-system/glance-kisfenyo.yaml +++ b/glance-system/glance-kisfenyo.yaml @@ -371,25 +371,31 @@ data: url: "http://idokep-scraper.glance-system.svc.cluster.local:8000/api" template: | {{ $loc := .JSON.String "location.name" }} - {{ $cur := .JSON "current" }} + {{ if eq $loc "" }}{{ $loc = .JSON.String "place" }}{{ end }} + + {{ $curTemp := .JSON.Float "current.temp_c" }} + {{ $curIcon := .JSON.String "current.icon_url" }} + {{ $daily := .JSON.Array "daily" }} {{ $hourly := .JSON.Array "hourly" }}
{{ end }} - # Calendar Widget - type: calendar first-day-of-week: monday