Automated install of brewpi and docker on Raspberry Pi.
Note: The latest version does not have tilt support (yet). For Tilt Hydrometer support, see release v0.1
Note: release v0.1 was tested on v0.4.4 of Brewpi code. It might work if applied to the v0.5.5 brewpi code inside the container, but that has not been tried or tested here.
See: One Time Setup
-
Docker container management
~/brewpi start ~/brewpi stop ~/brewpi status ~/brewpi restart #stop, then start the container
-
Check for brewpi docker updates
~/brewpi check-update
-
Update brewpi docker image
~/brewpi update
-
Clean up old (stopped) brewpi container
~/brewpi stop ~/brewpi clean
-
Install Raspbian Stretch
https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip
NOTE: As of 6 July 2019, Raspbian Buster is the latest version but does not have Docker support. -
Configure OS basics
sudo raspi-config
- Change user password
- Network - Set Hostname
- Network - Setup Wi-Fi
- Localization - Set timezone
- Interfacing Options - Enable SSH
- Finish
- Reboot
-
Setup Networking
- Get the mac from the pi
- Ethernet:
cat /sys/class/net/eth0/address
- Wireless:
cat /sys/class/net/wlan0/address
- Ethernet:
- Use the mac to assign a static ip (on your router).
See your router documentation on how to do this.
- Get the mac from the pi
sudo apt -y install git
git clone https://github.com/andylytical/brewpi-scripts.git
ln -s /home/pi/brewpi-scripts/brewpi.sh ~/brewpi
~/brewpi-scripts/os_setup.sh
~/brewpi-scripts/docker_setup.sh
logout
- Login again as user pi
~/brewpi update
OPTIONAL - Skip this step if using spark via USB
Note: These instructions were tested on a Spark version 3.
TODO: Test on Spark v2
-
Connect Spark via USB
-
Put the particle in setup mode
Hold the setup button for 5 seconds until the LED is flashing blue to put the Photon in listening mode -
Install screen
sudo apt -y install screen
-
Connect to particle
screen /dev/ttyACM0
-
Get MAC address
Type:m
Use the mac to assign a static ip (on your router) -
Setup wifi
Type:w
Enter information as prompted for SSID and password -
Exit screen
Type:Ctl-a
thenk
Answer yes at prompt to kill screen session.
See also: https://docs.particle.io/guide/tools-and-features/cli/photon/
~/brewpi enable-wifi <SPARK_IP_ADDRESS>
Replace the string <SPARK_IP_ADDRESS> with the ip address you assigned to the Spark.~/brewpi restart