Starting again with Python - Stu-emhTrade/sailmate GitHub Wiki
We have set up the board as per:
https://github.com/Stu-emhTrade/sailmate/wiki/Setup-CAN-board
We have set up the pi os and wifi as per:
https://github.com/Stu-emhTrade/sailmate/wiki/Setup-OS-image https://github.com/Stu-emhTrade/sailmate/wiki/Set-up-wireless-access-point
Set up venv.
We'll set up pycharm as an IDE to work with/on the pi via ssh (theres a gotcha in that you can't configure a remote venv in pycharm):
https://www.hackster.io/Jolley71717/connect-jetbrains-pycharm-to-raspberry-pi-72be15
Gonna need a CAN reader:
https://python-can.readthedocs.io/en/master/
Have built a simple app main.py
to read the messages and write to a logfile.
Set up the python app to run on startup
made a shell script called run-on-startup.sh to run main.py on startup
need to make this executable chmod 755 run-on-startup.sh
and add it to the bottom of boot process:
sudo nano /etc/rc.local
add bash home/pi/github/sailmate/scripts/run-on-startup.sh
to the end