Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jk_edge_code_api_integration
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikhin.vc
jk_edge_code_api_integration
Commits
057c9221
Commit
057c9221
authored
May 05, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added server API endpoints
parent
cf8b0b5d
Pipeline
#69216
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
edge_engine/common/config.py
edge_engine/common/config.py
+2
-0
No files found.
edge_engine/common/config.py
View file @
057c9221
...
@@ -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
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment