2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

ch.eick: minor changes to KI_Prognose limit

git-svn-id: https://svn.fhem.de/fhem/trunk@28709 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ch.eick 2024-03-26 16:23:26 +00:00
parent d23bb57d1f
commit da4d066a59
2 changed files with 3 additions and 3 deletions

View File

@ -240,13 +240,13 @@ while loop_date <= end_date:
# Zu kleine Werte werden verworfen
if (Prognose < 20):
if (verbose >= 4):
print("Forecast value to smale")
print("Forecast value to smale : " + str(Prognose))
Prognose = 0
# Zu große Werte werden limitiert
# Achtung, die yield Prognose Werte sind Angaben zum Ende der Stunde
if (Prognose > 0):
timestamp = date+" %02d:00:00" % (dfhour_start['VALUE'].values[0]+loop_hour)
timestamp = date+" %02d:00:00" % (dfhour_start['VALUE'].values[0]+loop_hour-1)
Limit = int(round(dfask.loc[dfask['TIMESTAMP'] == timestamp].yield_max.values[0],0))
if (verbose >= 4):
# Hier wird beim Anzeigen der Wert um eine Stunde vorher angezeigt