strip leading underscore from secop parameter names

+ other fixes and debugging prints
This commit is contained in:
l_samenv
2025-03-28 11:37:11 +01:00
parent 029309a06b
commit 335d0a5078
4 changed files with 37 additions and 23 deletions

View File

@@ -16,13 +16,14 @@ def main():
fm = FrappyManager()
fm.get_info()
host = socket.gethostname().split('.')[0]
for ins, procs in fm.get_procs().items():
cfginfo = {}
for ins, procs in fm.get_procs(cfginfo=cfginfo).items():
for service in procs:
if service in procs:
port = fm.info.get(ins, {}).get(service, {})
if port:
uri = f'{host}:{port}'
print('CREATE', uri)
print('CREATE', uri, cfginfo.get((ins, service)))
TrySecopConnect(uri)
event_map = {'value': db.add_float, 'error': db.add_error, 'stream': db.add_stream}