# 22.09.2021 // FabAccess Workshop

# Basic Information
## PI
Password: password

## WLAN
SSID: fabaccess_workshop
Password: ?fabinfra!

## Shelly
IP: 192.168.33.1

# PI Preparing
```
# update pi
sudo apt update && sudo apt upgrade

# install docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker pi
sudo pip3 install docker-compose
reboot
```

# Install BFFH
```
# clone example repo
git clone https://gitlab.com/fabinfra/fabaccess/dockercompose.git ~/fabaccess_dockercompose
```

## Start BFFH
```
cd ~/fabaccess_dockercompose
docker-compose up
```

## BFFH Config Dateien
```
nano config/bffh.dhall
nano config/roles.toml
nano config/user.toml
```

## Shelly Config
```
MQTT Client
Internet & Security -> Advanced - Developer Settings
Enable MQTT
IP Address = Pi IP
Set MQTT Credentials

Wlan Client
Internet & Security -> WIFI MODE - CLIENT
Set WLAN Credentials
```