Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker compose example for PVOutput-only setup #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Examples/docker-compose.pvoutput.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Sample to run with PVOutput-only support:
# docker-compose -f docker-compose.pvoutput.yml up -d --remove-orphans

version: '3'

services:
pyfusionsolar:
container_name: pyfusionsolardatarelay
image: jsprnl/pyfusionsolardatarelay:latest
restart: unless-stopped
privileged: true # Important! Without this, I get: "RuntimeError: can't start new thread"
environment:
- pvdebug=True
- pvsysname=inverter

- pvfusionsolar=True
- pvfusionsolarkkid=KKID # Go to https://intl.fusionsolar.huawei.com/, click on "Kiosk", generate a URL and copy the ID after `kk=`
- pvfusionminutecron=0,30 # Please note that the kiosk only seems to update each 30mins

# Diable everything
- pvinflux=False
- pvinflux2=False
- pvmqtt=False
- pvgridrelay=False
- pvgridrelaysys02enabled=False

# Except PVOutput
- pvpvoutput=True
- pvpvoutputsystemid=PVID # Your PVOutput system ID here
- pvpvoutputapikey=PVKEY # Get this key from https://pvoutput.org/account.jsp, section `API`


volumes:
- /etc/localtime:/etc/localtime:ro