Run on boot - gsalaman/pi_notes GitHub Wiki
There's a couple ways you can do this...the most popular seems to be doing systemd, but I've had more luck with crontab. Here's how:
sudo crontab -e
At the bottom of the file, add:
@reboot sleep 15 && /home/pi/[your_script]
Note this script needs to be chmod-ed to 777