From bb0c7bee59fb6b571cb0ad79335ebebb3ce7eb15 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Wed, 4 Dec 2024 13:17:40 +0100 Subject: [PATCH] Add docker compose example for PVOutput-only setup --- Examples/docker-compose.pvoutput.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Examples/docker-compose.pvoutput.yml diff --git a/Examples/docker-compose.pvoutput.yml b/Examples/docker-compose.pvoutput.yml new file mode 100644 index 0000000..317fb08 --- /dev/null +++ b/Examples/docker-compose.pvoutput.yml @@ -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 \ No newline at end of file