Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ems_collector
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ZZH
ems_collector
Commits
e057286e
Commit
e057286e
authored
May 22, 2026
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log 2026-5-22 14:19
parent
a6378938
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ems.py
src/ems_water_grp/ems.py
+1
-1
meter_3rd.py
src/ems_water_grp/meter_3rd.py
+4
-0
No files found.
src/ems_water_grp/ems.py
View file @
e057286e
...
@@ -381,6 +381,6 @@ async def main():
...
@@ -381,6 +381,6 @@ async def main():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
logger
.
info
(
"水务集团采集服务 (基于 httpx) 正在启动..."
)
logger
.
info
(
"水务集团采集服务 (基于 httpx) 正在启动..."
)
try
:
try
:
asyncio
.
run
(
tools
())
asyncio
.
run
(
main
())
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
logger
.
info
(
"进程被用户手动终止。"
)
logger
.
info
(
"进程被用户手动终止。"
)
src/ems_water_grp/meter_3rd.py
View file @
e057286e
...
@@ -93,11 +93,15 @@ class Meter3rdForward:
...
@@ -93,11 +93,15 @@ class Meter3rdForward:
except
Exception
as
e
:
except
Exception
as
e
:
continue
continue
cnt
=
0
for
sid
,
payload
in
d_pyds
.
items
():
for
sid
,
payload
in
d_pyds
.
items
():
logger
.
info
(
f
"{sid}: {payload}"
)
logger
.
info
(
f
"{sid}: {payload}"
)
self
.
client_pub
.
publish
(
self
.
client_pub
.
publish
(
f
"{self.pub_topic_prefix}/load_ele/{sid}"
,
f
"{self.pub_topic_prefix}/load_ele/{sid}"
,
json
.
dumps
(
payload
),
qos
=
1
)
json
.
dumps
(
payload
),
qos
=
1
)
cnt
+=
1
logger
.
info
(
f
"forward fid:{fid} {cnt} msgs"
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
error
(
f
"parse_and_forward error: {e}"
)
logger
.
error
(
f
"parse_and_forward error: {e}"
)
...
...
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