diff --git a/roles/docker/templates/glance.yml.j2 b/roles/docker/templates/glance.yml.j2 index c67fafd..9452cb4 100644 --- a/roles/docker/templates/glance.yml.j2 +++ b/roles/docker/templates/glance.yml.j2 @@ -1,40 +1,27 @@ pages: - name: Home + head-widgets: + - type: markets + hide-header: true + markets: + - symbol: SPY + name: S&P 500 + - symbol: VTSAX + name: Vanguard Total Stock Market + - symbol: BAI + name: Blackrock AI + - symbol: NLR + name: VanEck Uranium+Nuclear Energy + - symbol: BITO + name: Bitcoin ETF + columns: - - size: small - widgets: - - type: calendar - - - type: server-stats - servers: - - type: local - name: Services - size: full widgets: - - type: group - widgets: - - type: hacker-news - - type: rss - limit: 10 - collapse-after: 3 - cache: 3h - feeds: - - url: https://kill-the-newsletter.com/feeds/ij4twrnzhrwvyic13qcm.xml - - url: https://mrmoneymustache.ck.page/68f9e9826c - - type: rss - title: Gear - limit: 10 - collapse-after: 3 - cache: 3h - feeds: - - url: https://9to5toys.com/steals/feed - - url: https://hiro.report/rss/ - - type: change-detection - instance-url: https://watcher.thesatelliteoflove.com - token: ac69ae11570548549d6706eac6dbb6a9 - - type: docker-containers - hide-by-default: false + - type: search + search-engine: kagi + new-tab: true - size: small widgets: @@ -42,24 +29,62 @@ pages: location: Nederland, Colorado, United States units: imperial - - type: markets - markets: - - symbol: SPY - name: S&P 500 - - symbol: VTSAX - name: Vanguard Total Stock Market - - symbol: BAI - name: Blackrock AI - - symbol: NLR - name: VanEck Uranium+Nuclear Energy - - symbol: BITO - name: Bitcoin ETF - - symbol: GOOGL - name: Google - - symbol: AMD - name: AMD - - symbol: DJT - name: Trump Media + - type: custom-api + title: Air Quality + cache: 10m + url: https://api.waqi.info/feed/geo:39.9676367;-105.4037992/?token={{ vault_glance.air_quality_key }} + template: | + {% raw %}{{ $aqi := printf "%03s" (.JSON.String "data.aqi") }} + {{ $aqiraw := .JSON.String "data.aqi" }} + {{ $updated := .JSON.String "data.time.iso" }} + {{ $humidity := .JSON.String "data.iaqi.h.v" }} + {{ $ozone := .JSON.String "data.iaqi.o3.v" }} + {{ $pm25 := .JSON.String "data.iaqi.pm25.v" }} + {{ $pressure := .JSON.String "data.iaqi.p.v" }} + +