- name: Accueil columns: - size: small widgets: - type: calendar - type: rss title: Journal du serveur style: vertical-list limit: 10 collapse-after: 5 feeds: - url: http://rss/index.xml - size: full widgets: - type: search title: Recherche Whoogle search-engine: https://whoogle.tellserv.fr/search?q={QUERY} placeholder: Recherche sur Internet… new-tab: false autofocus: false - type: docker-containers title: Conteneurs en cours limit: 10 hide-by-default: true $include: includes/containers.yml - size: small widgets: - type: weather title: Météo à Domfront location: Domfront, France units: metric hour-format: 24h - type: server-stats title: Ressources serveur show-network: true servers: - type: local hide-mountpoints-by-default: true mountpoints: "/mnt/storage": name: Stockage principal hide: false - type: custom-api title: Minecraft url: https://api.mcstatus.io/v2/status/java/minecraft.tellserv.fr cache: 30s template: |
{{ .JSON.Int "players.online" | formatNumber }}/{{ .JSON.Int "players.max" | formatNumber }} joueurs
0 joueurs
{{ . }}
{{ end }} {{ if or (eq $baseURL "") (eq $apiKey "") }} {{ template "errorMsg" "Paramètres manquants : base-url ou api-key" }} {{ else }} {{ $sectionsURL := printf "%s/library/sections" $baseURL }} {{ $sectionsCall := newRequest $sectionsURL | withHeader "Accept" "application/json" | withHeader "X-Plex-Token" $apiKey | getResponse }} {{ if $sectionsCall.JSON.Exists "MediaContainer.Directory" }} {{ $sections := $sectionsCall.JSON.Array "MediaContainer.Directory" }}