From d3450bedc74f0c5545c72d3d93f73aed0a1772f6 Mon Sep 17 00:00:00 2001 From: stefan Date: Sat, 13 Feb 2021 18:42:09 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EnodePoller.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodePoller.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nodePoller.sh b/nodePoller.sh index d0f5c3b..6ee204b 100755 --- a/nodePoller.sh +++ b/nodePoller.sh @@ -1,12 +1,12 @@ #!/bin/sh -#for i in 4 5 6 -#do -# for f in meshviewer #graph nodelist nodes -# do -# mkdir -p /opt/data/tdf$i/ -# curl http://$i.fftdf.de/$f.json -o /opt/data/tdf$i/$f.json || sed -i -e 's/"is_online":true/"is_online":false/g' /opt/data/tdf$i/$f.json -# done -#done -mkdir -p /opt/data/unifi/ -curl https://ubnt-api.freifunk-rhein-sieg.net/meshviewer.json -o /opt/data/unifi/meshviewer.json +for i in 4 5 6 +do + for f in meshviewer #graph nodelist nodes + do + mkdir -p /opt/data/tdf$i/ + curl http://$i.fftdf.de/$f.json -o /opt/data/tdf$i/$f.json || sed -i -e 's/"is_online":true/"is_online":false/g' /opt/data/tdf$i/$f.json + done +done +mkdir -p /opt/data/rifu/ +curl https://ubnt-api.freifunk-rhein-sieg.net/meshviewer.json -o /opt/data/rifu/meshviewer.json