Keep only verified Glance community widget

This commit is contained in:
2026-05-17 18:20:56 +02:00
parent 669efbd57e
commit 5b101f3b3d
6 changed files with 5 additions and 45 deletions
-39
View File
@@ -134,45 +134,6 @@ pages:
</div>
<div class="size-h6 color-subdue" style="margin-top: 8px;">{{ if $storageOK }}{{ printf "%.1f" $percentage }}% Speicher belegt{{ else }}Speicher API nicht verfuegbar{{ end }}</div>
- type: group
widgets:
- type: custom-api
title: Internet Speed
title-url: https://speedtest.kaleschke.info
cache: 1h
url: http://speedtest-tracker/api/v1/results/latest
headers:
Authorization: Bearer ${GLANCE_SPEEDTEST_API_TOKEN}
Accept: application/json
subrequests:
stats:
url: http://speedtest-tracker/api/v1/stats
headers:
Authorization: Bearer ${GLANCE_SPEEDTEST_API_TOKEN}
Accept: application/json
template: |
{{ $stats := .Subrequest "stats" }}
{{ $downloadChange := percentChange (.JSON.Float "download_bits") ($stats.JSON.Float "avg_download") }}
{{ $uploadChange := percentChange (.JSON.Float "upload_bits") ($stats.JSON.Float "avg_upload") }}
{{ $pingChange := percentChange (.JSON.Float "ping") ($stats.JSON.Float "avg_ping") }}
<div class="flex justify-between text-center">
<div>
<div class="size-small {{ if gt $downloadChange 0.0 }}color-positive{{ else if lt $downloadChange 0.0 }}color-negative{{ else }}color-primary{{ end }}">{{ $downloadChange | printf "%+.1f%%" }}</div>
<div class="color-highlight size-h3">{{ .JSON.Float "download_bits" | mul 0.000001 | printf "%.1f" }}</div>
<div class="size-h6 uppercase">Download</div>
</div>
<div>
<div class="size-small {{ if gt $uploadChange 0.0 }}color-positive{{ else if lt $uploadChange 0.0 }}color-negative{{ else }}color-primary{{ end }}">{{ $uploadChange | printf "%+.1f%%" }}</div>
<div class="color-highlight size-h3">{{ .JSON.Float "upload_bits" | mul 0.000001 | printf "%.1f" }}</div>
<div class="size-h6 uppercase">Upload</div>
</div>
<div>
<div class="size-small {{ if lt $pingChange 0.0 }}color-positive{{ else if gt $pingChange 0.0 }}color-negative{{ else }}color-primary{{ end }}">{{ $pingChange | printf "%+.1f%%" }}</div>
<div class="color-highlight size-h3">{{ .JSON.Float "ping" | printf "%.0f ms" }}</div>
<div class="size-h6 uppercase">Ping</div>
</div>
</div>
- type: monitor
title: Core, Security und Ingress
cache: 1m