Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
autoCarTimer
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
李远洪
autoCarTimer
Commits
9e2a86e2
Commit
9e2a86e2
authored
Aug 05, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网关连接失败不会导致崩溃
parent
594665b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
lib/socket/service/AutoCarTimerService.py
lib/socket/service/AutoCarTimerService.py
+0
-1
result.txt
result.txt
+6
-1
start.py
start.py
+1
-1
No files found.
lib/socket/service/AutoCarTimerService.py
View file @
9e2a86e2
...
...
@@ -521,7 +521,6 @@ class AutoCarTimerService():
timeArray
=
time
.
localtime
(
timeS
)
datetime
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
timeArray
)
err
=
traceback
.
format_exc
()
print
(
err
)
self
.
writeToFile
(
"data/log1.txt"
,
"["
+
datetime
+
"]"
,
type
=
1
)
self
.
writeToFile
(
"data/log1.txt"
,
err
,
type
=
1
)
else
:
...
...
result.txt
View file @
9e2a86e2
[2020-08-05 18:21:40] 启动了模拟程序
[2020-08-05 18:23:34] 启动了模拟程序
[2020-08-05 18:24:00] 建立了连接
[2020-08-05 18:24:00] 进行了登录操作
[2020-08-05 18:24:00] 发送了版本信息
[2020-08-05 18:24:01] 当前设置了GPS轨迹:gpsLine2.txt
[2020-08-05 18:24:01] 发送了点火事件
start.py
View file @
9e2a86e2
...
...
@@ -29,7 +29,7 @@ def startSimulaterService():
如果想要每天的9点自动执行一次轨迹行驶,则设置:year=0,month=0,day=0,hour=9,minute=0,second=0
如果想要每天的9点30自动执行一次轨迹行驶,则设置:year=0,month=0,day=0,hour=9,minute=30,second=0
'''
autoCarObj
.
startService
(
year
=
0
,
month
=
0
,
day
=
0
,
hour
=
0
,
minute
=
2
1
,
second
=
0
)
autoCarObj
.
startService
(
year
=
0
,
month
=
0
,
day
=
0
,
hour
=
0
,
minute
=
2
4
,
second
=
0
)
if
__name__
==
"__main__"
:
try
:
...
...
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