diff --git a/glance-system/glance-orsi.yaml b/glance-system/glance-orsi.yaml index bf34a5b..09855cd 100644 --- a/glance-system/glance-orsi.yaml +++ b/glance-system/glance-orsi.yaml @@ -133,17 +133,90 @@ data: # ---------- CENTER COLUMN ---------- - size: full widgets: - # Cal.com Booking iframe - - type: iframe - source: https://booking.dooplex.hu/bookings/upcoming - height: 350 - title: Upcoming Bookings + - type: split-column + max-columns: 3 + widgets: + # Weather Widget (Időkép) + - type: custom-api + title: "Időkép – Budapest VII." + url: "http://idokep-scraper.glance-system.svc.cluster.local:8000/api?v=2" + cache: 30s + template: | + {{ $loc := .JSON.String "location.name" }} + {{ 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" }} - # Google Calendar iframe - - type: iframe - source: https://calendar.google.com/calendar/embed?src=b2884faf3db792ac082a6206057552c79080716efd5f966e169a41fc500e1c1c%40group.calendar.google.com&ctz=Europe%2FBudapest - height: 400 - title: Calendar +