Simple installation that anyone can complete
- download the latest release from releases page
- use Balena Etcher to burn the zipped image to your SD card.
- insert SD, power up and wait for the screen to refresh
tested on buster, seems to work on bullseye too
- Make sure python, pip, git and other dependancies are installed
sudo apt update -y
sudo apt install -y git python3-pip python3-rpi.gpio libatlas-base-dev libopenjp2-7 libtiff5 libxcb1 libfreetype6-dev
- Clone this repo and install pip requirements
git clone https://github.com/donbing/bitbot
cd bitbot
pip3 install -v --prefer-binary --extra-index-url https://www.piwheels.org/simple --user -r requirements.txt
- ensure that
I2C
/SPI
are enabled on the host pi
sudo raspi-config nonint do_spi 0
sudo raspi-config nonint do_i2c 0
- Test the app
python3 -m run
- Add cron jobs to start the app and config-server after reboot
(crontab -l 2>/dev/null; echo "@reboot sleep 30 && cd /home/pi/bitbot && python3 run.py") | crontab -
(crontab -l 2>/dev/null; echo "@reboot sleep 30 && cd /home/pi/bitbot && python3 src/config_webserver.py") | crontab -
- ensure that
I2C
/SPI
are enabled on the host pi
sudo raspi-config nonint do_spi 0
sudo raspi-config nonint do_i2c 0
- run the container
docker run --privileged --restart unless-stopped -d ghcr.io/donbing/bitbot:release