kevinabrandon / AboveTustin

ADS-B Twitter Bot. Uses dump1090-mutability to track airplanes and then tweets whenever an airplane flies overhead.
MIT License
72 stars 21 forks source link

FA API - Authentication Required #33

Closed hbokh closed 6 years ago

hbokh commented 6 years ago

Somehow the FlightAware API requires extra authentication besides "username" and "apikey" (cc @wiseman). This is the output (while testing the VRS-driver):

time to create screenshot of <AirCraftData 461F9E/OH-LZI/FIN47U dist=48.93611981682591 el=3.2672329871863455>:
success saving screenshot: tweet.png
Getting FlightAware flight details
FA API status code: 401
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>Authentication Required</title>
</head>
<body>
<h1>Authentication Required</h1>

</body>
</html>

time to tweet!!!!!
#FIN47U: 78.8 km away @ 4495.8 m and 3.3° frm hrzn, heading SW @ 655.8km/h 09:25:18. #MovingQuickly #AboveGRQ #ADSB
hbokh commented 6 years ago

SOLVED Working with v3 API-key only (I used a v2 API-key at first). Two tweets on flight SAS540:

wiseman commented 6 years ago

Glad you figured it out, and thanks for doing some more testing of the VRS driver.