Replies: 1 comment
-
|
Hey! Welcome to coding! Here's a step-by-step guide to get plane-notify running. This assumes you're using a Linux system (Ubuntu/Debian). If you're on Windows, I'd recommend using Docker instead (see Docker section below). PrerequisitesYou'll need a server or computer running Linux. If you don't have one, you can use:
Step 1: Install Python and Required ToolsOpen your terminal and run these commands one at a time: # Update your system
sudo apt update
# Install Python 3 and pip (Python's package manager)
sudo apt install python3
sudo apt install python3-pip
# Install Git (to download the code)
sudo apt install git
# Install Screen (lets the program run in the background)
sudo apt install screenStep 2: Install PipenvPipenv manages Python dependencies for the project: pip install pipenvStep 3: Download plane-notify# Clone the repository
git clone -b multi --single-branch https://github.com/Jxck-S/plane-notify.git
# Move into the project directory
cd plane-notifyStep 4: Install Project Dependenciespipenv installStep 5: Install Chrome (for screenshots)This is needed to take screenshots of planes on the map: curl -sSL https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list
sudo apt update
sudo apt install google-chrome-stableStep 6: Configure the ProgramMain Configuration File# Navigate to the configs folder
cd configs
# Copy the example files
cp mainconf.ini.example mainconf.ini
cp plane1.ini.example plane1.ini
# Edit the main config
nano mainconf.iniIn
Plane Configuration File# Edit the plane config
nano plane1.iniIn
Tip: Press Step 7: Run the Program# Go back to the main project directory
cd ..
# Create a screen session (so it runs in background)
screen -R plane-notify
# Start the program
pipenv run python __main__.pyThe program should now be running! You'll see console output when it checks for the plane. To detach from the screen session (let it run in background):
To reattach to see the logs later: screen -r plane-notifyAlternative: Using Docker (Easier)If the above seems complicated, Docker is much simpler:
Finding ICAO CodesTo track a plane, you need its ICAO24 code:
Common Issues
Need More Help?
Good luck with your coding journey! 🛩️ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all - I am a newbie when it comes to coding but want to start learning. Can someone help me with the step by step of how to install / deploy this code? What software do I need and how do I install the code / run it?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions