A simple python code to track planes and notify you via discord webhooks
Warning
This should be used for your own educational purposes. If you are interested in accessing Flightradar24 data commercially, please contact [email protected]. See more information at Flightradar24's terms and conditions.
git clone https://github.com/KonradowyPL/planeTracker.git
cd planeTracker
pip install -r requirements.txt
touch config.jsonIn config.json add following:
{
"webhook": "WEBHOOK URL",
"name": "Plane Spotter",
"icon": "https://example.com/icon.png",
"color": "blue",
"embedColor": "2CA3DA",
"planes": ["HB-LUN", "HB-LUZ"],
"font": "/path/to/font.ttf"
}where:
webhookis your Discord webhook URL.nameis the username of your Discord bot.iconis the link to your Discord bot avatar.coloris the color of the plane trace in hex or from Pillow's list of colors. If you remove this field, line color will be calculated according to thisembedColoris the hex color of the sidebar of the embed. In this case, light blue.planesis an array of plane registration numbers that you want to track.fontis path to ttf font file. If not specifed defeault one will be used.
Note: Live mode, that periodically checks for new takeofs and landings has been discontinued. If you still want to acces it, it will be avaiable on live-mode branch.
Feel free to open issues and make PRs.
This repository is under MIT license. See license file.