From 05ccb109aea193739d0025a8b1e393bf17361d36 Mon Sep 17 00:00:00 2001 From: gustonator Date: Fri, 24 Feb 2023 15:35:07 +0100 Subject: [PATCH] added pv_total_power variable to export the total power that a PV can create --- src/exporter.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/exporter.py b/src/exporter.py index 99f6661..e365c45 100644 --- a/src/exporter.py +++ b/src/exporter.py @@ -9,7 +9,7 @@ import asyncio import goodwe -print("\nGOODWE DATA EXPORTER v1.1.0\n") +print("\nGOODWE DATA EXPORTER v1.2.0\n") def checkArgs(argv): @@ -17,18 +17,20 @@ def checkArgs(argv): global POLLING_INTERVAL global INVERTER_IP global ENERGY_PRICE + global PV_POWER # set default values EXPORTER_PORT = 8787 POLLING_INTERVAL = 30 ENERGY_PRICE = 0.15 + PV_POWER = 5670 INVERTER_IP = "" # help - arg_help = "{0} --port --interval --inverter --energy-price ".format(argv[0]) + arg_help = "{0} --port --interval --inverter --energy-price --PVpower