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

Links to FA / FR / PF in tweet #6

Open Romeo-Golf opened 7 years ago

Romeo-Golf commented 7 years ago

Would it be worth adding links to any of the flight tracking sites which make historical information available to allow folks to see the whole flight track etc?

kevinabrandon commented 7 years ago

I like it, and will probably add it to the tweet template in the configuration file. The config file would look like:

tweet_template =${flight}:${dist}mi away @ ${alt}ft. ${FR}

Romeo-Golf commented 7 years ago

Cheers, is it worth allowing the user to configure which of FlightAware, FlightRadar, PlaneFinder etc links are included in the tweet.. assuming all of those sites show some sort of usable information for historical flights?

Romeo-Golf commented 7 years ago

Just wondering if its worth linking to the ADSB Exchange historical data for the aircraft, if not the specific flight it was on when detected?

eg.. https://database.adsbexchange.com/VirtualRadar/desktopReport.html?sort1=date&sortAsc1=0&icao-Q=A3DC2A

kevinabrandon commented 7 years ago

That's cool, I didn't know they had that. I would like to add it, I'll have to figure out how to use a url shortener service, but that shouldn't be too difficult

Jestre commented 7 years ago

I've been playing around with this request, though nothing worth committing. Adding the links to the tweet is insignificant, but I've batted around a few ideas for accounting for their length.

Currently, Twitter shortened URLS (automatic) would account for 20 characters of the 140 allowed, and any URL shorter than that (e.g. the FR24 url) would still be re-shortened by Twitter into a t.co url, but you are only charged the shortest of the two url's lengths.

@Romeo-Golf would you foresee someone decorating the links in the template, e.g. FlightAware: ${FA}, FR24: ${FR24} etc?

Romeo-Golf commented 7 years ago

I could imagine somebody trying to configure all of the links, perhaps the script could give the user the option to select one of the sites which shows historical data to include a link to?