Fixes for release

This commit is contained in:
unknown
2022-09-05 18:35:14 +08:00
parent 33dd5c60c9
commit 812943936a
2 changed files with 6 additions and 1 deletions

View File

@@ -5,10 +5,15 @@ from thesillyhome.model_creator.parse_data import parse_data_from_db
from thesillyhome.model_creator.learning_model import train_all_actuator_models
import logging
import sys
import os.path
if __name__ == "__main__":
FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
if os.path.isfile(f"/thesillyhome_src/log/thesillyhome.log"):
with open("/thesillyhome_src/log/thesillyhome.log", "w"):
pass
logging.basicConfig(
filename="/thesillyhome_src/log/thesillyhome.log",
encoding="utf-8",

View File

@@ -41,7 +41,7 @@ password = f.decrypt(
extdb_password = password
extdb_database = "thesillyhomedb"
extdb_username = "thesillyhome_general"
extdb_host = "thesillyhomedb-instance-1.cdioawtidgpj.eu-west-2.rds.amazonaws.com"
extdb_host = "thesillyhomedb.cluster-cdioawtidgpj.eu-west-2.rds.amazonaws.com"
extdb_port = 3306