mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 13:20:11 +00:00
add Anywhere Map and Stats URL printing to logs
This commit is contained in:
parent
57ae105236
commit
4a2df580dd
1 changed files with 8 additions and 1 deletions
|
@ -53,6 +53,13 @@ if ! pgrep readsb >/dev/null; then
|
|||
sleep 2 & wait $!
|
||||
fi
|
||||
|
||||
"${s6wrap[@]}" echo "invoking: /usr/local/bin/json-status"
|
||||
# Let json-status start up, and then print the Anywhere Map and Anywhere Stats URLs to the container logs:
|
||||
{ sleep 15
|
||||
AnywhereMap="$(curl -sSL https://www.adsbexchange.com/myip/ | grep "ADSBx Anywhere Map</a>" | sed -n 's|.*\(https.*\)\" class.*|\1|p')"
|
||||
AnywhereStats="$(curl -sSL https://www.adsbexchange.com/myip/ | grep "ADSBx Anywhere Stats</a>" | sed -n 's|.*\(https.*\)\" class.*|\1|p')"
|
||||
"${s6wrap[@]}" echo "Your AdsbExchange Anywhere Map URL is $AnywhereMap"
|
||||
"${s6wrap[@]}" echo "Your AdsbExchange Anywhere Stats URL is $AnywhereStats"
|
||||
} &
|
||||
|
||||
"${s6wrap[@]}" echo "invoking: /usr/local/bin/json-status"
|
||||
"${s6wrap[@]}" /usr/local/bin/json-status
|
Loading…
Reference in a new issue