Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hbokh/abovegrq
✈️ Above GRQ. Uses dump1090-fa to track airplanes and toots whenever an airplane flies nearby.
https://github.com/hbokh/abovegrq
ads-b dump1090 mastodon
Last synced: about 1 month ago
JSON representation
✈️ Above GRQ. Uses dump1090-fa to track airplanes and toots whenever an airplane flies nearby.
- Host: GitHub
- URL: https://github.com/hbokh/abovegrq
- Owner: hbokh
- License: mit
- Created: 2023-02-07T07:13:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-20T18:06:13.000Z (10 months ago)
- Last Synced: 2024-04-22T14:54:24.875Z (8 months ago)
- Topics: ads-b, dump1090, mastodon
- Language: Python
- Homepage: https://botsin.space/@abovegrq
- Size: 66.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ✈️ Above GRQ
*An ADS-B Mastodon Bot, derived from [AboveTustin](https://github.com/kevinabrandon/AboveTustin) (a Twitter bot).*
The original Twitter dependencies have been replaced with basic [posting via the Mastodon API using Python](https://roytang.net/2021/11/mastodon-api-python/).
Uses [dump1090-fa](https://github.com/flightaware/dump1090) to track airplanes and toots whenever an airplane flies nearby Groningen Airport Eelde (IATA: **[GRQ](https://www.wikiwand.com/en/Groningen_Airport_Eelde)**, ICAO: **EHGG**).
**WARNING**: this is [Frankencode](https://www.urbandictionary.com/define.php?term=Frankencode)!!\
Currently it runs on my MacBook Pro M2 (macOS 14.3.1, with Homebrew packages).## Install
Install "AboveGRQ" in a Python virtualenv.\
Copy the file `config.sample.ini` to `config.ini` and make all the necessary changes in that file.\
Run with `python3 tracker.py`:```console
(AboveGRQ) hbokh@rpi4:~/.virtualenvs/AboveGRQ$ python3 tracker.py
Will crop
Map URL: http://rpi3.internal/tar1090/?enablelabels
Getting web page http://rpi3.internal/tar1090/?enablelabels
Waiting for page to load...
Reset map
Zoom in
Now: 2024-02-10 16:27:50.600000
Now: 2024-02-10 16:27:51.600000
Now: 2024-02-10 16:27:52.700000
--- cut --- 8< ---
```## Screenshot
Obligatory screenshot, taken from [Ivory](https://tapbots.com/ivory/) for iOS:
![IMG_0189](https://user-images.githubusercontent.com/519955/217902537-7371c254-55d5-4ccc-a179-db6b1c48c952.jpg)
## Dependencies
- Use Python 3.1x and [venv](https://docs.python.org/3/library/venv.html).
- Use a Chrome based browser (Chromium, Brave).
- Uses [tar1090](https://github.com/wiedehopf/tar1090) for ADSB message decoding, airplane tracking, and webserving.
- Uses Mastodon API for tooting.
- Uses [selenium](https://pypi.python.org/pypi/selenium) for screenshots with Chromedriver.
- Uses [pillow](https://python-pillow.org/) for image processing.
- Uses [requests](https://pypi.org/project/requests/) for API calls.
- Uses [Chromedriver](https://chromedriver.chromium.org/) for headless web browsing.
- Builds on a running [PiAware](https://flightaware.com/adsb/piaware/build) Raspberry Pi-based ADS-B receiver and decoder with MLAT support, with web server and local databases.## Code borrowed from
- kevinabrandon/[AboveTustin](https://github.com/kevinabrandon/AboveTustin)
- shbisson/[OverPutney](https://github.com/shbisson/OverPutney)
- ladewig/[OverPutney](https://github.com/ladewig/OverPutney)## Todo
- [x] Replace Twitter with Mastodon.
- [x] Fix "Loading image..." in screenshots when in headless mode.
- [x] Replace Google Chrome / Chromedriver.
- [X] Use latest Python 3.x version.
- [ ] Remove FlightAware API / FlightXML3 code.