summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2023-01-07 22:39:19 +0100
committerlassulus <lassulus@lassul.us>2023-01-07 22:39:19 +0100
commitf611ce80c94ff85e8be8abd9d607494464e1eff8 (patch)
tree546296e68a8defddbea8de9ea422de895aa89bde /lass/2configs
parented18792d602c8b8138f6d6e35984f2dc8d335e13 (diff)
l radio: use localhost for listeners count
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/radio/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/2configs/radio/default.nix b/lass/2configs/radio/default.nix
index 46540969b..e883ed91b 100644
--- a/lass/2configs/radio/default.nix
+++ b/lass/2configs/radio/default.nix
@@ -113,7 +113,7 @@ in {
LIMIT=1000 #how many tracks to keep in the history
HISTORY_FILE=/var/lib/radio/recent
- listeners=$(${pkgs.curl}/bin/curl -fSs lassul.us:8000/status-json.xsl |
+ listeners=$(${pkgs.curl}/bin/curl -fSs http://localhost:8000/status-json.xsl |
${pkgs.jq}/bin/jq '[.icestats.source[].listeners] | add' || echo 0)
echo "$(${pkgs.coreutils}/bin/date -Is)" "$filename" | ${pkgs.coreutils}/bin/tee -a "$HISTORY_FILE"
echo "$(${pkgs.coreutils}/bin/tail -$LIMIT "$HISTORY_FILE")" > "$HISTORY_FILE"