Skip to content

Latest commit

 

History

History
45 lines (44 loc) · 1.69 KB

app_install.md

File metadata and controls

45 lines (44 loc) · 1.69 KB

⚙️ Installation Options

🎴 A. Burn the Bitbot image to a new SD card

Simple installation that anyone can complete

  1. download the latest release from releases page
  2. use Balena Etcher to burn the zipped image to your SD card.
  3. insert SD, power up and wait for the screen to refresh

🍓 B. Add Bitbot to an existing PiOS install

tested on buster, seems to work on bullseye too

  1. 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
  1. 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
  1. ensure that I2C/SPI are enabled on the host pi
sudo raspi-config nonint do_spi 0
sudo raspi-config nonint do_i2c 0
  1. Test the app
python3 -m run
  1. 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 -

🐳 C. Run in docker

  1. ensure that I2C/SPI are enabled on the host pi
sudo raspi-config nonint do_spi 0
sudo raspi-config nonint do_i2c 0
  1. run the container
docker run --privileged --restart unless-stopped -d ghcr.io/donbing/bitbot:release