-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readme split & link references, added tests for app, argparse & main
- Loading branch information
1 parent
135e838
commit ca3e6ba
Showing
11 changed files
with
326 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ on: | |
workflow_dispatch: | ||
|
||
push: | ||
#tags: | ||
# - '*' | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Requirements | ||
|
||
## Software | ||
|
||
- Raspberry Pi with operating system (tested with Model 1B and headless Raspbian) | ||
- Python 3 (tested with 3.10) | ||
- Some python packages | ||
- Docker (optional, but recommended) | ||
- MQTT Broker (optional, but recommended) | ||
|
||
## Hardware | ||
|
||
List of all parts I used: | ||
|
||
- Distribution box | ||
- Circuit breaker (3-phase AC) | ||
- Contactor to switch the three phases AC | ||
- 5x1.5mm2 copper stranded cable | ||
- Ferrules (for stranded wires) | ||
- Raspberry Pi 1B + sd card | ||
- Relay for the pi | ||
- Network switch & Ethernet cable | ||
- Fronius PV inverter | ||
- Fronius PV Battery (optional - Boilr will work just fine without a battery) | ||
|
||
### Electrical installation example | ||
|
||
Inside | Outside | ||
:---:|:---: | ||
![inside view][installation-example-inside] | ![outside view][installation-example-outside] | ||
|
||
Unfortunately, the lid cannot be closed when there's something plugged into the power outlet on the hut rail. Thats why there is a second power outlet inside the distribution box. | ||
|
||
> [!WARNING] | ||
> If dealing with the electrical aspect isn't within your comfort zone, it's advisable to seek assistance from an electrician, as mishandling it can pose serious risks. | ||
|
||
[installation-example-inside]: ../docs/inside.JPG | ||
[installation-example-outside]: ../docs/outside.JPG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Boilr Setup | ||
|
||
- [Boilr Setup](#boilr-setup) | ||
- [Containerised in Docker (recommended)](#containerised-in-docker-recommended) | ||
- [Manually building \& run container](#manually-building--run-container) | ||
- [Docker Hub (ARMv6 only)](#docker-hub-armv6-only) | ||
- [PyPI - Python Package Index](#pypi---python-package-index) | ||
- [Manually build and install package](#manually-build-and-install-package) | ||
|
||
|
||
## Containerised in Docker (recommended) | ||
|
||
### Manually building & run container | ||
|
||
```bash | ||
docker-compose build | ||
docker-compose up -d | ||
``` | ||
|
||
### Docker Hub (ARMv6 only) | ||
|
||
```bash | ||
docker run --privileged -v ./config.yaml:/etc/boilr/config.yaml --device /dev/gpiomem:/dev/gpiomem peterbrain/boilr:latest | ||
``` | ||
|
||
> [!NOTE] | ||
> In order to install and use Docker on a Raspberry Pi 1 Model B, I had to set `sysctl vm.overcommit_memory=1` and restart after the installation. | ||
## PyPI - Python Package Index | ||
|
||
Boilr is not yet available on Python Package Index. Check back later | ||
|
||
## Manually build and install package | ||
|
||
```bash | ||
pip install . | ||
``` | ||
|
||
Create config folder and copy sample config file to config directory. | ||
|
||
```bash | ||
mkdir /etc/boilr | ||
cp config.yaml /etc/boilr/ | ||
``` | ||
|
||
Edit the config file to your needs. Check out this [Sample configuration][config-reference] for reference. | ||
|
||
```bash | ||
vi /etc/boilr/config.yaml | ||
``` | ||
|
||
|
||
[config-reference]: ../config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.