> For the complete documentation index, see [llms.txt](https://craftbeerpi.gitbook.io/craftbeerpi4/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://craftbeerpi.gitbook.io/craftbeerpi4/master.md).

# CraftBeerPi

## Intro

CraftBeerPi is an open source brewing controller.

![](https://1683598243-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRvXTmBFn-KX6108eqT%2F-MS2BjqC0x1StvtzISid%2F-MS2DFlgKxV2c6MtmxlZ%2FBildschirmaufnahme%202021-01-24%20um%2011.47.30.mov?alt=media\&token=645828cb-3e59-4c19-a15a-601663c14f57)

## Installation

CraftBeerPi is python based and will require at last python 3.7.x\
You can run CBPi 4.x on your Laptop. It's not required to use a Raspberry Pi.

Download an install Python 3.7  <https://www.python.org/downloads/>

Open a terminal window and run the following commands.

#### Install from PyPi - Recommanded for Raspberry Pi

```
sudo pip install cbpi
```

**Install from GitHub - Developer Version for Plugin Development**

```
sudo pip install https://github.com/Manuel83/craftbeerpi4/archive/master.zip
```

#### Setup Environment

```bash
cbpi setup
```

The setup command will create a config folder in directory where you executed this command. The config folder contains all instance data. For example all your hardware configuration and log files.

{% hint style="info" %}
You can setup as many enviroments as you like on one computer / Raspberry pi.\
Just navigate to a diffent folder and run the setup command again. This will create additional config folder
{% endhint %}

#### Run the Server

```
cbpi start
```

The server is running under <http://localhost:8000> by default.

#### Access the User Interface

```
http://<YOUR_IP>:8000/
```

{% hint style="info" %}
Port 8000 is the default port. You can change this port in the config folder config.yaml
{% endhint %}

### Create a Python Virtual Environment

The advantage of a virtual enviroment is to separate the python dependencies.\
This is interesting for testing and to install several CBPi intances at the same time.

{% embed url="<https://docs.python.org/3/library/venv.html>" %}

```
python3 -m venv venv

source venv/bin/activate
```

## Uninstall

```
pip uninstall cbpi
```

## List installed packaged

```
pip list
```

## Setup 1Wire (DS18B20) on Raspberry Pi&#x20;

CraftBeerPi is supporting digital temperature sensors like DS18B20 via 1Wire protocol\
On a Raspberry Pi it's required to add some configuration that 1Wire is working.

The following command will add the file `/boot/config.txt` to your Raspberry Pi. The content of the file is: `dtoverlay=w1-gpio,gpiopin=4,pullup=on`

```
sudo cbpi onewire --setup
```

The follwowing commad will list all onewire devices on your system

```
sudo cbpi onewire --list
```

### Alternative - Activate 1Wire via Raspi-Config&#x20;

You can activate 1Wire also via Raspi-Config

```
sudo raspi-config
```

![](https://1683598243-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRvXTmBFn-KX6108eqT%2F-MSrWqY75e9ne97HORDZ%2F-MSrXO746xMGISNBwgph%2FBildschirmfoto%202021-02-06%20um%2014.29.47.png?alt=media\&token=af7afa7b-fc59-40b8-97d7-e3b99824aac2)

![](https://1683598243-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRvXTmBFn-KX6108eqT%2F-MSrWqY75e9ne97HORDZ%2F-MSrXUSgsLBbzwbbFo_B%2FBildschirmfoto%202021-02-06%20um%2014.29.54.png?alt=media\&token=3ac08ae7-be88-417b-b0cc-80cdbaf8b755)

## Links

{% embed url="<https://www.facebook.com/groups/craftbeerpi>" %}

{% embed url="<https://www.youtube.com/channel/UCy47sYaG8YLwJWw2iY5_aNg>" %}

{% embed url="<http://web.craftbeerpi.com>" %}
