Log tar1090 url.

This commit is contained in:
John Wiseman 2020-03-03 16:29:47 -08:00
parent e06f82a73f
commit e910eddc4a

View File

@ -63,10 +63,12 @@
(if-let [user-agent (:user-agent options)]
(.setUserAgent page user-agent))
(log-debug "Navigating")
(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
(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/"}))])
url
(clj->js {:referer "https://adsbexchange.com/"}))]))
(timeout 3000)
(p/all [(.type (.-keyboard page) "l")
(timeout 1000)])