1
0
mirror of https://github.com/janvarev/Irene-Voice-Assistant.git synced 2025-12-05 23:08:23 +02:00

вызов таймеров адаптивно - https, если требуется ssl

This commit is contained in:
janvarev
2022-05-25 17:03:23 +03:00
parent 0bd952f101
commit 1fc02a65cc

View File

@@ -132,9 +132,12 @@ def core_update_timers_http(runReq=True):
if runReq:
try:
import requests
reqstr = "http://{0}:{1}/updTimers".format(webapi_options["host"],webapi_options["port"])
if webapi_options["use_ssl"]:
reqstr = "https://{0}:{1}/updTimers".format(webapi_options["host"],webapi_options["port"])
else:
reqstr = "http://{0}:{1}/updTimers".format(webapi_options["host"],webapi_options["port"])
#print(reqstr)
r = requests.get(reqstr)
r = requests.get(reqstr,verify=False)
except Exception:
pass
try: