From 22348f5ac1c4d314b7b216f30ffebd324c9be9c0 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 22 Jan 2026 21:00:13 +0100 Subject: [PATCH] added tandoor for orsi --- glance-system/glance-orsi.yaml | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/glance-system/glance-orsi.yaml b/glance-system/glance-orsi.yaml index f3c6799..bf34a5b 100644 --- a/glance-system/glance-orsi.yaml +++ b/glance-system/glance-orsi.yaml @@ -154,6 +154,81 @@ 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