From e910eddc4a7f7f4ec5dd26fe53233e3de534398c Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Tue, 3 Mar 2020 16:29:47 -0800 Subject: [PATCH] Log tar1090 url. --- src/main/lemondronor/circlebot/adsbx.cljs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/lemondronor/circlebot/adsbx.cljs b/src/main/lemondronor/circlebot/adsbx.cljs index 58e882c..fa5ac96 100644 --- a/src/main/lemondronor/circlebot/adsbx.cljs +++ b/src/main/lemondronor/circlebot/adsbx.cljs @@ -63,10 +63,12 @@ (if-let [user-agent (:user-agent options)] (.setUserAgent page user-agent)) (log-debug "Navigating") - (p/all [(.waitForNavigation page) - (.goto page - (gstring/format "https://tar1090.adsbexchange.com/?icao=%s&noIsolation&hideButtons&hideSidebar&monochromeMarkers=ffff55&monochromeTracks=010101&outlineColor=505050&zoom=14" icao) - (clj->js {:referer "https://adsbexchange.com/"}))]) + (let [url (gstring/format "https://tar1090.adsbexchange.com/?icao=%s&noIsolation&hideButtons&hideSidebar&monochromeMarkers=ffff55&monochromeTracks=010101&outlineColor=505050&zoom=14" icao)] + (log-info "Getting screenshot at url %s" url) + (p/all [(.waitForNavigation page) + (.goto page + url + (clj->js {:referer "https://adsbexchange.com/"}))])) (timeout 3000) (p/all [(.type (.-keyboard page) "l") (timeout 1000)])