@@ -27,7 +27,7 @@ def _login(self) -> None:
27
27
This has to be done every time a request is made to the API since the authentication tokens expire after a few
28
28
seconds.
29
29
"""
30
- self .log .trace ("Logging in into the SEMSPORTAL... " )
30
+ self .log .debug ("Logging in into the SEMSPORTAL" )
31
31
url = "https://www.semsportal.com/api/v1/Common/CrossLogin"
32
32
headers = {
33
33
"Content-Type" : "application/json" ,
@@ -38,7 +38,7 @@ def _login(self) -> None:
38
38
"pwd" : EnvironmentVariableGetter .get ("SEMSPORTAL_PASSWORD" ),
39
39
}
40
40
41
- response = requests .post (url , headers = headers , json = payload , timeout = 10 )
41
+ response = requests .post (url , headers = headers , json = payload , timeout = 15 )
42
42
response .raise_for_status ()
43
43
response = response .json ()
44
44
@@ -97,7 +97,7 @@ def _retrieve_energy_consumption_data(self) -> dict:
97
97
"date" : TimeHandler .get_date_as_string (),
98
98
}
99
99
100
- response = requests .post (url , headers = headers , json = payload , timeout = 20 )
100
+ response = requests .post (url , headers = headers , json = payload , timeout = 30 )
101
101
response .raise_for_status ()
102
102
response = response .json ()
103
103
@@ -260,7 +260,7 @@ def _retrieve_power_data(self, date_to_crawl: date) -> dict:
260
260
"full_script" : False ,
261
261
}
262
262
263
- response = requests .post (url , headers = headers , json = payload , timeout = 20 )
263
+ response = requests .post (url , headers = headers , json = payload , timeout = 30 )
264
264
response .raise_for_status ()
265
265
response = response .json ()
266
266
0 commit comments