From d8be2ab9476e01acfc997adab18b03ce6aa6b219 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 22 Jan 2026 21:11:00 +0100 Subject: [PATCH] Reorganized --- glance-system/glance-orsi.yaml | 159 +++++++++++++++------------------ 1 file changed, 73 insertions(+), 86 deletions(-) diff --git a/glance-system/glance-orsi.yaml b/glance-system/glance-orsi.yaml index 09855cd..b99908b 100644 --- a/glance-system/glance-orsi.yaml +++ b/glance-system/glance-orsi.yaml @@ -73,15 +73,80 @@ data: # ---------- LEFT COLUMN ---------- - size: small widgets: - # Weather Widget - - type: weather - location: Budapest, Hungary - units: metric - hour-format: 24h + - type: custom-api + title: Meal for the Day + cache: 5m - # Calendar Widget - - type: calendar - first-day-of-week: monday + url: http://glance-helper.glance-system.svc.cluster.local:8000/tandoor/daily + parameters: + count: 3 + cooldown: 14 + + options: + tandoor_url: https://tandoor.dooplex.hu + + template: | + {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} + {{ $items := .JSON.Array "items" }} + {{ $count := len $items }} + {{ $last := sub $count 1 }} + + + +
+
+ Today's picks ({{ $count }} total) + Open Tandoor +
+ {{ if lt $count 1 }}
No recipes.
{{ else }} +
+ {{ range $i, $_ := $items }}{{ end }} +
+ {{ range $r := $items }}{{ $img := $r.String "image" }}{{ $url := $r.String "url" }}{{ $cook := $r.String "cook_url" }}{{ $cooked := $r.Int "cooked_count" }} +
+ +
{{ if $img }}{{ else }}
No image
{{ end }}
+
{{ $r.String "name" }}
+
+ {{ if gt $cooked 0 }}
Cooked {{ $cooked }}× before
{{ end }} + +
+ {{ end }} +
+ {{ if gt $count 1 }} + {{ range $i, $_ := $items }}{{ if gt $i 0 }}{{ end }}{{ if lt $i $last }}{{ end }}{{ end }} +
{{ range $i, $_ := $items }}{{ end }}
+ {{ end }} +
+ {{ end }} +
# Quick Links - Productivity - type: bookmarks @@ -227,84 +292,6 @@ data: # ---------- RIGHT COLUMN ---------- - size: small widgets: - - type: custom-api - title: Meal for the Day - cache: 5m - - url: http://glance-helper.glance-system.svc.cluster.local:8000/tandoor/daily - parameters: - count: 3 - cooldown: 14 - - options: - tandoor_url: https://tandoor.dooplex.hu - - template: | - {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} - {{ $items := .JSON.Array "items" }} - {{ $count := len $items }} - {{ $last := sub $count 1 }} - - - -
-
- Today's picks ({{ $count }} total) - Open Tandoor -
- {{ if lt $count 1 }}
No recipes.
{{ else }} -
- {{ range $i, $_ := $items }}{{ end }} -
- {{ range $r := $items }}{{ $img := $r.String "image" }}{{ $url := $r.String "url" }}{{ $cook := $r.String "cook_url" }}{{ $cooked := $r.Int "cooked_count" }} -
- -
{{ if $img }}{{ else }}
No image
{{ end }}
-
{{ $r.String "name" }}
-
- {{ if gt $cooked 0 }}
Cooked {{ $cooked }}× before
{{ end }} - -
- {{ end }} -
- {{ if gt $count 1 }} - {{ range $i, $_ := $items }}{{ if gt $i 0 }}{{ end }}{{ if lt $i $last }}{{ end }}{{ end }} -
{{ range $i, $_ := $items }}{{ end }}
- {{ end }} -
- {{ end }} -
- - - type: to-do - title: Tasks - # RSS Feeds - Add your favorite feeds here - type: rss title: News & Feeds limit: 15