Commit Graph

120 Commits

Author SHA1 Message Date
John Wiseman
9b784526af Polygonize airport circles in geojson. Support add'l airports in config. 2020-10-28 20:46:31 -07:00
John Wiseman
214e025af7 Merge branch 'master' of https://gitlab.com/jjwiseman/advisory-circular 2020-10-15 22:12:44 -07:00
John Wiseman
3a68965f11 Added --oauth flag to authorize a bot for another account. 2020-10-15 22:12:00 -07:00
John Wiseman
4b035bd50a Back off the radius-nm check. Somehow it gets set to 0 when not in config. 2020-10-12 16:02:45 -07:00
John Wiseman
d5c325493e Fixed validate-config to handle planet mode. 2020-10-12 15:44:39 -07:00
John Wiseman
6a55807542 Added support for planet-queries that are then locally filtered.
This is just for *me* right now.

If you don't specify lat, lon and radius-km in the config, then we
assume we should do a planet-scale query to adsbx-api-proxy and filter
the returned aircraft to include only the ICAOs specified in the icaos
collection in config.
2020-10-12 15:08:29 -07:00
John Wiseman
02ee1c5050 Factored out adsbx-url and adsbx-headers, with tests. 2020-10-12 14:11:39 -07:00
John Wiseman
0b0217976c pelias-api isn't a required config option. 2020-10-12 13:29:05 -07:00
John Wiseman
2787f8959f Added validate-config tests. 2020-10-12 12:51:23 -07:00
John Wiseman
f601f272d4 Tests pass. 2020-10-12 12:19:31 -07:00
John Wiseman
c72d24dcbf Cleaning up tests. This is just embarrassing. 2020-10-12 11:48:23 -07:00
John Wiseman
c3c384d030 Added --stats which (for now) just prints the number of twitter followers.
Refactored config handling a bit.
2020-09-28 17:05:43 -07:00
John Wiseman
0f07b705c1 Fixed issue where callsign was redundantly tweeted. 2020-09-26 22:09:56 -07:00
John Wiseman
05b96b612b Strip leading and trailing whitespace from registration, squawk, callsign. 2020-09-26 17:36:45 -07:00
John Wiseman
2321468260 Merge branch 'add-rapidapi-support' into 'master'
add rapidapi support

Closes #30

See merge request jjwiseman/advisory-circular!5
2020-09-23 21:38:36 +00:00
John Wiseman
80aa4486cc tar1090.adsbexchange.com -> globe.adsbexchange.com. 2020-09-21 22:35:03 -07:00
John Wiseman
71922dd369 Use globe.adsbexchange.com instead of tar1090. 2020-09-19 23:18:15 -07:00
Michael Crenshaw
e0b021fe5b Apply 1 suggestion(s) to 1 file(s) 2020-09-15 18:43:34 +00:00
Michael Crenshaw
0b4a825917 add rapidapi support 2020-09-15 18:14:37 +00:00
John Wiseman
324bc6898d Don't log added aircraft. 2020-08-03 09:37:31 -07:00
John Wiseman
31cfd0a893 Force ICAO hex codes to upper-case.
The V2 ADSBX API returns lower case, so let's get ready.
2020-08-02 16:21:09 -07:00
John Wiseman
3e3beb9eb4 Merge branch 'master' of https://gitlab.com/jjwiseman/advisory-circular 2020-08-02 15:37:31 -07:00
John Wiseman
e2f3479a40 Temporarily log added aircraft. 2020-08-02 15:37:09 -07:00
John Wiseman
fc577cd7e4 Merge branch 'master' of https://gitlab.com/jjwiseman/advisory-circular 2020-08-02 15:31:35 -07:00
John Wiseman
2f7dd3c1b9 Change minimum airport distance from 2.5 km to 3.5 km. 2020-08-02 15:31:13 -07:00
John Wiseman
46f236039e We don't use type or mlat in the API results. 2020-08-02 15:30:26 -07:00
John Wiseman
82baa4509b Add optional attribution to screenshot. 2020-07-23 20:07:21 -07:00
John Wiseman
41d00d5707 Map attribution WIP. 2020-07-23 16:54:42 -07:00
John Wiseman
d75e557ded "recent" track is now the last 5 minutes instead of 10 minutes. 2020-07-21 19:24:29 -07:00
John Wiseman
8869c130c1 Save me from replies regarding negative altitudes. 2020-07-07 12:52:20 -07:00
John Wiseman
6225efcb86 Use geometric/corrected altitude. 2020-07-05 14:11:38 -07:00
John Wiseman
9e603728e6 "Recent" history is now 10 minutes instead of 6. 2020-07-03 20:11:04 -07:00
John Wiseman
6079f238cd Removed 300 foot minimum altitude threshold. 2020-07-01 18:40:53 -07:00
John Wiseman
df8837600a Added ICAO blocklist.
See https://twitter.com/lemonodor/status/1275093309455691776
2020-06-22 10:27:28 -07:00
John Wiseman
a62fd3964e Switched from basestation.sqb to mictronics db. 2020-06-22 09:23:07 -07:00
John Wiseman
663f954410 Updated config examples. 2020-06-11 19:45:11 -07:00
John Wiseman
022e6b86a9 Post thumbnail photo if available from airport-data. 2020-06-11 19:34:36 -07:00
John Wiseman
de67d97223 Preparing to tweet aircraft photos. 2020-06-07 14:56:53 -07:00
John Wiseman
84186f5be4 --airport-geojson now generates a circle for the region of interest. 2020-06-06 22:49:58 -07:00
John Wiseman
421c43c044 Added --airport-geojson. 2020-06-03 15:57:06 -07:00
John Wiseman
9b65ea88dd Added support for airport blocklists.
E.g., this will stop the seaplane base from being considered as a
possible circle blocker:

airport:
  blocklist:
    - New York Skyports Incorporated Seaplane Base
2020-06-02 15:27:43 -07:00
John Wiseman
8b0b1abdb3 Print timing info for pelias requests. 2020-06-02 15:27:28 -07:00
John Wiseman
a45360d806 Added support for ADSBX API whitelist codes.
If an ADSBX API whitelist code is specified, pass it in the headers of
the API request.
2020-05-28 12:35:51 -07:00
John Wiseman
2543fdc5e4 Switch to JSON from EDN. 2020-05-25 17:52:39 -07:00
John Wiseman
4ee19d1a14 Use JSON isntead of EDN for history, 10x speedup. 2020-05-25 15:39:07 -07:00
John Wiseman
80095ceed3 Added edn2json. 2020-05-25 15:36:38 -07:00
John Wiseman
dda25dbdc4 Fixed typo. 2020-05-20 15:05:53 -07:00
John Wiseman
46b863fa36 Replace - with _ in hashtags. 2020-05-20 15:04:02 -07:00
John Wiseman
5f078b4e54 Fixed kondo warnings. 2020-05-11 16:59:36 -07:00
John Wiseman
0ae3de2a0e Slightly less verbose log messages. 2020-05-11 16:52:00 -07:00