Simple project to controll Rover Robot. Web with cam and API.
curl https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-12-04/2020-12-02-raspios-buster-armhf-lite.zip --output 2020-12-02-raspios-buster-armhf-lite.zip
unzip 2020-12-02-raspios-buster-armhf-lite.zip
dd if=2020-12-02-raspios-buster-armhf-lite.img of=/dev/sdb
mkdir -p /tmp/rover
cd /tmp/rover
git clone https://github.com/sq6emm/4x4-rover.git
cd /tmp/rover/4x4rover/
cat raspbian/boot/config.txt.addon >> /media/dawszy/bootfs/config.txt
cp raspbian/etc/modprobe.d/4x4-rover-blacklist.conf /etc/modprobe.d/
remove console=serial0,115200
from /boot/cmdline.txt
cp raspbian/boot/wpa_supplicant.conf /media/dawszy/bootfs/
cp raspbian/boot/ssh /media/dawszy/bootfs/
vi /media/dawszy/rootfs/etc/rc.local
add following lines before "exit 0"
echo "Disabling wlan0 power_save"
/sbin/iw wlan0 set power_save off
Connect with ssh as user pi
systemctl disable hciuart
systemctl enable ssh
apt update
apt upgrade
apt install python3-pip python3-gpiozero git nginx-light
pip3 install fastapi
pip3 install uvicorn
pip3 install picamera
git clone https://github.com/sq6emm/4x4-rover.git
sudo bash
cp /home/pi/4x4-rover/api/rover-api.service /lib/systemd/system/
cp /home/pi/4x4-rover/cam/rover-cam.service /lib/systemd/system/
systemctl daemon-reload
systemctl enable rover-api.service
systemctl enable rover-cam.service
systemctl start rover-api.service
systemctl start rover-cam.service
cp /home/pi/4x4-rover/nginx/sites-available/default /etc/nginx/sites-available/default
systemctl restart nginx
apt remove --purge triggerhappy cron logrotate dbus avahi-daemon triggerhappy bluez
apt autoremove
dphys-swapfile swapoff
dphys-swapfile uninstall
update-rc.d dphys-swapfile remove