In order to use this script you need to have a running dump1090 instance installed on your Raspberry Pi. This script watches changes to aircraft.json file and submits them to a list of endpoints. It also adds machineId param with unique ID of device this script is running on.
Run the following script in console:
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/MatixYo/overflights-reporter/main/install.sh)"
- Install Node using NVM.
- SSH into PI. Go to
~directory and run followinggit clone https://github.com/MatixYo/airdct-reporter.git - Run
npm installandnpm run startto verify it works - Install PM2 to run the app in the background:
sudo npm install -g pm2 - Run
pm2 start index.jsto start the app in the background - Save
pm2 save - Run
pm2 startup - You will see output with instructions. You still have to follow the instructions to make pm2 start automatically on reboot.