./run.py # need sudo to access i2c on rpi
sudo pip install git+https://github.com/dpallot/simple-websocket-server.git
* * * * * cd /home/pi/git/quadcopter && ./run.sh > /home/pi/quadcopter-run.log 2>&1
@reboot root cd /home/pi/git/quadcopter && ./run.sh > /home/pi/quadcopter-run.log 2>&1
*/5 * * * * cd /home/pi/git/quadcopter && /usr/bin/git pull origin master > /home/pi/git.log 2>&1
Run API server:
$ python3 -m venv venv
$ pip3 install -r requirements.txt
$ ./run.py local
Run webserver:
cd www
./run.sh