Commit fcf7fca5 authored by Sikhin VC's avatar Sikhin VC

added datetime change API

parent 36ca7407
Pipeline #69371 failed with stage
...@@ -36,9 +36,6 @@ MONGO_URI_ADD_EVENTLOGS = CONFIG_ENV.get('MONGO_URI',None) ...@@ -36,9 +36,6 @@ 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"]
date_url = "http://192.168.3.181/camera_api/get_curr_datetime"
DATE_TIME = tuple(requests.get(date_url).json()["current_time"])
if not LAST_COUNT: if not LAST_COUNT:
LAST_COUNT = 0 LAST_COUNT = 0
DEVICE_ID = EDGE_CONFIG["deviceId"] DEVICE_ID = EDGE_CONFIG["deviceId"]
......
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