ci: dockerize setup

This commit is contained in:
Dominik Siebel
2024-09-16 11:48:20 +02:00
committed by Daniel Molkentin
parent c7f725adb8
commit e4f0eedded
7 changed files with 87 additions and 10 deletions

View File

@@ -1,25 +1,23 @@
from datetime import datetime, timedelta
prediction_hours=48
prediction_hours=48
optimization_hours=24
strafe=10
moegliche_ladestroeme_in_prozent = [0.0 ,6.0/16.0, 7.0/16.0, 8.0/16.0, 9.0/16.0, 10.0/16.0, 11.0/16.0, 12.0/16.0, 13.0/16.0, 14.0/16.0, 15.0/16.0, 1.0 ]
# Optional
db_config = {
'user': '',
'password': '',
'host': '192.168.1.135',
'database': ''
db_config = {
'user': 'eos',
'password': 'eos',
'host': '127.0.0.1',
'database': 'eos'
}
def get_start_enddate(prediction_hours=48,startdate=None):
############
# Parameter
# Parameter
############
if startdate == None:
date = (datetime.now().date() + timedelta(hours = prediction_hours)).strftime("%Y-%m-%d")