diff --git a/glance-system/glance-kisfenyo.yaml b/glance-system/glance-kisfenyo.yaml index 926d6fe..69c9cc7 100644 --- a/glance-system/glance-kisfenyo.yaml +++ b/glance-system/glance-kisfenyo.yaml @@ -365,108 +365,139 @@ data: - type: split-column max-columns: 3 widgets: - # Weather Widget - Időkép Scraper + # Weather Widget (Időkép) - type: custom-api - url: https://www.idokep.hu/idojaras/Budapest + title: Időkép – Budapest VIII. + url: http://idokep-proxy.glance-system.svc.cluster.local:8000/api/idokep?place=Budapest%20VIII.%20ker cache: 15m - skip-json-validation: true - style: - grid-column: span 4 - grid-row: span 3 template: | - {{/* 1. Extract Body and Current Data */}} - {{ $body := .Body }} - {{ $temp := findSubmatch "current-temperature\">([^˚<]+)" $body | trimSpace }} - {{ $cond := findSubmatch "current-weather\">([^<]+)" $body | trimSpace }} - {{ $icon := findSubmatch "forecast-bigicon\"[^>]+src=\"([^\"]+)\"" $body }} - {{ $sunrise := findSubmatch "Napkelte ([0-9:]+)" $body }} - {{ $sunset := findSubmatch "Napnyugta ([0-9:]+)" $body }} - - {{/* 2. Split HTML by the Forecast Column class to get daily blocks */}} - {{ $parts := split $body "