From ec2c6698f9ff5306beeccf85d22105fef0aab72f Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Tue, 5 Oct 2021 21:25:41 +0200 Subject: [PATCH] Adapt workadventure i3block to new api response layout --- i3/.config/i3/i3blocks/workadventure/workadventure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/.config/i3/i3blocks/workadventure/workadventure b/i3/.config/i3/i3blocks/workadventure/workadventure index ca0e5e9..23a2705 100755 --- a/i3/.config/i3/i3blocks/workadventure/workadventure +++ b/i3/.config/i3/i3blocks/workadventure/workadventure @@ -1,2 +1,2 @@ -curl -s https://api.fachschaft-it.de/metrics | grep -Ei ".*clients.*floor[0-9]" | awk '{printf "%d ", $2}' | awk '{sub(/\|$/,"");print}' +curl -s https://api.fachschaft-it.de/metrics | grep "workadventure_nb_clients_per_room{" | awk '{printf "%d ", $2}' | awk '{sub(/\|$/,"");print}' echo