From 78e0b6723be8258f3cc340b92dc468b2bd065792 Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 1 Jul 2026 23:01:17 -0500 Subject: [PATCH] finish craftoria --- modules/homelab/services/glance/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/homelab/services/glance/default.nix b/modules/homelab/services/glance/default.nix index a272bc7..bfe4afd 100644 --- a/modules/homelab/services/glance/default.nix +++ b/modules/homelab/services/glance/default.nix @@ -251,13 +251,13 @@ in { cache = "5s"; template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n
    \n
  • \n {{ if .JSON.Bool \"online\" }}\n {{ .JSON.String \"version.name_clean\" }}\n {{ else }}\n Offline\n {{ end }}\n
  • \n {{ if .JSON.Bool \"online\" }}\n
  • \n
    \n {{ range .JSON.Array \"players.list\" }}{{ .String \"name_clean\" }}
    {{ end }}\n
    \n

    \n \n \n \n {{ .JSON.Int \"players.online\" | formatNumber }}/{{ .JSON.Int \"players.max\" | formatNumber }} players\n

    \n
  • \n {{ else }}\n
  • \n

    \n \n \n \n 0 players\n

    \n
  • \n {{ end }}\n
\n
\n
"; } - { - type = "custom-api"; - title = "craftoria"; - url = "https://api.mcstatus.io/v2/status/java/raceraskedforthisenjoyyall.recoil.pro"; - cache = "5s"; - template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n
    \n
  • \n {{ if .JSON.Bool \"online\" }}\n {{ .JSON.String \"version.name_clean\" }}\n {{ else }}\n Offline\n {{ end }}\n
  • \n {{ if .JSON.Bool \"online\" }}\n
  • \n
    \n {{ range .JSON.Array \"players.list\" }}{{ .String \"name_clean\" }}
    {{ end }}\n
    \n

    \n \n \n \n {{ .JSON.Int \"players.online\" | formatNumber }}/{{ .JSON.Int \"players.max\" | formatNumber }} players\n

    \n
  • \n {{ else }}\n
  • \n

    \n \n \n \n 0 players\n

    \n
  • \n {{ end }}\n
\n
\n
"; - # } + { + type = "custom-api"; + title = "craftoria"; + url = "https://api.mcstatus.io/v2/status/java/raceraskedforthisenjoyyall.recoil.pro"; + cache = "5s"; + template = "
\n
\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n \n \n {{ end }}\n
\n\n
\n \n {{ .JSON.String \"host\" }}\n {{ if .JSON.Bool \"online\" }}\n \n {{ else }}\n \n {{ end }}\n \n\n
    \n
  • \n {{ if .JSON.Bool \"online\" }}\n {{ .JSON.String \"version.name_clean\" }}\n {{ else }}\n Offline\n {{ end }}\n
  • \n {{ if .JSON.Bool \"online\" }}\n
  • \n
    \n {{ range .JSON.Array \"players.list\" }}{{ .String \"name_clean\" }}
    {{ end }}\n
    \n

    \n \n \n \n {{ .JSON.Int \"players.online\" | formatNumber }}/{{ .JSON.Int \"players.max\" | formatNumber }} players\n

    \n
  • \n {{ else }}\n
  • \n

    \n \n \n \n 0 players\n

    \n
  • \n {{ end }}\n
\n
\n
"; + } ]; } {