Commit Graph

179 Commits

Author SHA1 Message Date
John Wiseman
de67d97223 Preparing to tweet aircraft photos. 2020-06-07 14:56:53 -07:00
John Wiseman
3910ed2bc7 Hit the API every 15 seconds. 2020-06-06 22:51:52 -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
cafbca970e Reduce ADSBX API usage.
By default, run the bot script every 15 seconds instead of every 10.
And if there's an error, wait 30 seconds to restart instead of 10.
2020-05-28 12:35:11 -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
7540a35af0 Merge branch 'master' of https://gitlab.com/jjwiseman/advisory-circular 2020-05-25 15:37:04 -07:00
John Wiseman
80095ceed3 Added edn2json. 2020-05-25 15:36:38 -07:00
John Wiseman
7aa8959638 Added RestartSecs to service file. 2020-05-25 14:16:14 -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
d51ecb1014 Added clj-kondo config. 2020-05-11 16:54:24 -07:00
John Wiseman
0ae3de2a0e Slightly less verbose log messages. 2020-05-11 16:52:00 -07:00
John Wiseman
bc3f3210d7 Filter out aircraft on the ground(!). 2020-05-11 16:51:46 -07:00
John Wiseman
8e095ffd6c Use /var/lib instead of /var/run. 2020-05-11 16:51:27 -07:00
John Wiseman
919cbd7faa Filter out ground positions. 2020-05-09 14:28:04 -07:00
John Wiseman
e1da356608 Use /var/lib instead of /var/run, which is tmpfs. 2020-05-09 14:27:42 -07:00
John Wiseman
3e840690be Added altitude to geojson. 2020-05-09 13:43:05 -07:00
John Wiseman
79e675b263 Accidentally left :headless? false for debugging. 2020-05-07 18:58:35 -07:00
John Wiseman
a46d8d9245 Fixed zoom. 2020-05-07 18:58:24 -07:00
John Wiseman
305d5f7c9b Install the service file. 2020-05-07 18:58:10 -07:00
John Wiseman
be247c4ba5 Added Install directive to service file. 2020-05-07 18:57:34 -07:00
John Wiseman
184cb14aa8 Added screenshot config, with zoom and layer selection. 2020-05-07 13:01:34 -07:00
John Wiseman
9d9e9ba59e Added reverse geocode description fallback: name.
Previously the bot couldn't generate a description or tweet if the
centroid wasn't in a locality or localadmin. Now there's a "name"
fallback so it will always tweet if it can reverse geocode at all.
Typically this means you'll see something like "over Los Angeles
County".
2020-05-06 13:36:37 -07:00
John Wiseman
9ab7b0616f Handle localadmin and log-prefix. 2020-05-05 17:52:11 -07:00
John Wiseman
b9c2e02ecb More unitization. 2020-05-04 14:13:48 -07:00
John Wiseman
2e0ad025a9 We don't use vrs-settings.json anymore. 2020-05-04 07:39:16 -07:00
John Wiseman
03d691f6bf Renamed unit file. 2020-05-03 23:56:15 -07:00
John Wiseman
cb4b2d149f WIP. 2020-05-03 20:10:54 -07:00
John Wiseman
f6963b99b4 Added advisorycircular.sh. 2020-05-03 17:16:17 -07:00
John Wiseman
e9badb3a2f Adding install infrastructure. 2020-05-03 17:02:26 -07:00
John Wiseman
406f1e9013 WIP. 2020-05-03 17:00:24 -07:00
John Wiseman
0c0962bc4f intervalexec -> intervalexec.py 2020-05-03 16:44:50 -07:00
John Wiseman
c3fdde4819 Renaming circlebot -> advisorycircular. 2020-05-03 16:22:08 -07:00
John Wiseman
78dc03e970 Renaming circlebot -> advisorycircular. 2020-05-03 16:19:45 -07:00
John Wiseman
dd92df15f9 Renaming circlebot -> advisorycircular. 2020-05-03 16:18:10 -07:00
John Wiseman
de7c72b2f6 Renamed circlebot -> advisorycircular. 2020-05-03 15:29:42 -07:00
John Wiseman
579a180d51 Renaming circlebot -> advisorycircular. 2020-05-03 15:26:25 -07:00
John Wiseman
fcbb023a5e FIxed altitude filtering.
(I forgot to store altitude in history, duh.)
2020-04-11 14:06:53 -07:00
John Wiseman
6246a9d3ab Filter out positions that are too low.
Related to issue #25.
2020-04-10 17:23:55 -07:00
John Wiseman
f1738938b8 Write recent and old track to geojson. 2020-04-05 14:10:36 -07:00
John Wiseman
a385513f48 Merge branch 'master' of https://gitlab.com/jjwiseman/advisory-circular 2020-04-04 16:37:52 -07:00
John Wiseman
4d95ee73c1 Call write-file with correct number of args. 2020-04-04 16:37:32 -07:00
John Wiseman
603761ae6f Merge branch 'master' of https://gitlab.com/jjwiseman/advisory-circular 2020-04-04 16:33:53 -07:00
John Wiseman
f954104de3 Ignore screenshots. 2020-04-04 16:33:26 -07:00