From 5d94b00bb1e6f44da9dcc70f86b4564b13d7837a Mon Sep 17 00:00:00 2001 From: BlueFox Date: Mon, 16 Jun 2025 15:15:58 +0200 Subject: [PATCH] Removed unnecessary option for final v1.0 --- .env | 1 - solarcontrol.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.env b/.env index ee40f9c..5009f2d 100644 --- a/.env +++ b/.env @@ -17,5 +17,4 @@ POWER_TARGET_MIN=0 # minimum percentage for the inverter output POWER_TARGET_MAX=100 # maximum percentage for the inverter output limit, default: 100.0 [%] POWER_DAMPING_FACTOR=0.7 # damping factor for changes of the inverter output limit (between 0-1), default: 0.3 POWER_LIMIT_CHANGE_TRESHOLD=0.3 # set a treshold for the api calls: they will not be executed if the new limit isn't that much higher, default: 0.5 -POWER_LIMIT_TYPE=1 # the power limit type; DON'T CHANGE if you don't know what you're doing, default: 1 (see https://github.com/tbnobody/OpenDTU/discussions/742) PYTHONUNBUFFERED=1 # for use in docker images (for fast logs, ...) diff --git a/solarcontrol.py b/solarcontrol.py index 828a091..2dfe1a7 100755 --- a/solarcontrol.py +++ b/solarcontrol.py @@ -45,7 +45,7 @@ power_target_min = float(os.getenv('POWER_TARGET_MIN', 0)) power_target_max = float(os.getenv('POWER_TARGET_MAX', 100)) power_damping_factor = float(os.getenv('POWER_DAMPING_FACTOR', 0.3)) power_limit_change_treshold = float(os.getenv('POWER_LIMIT_CHANGE_TRESHOLD', 0.5)) -power_limit_type = int(os.getenv('POWER_LIMIT_TYPE', 1)) +power_limit_type = 1 # only set the limit temporary to avoid memory damage; see also: https://github.com/tbnobody/OpenDTU/discussions/742 dry_run = bool(int(os.getenv('DRY_RUN', 1))) # some checks for the correctness of supplied data