Commit 057c9221 authored by Sikhin VC's avatar Sikhin VC

added server API endpoints

parent cf8b0b5d
Pipeline #69216 canceled with stage
...@@ -36,6 +36,8 @@ MONGO_URI_ADD_EVENTLOGS = CONFIG_ENV.get('MONGO_URI',None) ...@@ -36,6 +36,8 @@ MONGO_URI_ADD_EVENTLOGS = CONFIG_ENV.get('MONGO_URI',None)
url = GET_JANUS_DETAILS + DEPLOYMENT_ID url = GET_JANUS_DETAILS + DEPLOYMENT_ID
EDGE_CONFIG = requests.get(url).json()["data"] EDGE_CONFIG = requests.get(url).json()["data"]
LAST_COUNT = requests.get(url).json()["latest_count"] LAST_COUNT = requests.get(url).json()["latest_count"]
if not LAST_COUNT:
LAST_COUNT = 0
logger.info(f"RESPONSE {requests.get(url).json()}") logger.info(f"RESPONSE {requests.get(url).json()}")
DEVICE_ID = EDGE_CONFIG["deviceId"] DEVICE_ID = EDGE_CONFIG["deviceId"]
DATA_PATH = EDGE_CONFIG["inputConf"].get('dataPath',os.path.join(os.getcwd(), "data".format())) DATA_PATH = EDGE_CONFIG["inputConf"].get('dataPath',os.path.join(os.getcwd(), "data".format()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment