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