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 }} + + + +