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
2e50b6d0
Commit
2e50b6d0
authored
May 08, 2023
by
Sikhin VC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added datetime change API
parent
8fdaf41b
Pipeline
#69362
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
edge_engine/common/config.py
edge_engine/common/config.py
+1
-1
scripts/cement_counter.py
scripts/cement_counter.py
+8
-1
No files found.
edge_engine/common/config.py
View file @
2e50b6d0
...
@@ -37,7 +37,7 @@ url = GET_JANUS_DETAILS + DEPLOYMENT_ID
...
@@ -37,7 +37,7 @@ 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_url
=
"http://192.168.3.181/camera_api/get_curr_datetime"
DATE_TIME
=
requests
.
get
(
date_url
)
.
json
()[
"current_time"
]
DATE_TIME
=
tuple
(
requests
.
get
(
date_url
)
.
json
()[
"current_time"
])
if
not
LAST_COUNT
:
if
not
LAST_COUNT
:
LAST_COUNT
=
0
LAST_COUNT
=
0
...
...
scripts/cement_counter.py
View file @
2e50b6d0
...
@@ -61,7 +61,14 @@ class CementBagCounter(ModelWrapper):
...
@@ -61,7 +61,14 @@ class CementBagCounter(ModelWrapper):
self
.
set_time
(
DATE_TIME
)
self
.
set_time
(
DATE_TIME
)
def
set_time
(
self
,
time_tuple
):
def
set_time
(
self
,
time_tuple
):
time_tuple
=
(
2012
,
# Year
9
,
# Month
6
,
# Day
0
,
# Hour
38
,
# Minute
0
,
# Second
0
,
# Millisecond
)
# /usr/include/linux/time.h:
# /usr/include/linux/time.h:
#
#
...
...
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