This repository contains integration tests for BrewBlox, and example configurations for getting started.
- Desktop / laptop computer
- Raspberry Pi or Linux desktop computer / laptop
- BrewPi Spark controller
- Git
- Docker
- Docker-compose
Note: While the services can be run on a Raspberry Pi, building and flashing the firmware must be done on an AMD64 / x86_64 system.
In your terminal, run
git clone https://github.com/BrewPi/firmware.git
cd firmware
git checkout feature/brewblox
cd docker
- Connect the spark to your computer using the usb cable
- Unplug the spark usb cable
- There are two sunken buttons on the right side of the spark. Press and hold the top one (you'll need something pointy)
- Reconnect the usb cable while still holding the button
- Release the button: the led light should be blinking purple
In your terminal (still in the firmware/docker directory), run
docker-compose up -d compiler
docker-compose exec compiler bash compile-proto.sh
sudo docker-compose exec compiler make APP=brewblox PLATFORM=p1 program-dfu
In your terminal, run
git clone https://github.com/BrewBlox/brewblox-deployment.git
There are two sets of configurations available: amd64
, and armhf
.
If you're installing BrewBlox on a desktop computer, choose brewblox-deployment/amd64
.
If you're installing Brewblox on a Raspberry Pi, choose brewblox-deployment/armhf
.
If you're connecting through USB, you do not need to make any changes. The Spark Service will autodetect the controller.
If you're connecting to a Spark Controller using WiFi, you must add its IP address to the configuration.
In your configuration's directory, open docker-compose.yml
, and edit the following lines:
# command: >
# --device-host=192.168.0.2
Remove the #
to uncomment, and replace 192.168.0.2
with the IP address of your Spark Controller.
In your terminal, navigate to your chosen configuration, and run
docker-compose pull
This may take a few minutes.
In your terminal, run
docker-compose up -d
In your browser, visit the IP address of your computer or Raspberry Pi to open the UI.