Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mirrorSimulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
mirrorSimulator
Commits
922ac573
Commit
922ac573
authored
Feb 04, 2021
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了告警失败的问题
parent
126a8112
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
SDCard/picture/CAM_2/2021年02月01日--17时36分51秒_202__2.jpg
SDCard/picture/CAM_2/2021年02月01日--17时36分51秒_202__2.jpg
+0
-0
SDCard/video/CAM_1/2021年02月01日--17时37分29秒_202__18.mp4
SDCard/video/CAM_1/2021年02月01日--17时37分29秒_202__18.mp4
+0
-0
SDCard/video/CAM_2/2021年02月01日--17时36分56秒_202__9.mp4
SDCard/video/CAM_2/2021年02月01日--17时36分56秒_202__9.mp4
+0
-0
SDCard/video/CAM_3/2021年02月01日--17时37分04秒_202__4.mp4
SDCard/video/CAM_3/2021年02月01日--17时37分04秒_202__4.mp4
+0
-0
ui/EventAndOtherArea.py
ui/EventAndOtherArea.py
+9
-3
No files found.
SDCard/picture/CAM_2/2021年02月01日--17时36分51秒_202__2.jpg
deleted
100644 → 0
View file @
126a8112
9.34 KB
SDCard/video/CAM_1/2021年02月01日--17时37分29秒_202__18.mp4
deleted
100644 → 0
View file @
126a8112
File deleted
SDCard/video/CAM_2/2021年02月01日--17时36分56秒_202__9.mp4
deleted
100644 → 0
View file @
126a8112
File deleted
SDCard/video/CAM_3/2021年02月01日--17时37分04秒_202__4.mp4
deleted
100644 → 0
View file @
126a8112
File deleted
ui/EventAndOtherArea.py
View file @
922ac573
...
@@ -182,10 +182,12 @@ class EventAndOtherArea():
...
@@ -182,10 +182,12 @@ class EventAndOtherArea():
data
[
"eventType"
]
=
eventType
data
[
"eventType"
]
=
eventType
data
[
"gpsData"
]
=
self
.
getGpsData
()
data
[
"gpsData"
]
=
self
.
getGpsData
()
data
[
"imei"
]
=
imei
data
[
"imei"
]
=
imei
sData
=
[]
sData
.
append
(
data
)
url
=
self
.
sendEvtUrlTextCtr
.
GetValue
()
url
=
self
.
sendEvtUrlTextCtr
.
GetValue
()
headers
=
{
'Content-Type'
:
'application/json'
}
headers
=
{
'Content-Type'
:
'application/json'
}
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
d
ata
))
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
sD
ata
))
curTime
=
self
.
getCurTimeTxt
()
curTime
=
self
.
getCurTimeTxt
()
self
.
logTextCtr
.
WriteText
(
curTime
+
res
.
text
+
"
\n
"
)
self
.
logTextCtr
.
WriteText
(
curTime
+
res
.
text
+
"
\n
"
)
...
@@ -201,10 +203,12 @@ class EventAndOtherArea():
...
@@ -201,10 +203,12 @@ class EventAndOtherArea():
data
[
"eventType"
]
=
eventType
data
[
"eventType"
]
=
eventType
data
[
"gpsData"
]
=
self
.
getGpsData
()
data
[
"gpsData"
]
=
self
.
getGpsData
()
data
[
"imei"
]
=
imei
data
[
"imei"
]
=
imei
sData
=
[]
sData
.
append
(
data
)
url
=
self
.
sendEvtUrlTextCtr
.
GetValue
()
url
=
self
.
sendEvtUrlTextCtr
.
GetValue
()
headers
=
{
'Content-Type'
:
'application/json'
}
headers
=
{
'Content-Type'
:
'application/json'
}
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
d
ata
))
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
sD
ata
))
curTime
=
self
.
getCurTimeTxt
()
curTime
=
self
.
getCurTimeTxt
()
self
.
logTextCtr
.
WriteText
(
curTime
+
res
.
text
+
"
\n
"
)
self
.
logTextCtr
.
WriteText
(
curTime
+
res
.
text
+
"
\n
"
)
...
@@ -221,10 +225,12 @@ class EventAndOtherArea():
...
@@ -221,10 +225,12 @@ class EventAndOtherArea():
data
[
"eventType"
]
=
eventType
data
[
"eventType"
]
=
eventType
data
[
"gpsData"
]
=
self
.
getGpsData
()
data
[
"gpsData"
]
=
self
.
getGpsData
()
data
[
"imei"
]
=
imei
data
[
"imei"
]
=
imei
sData
=
[]
sData
.
append
(
data
)
url
=
self
.
sendEvtUrlTextCtr
.
GetValue
()
url
=
self
.
sendEvtUrlTextCtr
.
GetValue
()
headers
=
{
'Content-Type'
:
'application/json'
}
headers
=
{
'Content-Type'
:
'application/json'
}
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
d
ata
))
res
=
requests
.
post
(
url
,
headers
=
headers
,
data
=
json
.
dumps
(
sD
ata
))
curTime
=
self
.
getCurTimeTxt
()
curTime
=
self
.
getCurTimeTxt
()
self
.
logTextCtr
.
WriteText
(
curTime
+
res
.
text
+
"
\n
"
)
self
.
logTextCtr
.
WriteText
(
curTime
+
res
.
text
+
"
\n
"
)
...
...
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