From c76fd5a23426ecaee32580f160c7693e4b5c1376 Mon Sep 17 00:00:00 2001 From: kx1t Date: Thu, 14 Nov 2024 12:05:03 -0500 Subject: [PATCH] update ADSBX Anywhere map and stats URL scraping --- rootfs/etc/s6-overlay/scripts/adsbx-stats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/adsbx-stats b/rootfs/etc/s6-overlay/scripts/adsbx-stats index 2d1e5da..8143682 100755 --- a/rootfs/etc/s6-overlay/scripts/adsbx-stats +++ b/rootfs/etc/s6-overlay/scripts/adsbx-stats @@ -70,8 +70,8 @@ fi # Let adsbexchange-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" | sed -n 's|.*\(https.*\)\" class.*|\1|p')" - AnywhereStats="$(curl -sSL https://www.adsbexchange.com/myip/ | grep "ADSBx Anywhere Stats" | sed -n 's|.*\(https.*\)\" class.*|\1|p')" + AnywhereMap="$(curl -sSL https://www.adsbexchange.com/myip/ | grep "https://globe.adsbexchange.com/?feed=" | sed -n 's|.*\(https.*\)\"|\1|p')" + AnywhereStats="$(curl -sSL https://www.adsbexchange.com/myip/ | grep "https://www.adsbexchange.com/api/feeders/?feed=" | sed -n 's|.*\(https.*\)\"|\1|p')" "${s6wrap[@]}" echo "Your AdsbExchange Anywhere Map URL is $AnywhereMap" "${s6wrap[@]}" echo "Your AdsbExchange Anywhere Stats URL is $AnywhereStats" } &