a fork of craftbeerpi4 to support raspis with armv6
Find a file
2021-11-29 17:16:35 +01:00
.github/workflows Improve job names of build pipeline 2021-11-28 13:38:46 +01:00
cbpi Some fixes 2021-11-26 22:54:55 +01:00
tests "fermentation controller pre version. Not ready to use" 2021-04-04 15:54:10 +02:00
venv3 Support beerxml and kbh database upload 2021-05-22 18:25:57 +02:00
.gitignore "fix config.json" 2021-02-19 22:05:13 +01:00
cheat_sheet.txt fix props for plugin 2021-02-02 21:22:59 +01:00
chromium.desktop Create chromium.desktop 2021-08-27 17:04:07 +02:00
craftbeerpi.db sensor methods added 2021-02-06 00:40:55 +01:00
craftbeerpi.service Add initial systemd craftbeerpi service file 2021-06-15 16:57:05 +02:00
craftbeerpi4boot Create craftbeerpi4boot 2021-06-13 19:46:11 +02:00
Dockerfile Use full python image to avoid build errors 2021-11-28 13:33:42 +01:00
LICENSE Set License to GPL 2021-01-07 18:59:24 +01:00
MANIFEST.in rework database 2021-01-22 23:25:20 +01:00
README.md Update readme to include more info about the project 2021-11-29 17:16:35 +01:00
release.py "Build Script added" 2021-02-07 13:54:31 +01:00
requirements.txt "recipe book added" 2021-02-27 20:09:19 +01:00
run.py setuptools added 2019-01-05 20:43:48 +01:00
sample.py "add seconds to timer at runtime" 2021-03-03 07:37:54 +01:00
setup.py Changed setup.py for RPI.GPIO 2021-11-24 22:10:28 +01:00

CraftBeerPi 4

Build GitHub license GitHub issues PyPI Happy Brewing

CraftBeerPi Logo

CraftBeerPi 4 is an open source software solution to control the brewing and fermentation of beer 🍺.

📚 Documentation

Instructions on how to install CraftBeerPi and use its plugins is described in the documentation, that can be found here: gitbook.io.

Plugins

Plugins extend the base functionality of CraftBeerPi 4. You can find a list of available plugins here.

Docker image

While CraftbeerPi is primarily created to be run on a RaspberryPi you can also use a docker image to run it. This let's you try CraftBeerPi quickly without much installation overhead. It can also be very handy when developing your own plugins.

Images are currently available for arm64 and amd64 architectures. That means, that they won't run on a RaspberryPi unless you installed a 64bit version of the OS. This is only a requirement for the docker image, not if you install CraftBeerPi on the pi directly.

Start a container

You can also use the image in your real setup with docker or docker-compose (or other orchestrators).

# setup the configuration directory for later use in a volume mount (must be done once)
mkdir config && chown :1000 config
docker run --rm -v "$(pwd)/config:/cbpi/config" ghcr.io/avollkopf/craftbeerpi4:latest cbpi setup

# run craftbeerpi
docker run -d -v "$(pwd)/config:/cbpi/config" -p 8000:8000 ghcr.io/avollkopf/craftbeerpi4:latest

or as compose file

version: "3.7"
services:
  craftbeerpi:
    image: ghcr.io/avollkopf/craftbeerpi4:latest
      volumes:
        - "./config:/cbpi/config"
      ports:
        - 8000:8000

Please note that this setup does not include GPIO functionality for CraftBeerPi 4. You may be lucky with one of the methods described here to get it to work: https://stackoverflow.com/questions/30059784/docker-access-to-raspberry-pi-gpio-pins

Install plugins in the container

You can create your own image based on ghcr.io/avollkopf/craftbeerpi4 and install plugins as RUN commands in the docker file as you would in a regular environment.

Sample Dockerfile

FROM ghcr.io/avollkopf/craftbeerpi4:vXX.XX.XX.XX

# Switch to root user for installing plugins
USER root

# Install plugins
RUN pip3 install --no-cache-dir cbpi4-pt100x

# Don't forget to switch back to craftbeerpi user
USER craftbeerpi

# Add plugin to craftbeerpi
RUN cbpi add cbpi4-pt100x

Then build the image

docker build . -t yourimagename

Then build and use your image in the docker run command or docker-compose file.

🧑‍🤝‍🧑 Contributers

Thanks to all the people who have contributed

contributors