docker-meshviewer-cron/nodePoller.sh

13 lines
447 B
Bash
Raw Normal View History

2019-11-04 21:45:49 +00:00
#!/bin/sh
2019-11-04 21:27:41 +00:00
2020-12-29 17:44:24 +00:00
for i in 4 5 6
2019-11-04 21:27:41 +00:00
do
for f in meshviewer #graph nodelist nodes
do
2019-11-04 21:56:00 +00:00
mkdir -p /opt/data/tdf$i/
2019-11-04 21:27:41 +00:00
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
2019-11-04 21:32:17 +00:00
done
2020-12-29 17:19:21 +00:00
mkdir -p /opt/data/rifu/
curl https://git.freifunk-rhein-sieg.net/Freifunk-Troisdorf/ubnt-freifunk-map-api/raw/branch/master/example.json -o /opt/data/rifu/meshviewer.json