From 49722a858fe568287f96512bc28188b2d99570dc Mon Sep 17 00:00:00 2001 From: sans Date: Thu, 6 Jul 2023 11:08:32 +0200 Subject: [PATCH] update haake + eurotherm cfg --- cfg/main/eurotherm_cfg.py | 15 +++++++++++++++ cfg/main/haake_cfg.py | 21 +++++++++++++++++++++ cfg/main/haakeuro_cfg.py | 5 ++--- cfg/sea/haakeuro.config.json | 2 +- 4 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 cfg/main/eurotherm_cfg.py create mode 100644 cfg/main/haake_cfg.py diff --git a/cfg/main/eurotherm_cfg.py b/cfg/main/eurotherm_cfg.py new file mode 100644 index 0000000..5afead8 --- /dev/null +++ b/cfg/main/eurotherm_cfg.py @@ -0,0 +1,15 @@ +Node('eurotherm.config.sea.psi.ch', + 'Eurotherm controller', +) +Mod('sea_main', + 'frappy_psi.sea.SeaClient', + 'main sea connection for haakeuro.config', + config = 'haakeuro.config', + service = 'main', + meaning=('temperature', 11), +) +Mod('te', + 'frappy_psi.sea.SeaDrivable', '', + io = 'sea_main', + sea_object = 'te', +) diff --git a/cfg/main/haake_cfg.py b/cfg/main/haake_cfg.py new file mode 100644 index 0000000..e9d8191 --- /dev/null +++ b/cfg/main/haake_cfg.py @@ -0,0 +1,21 @@ +Node('haakeuro.config.sea.psi.ch', + 'Haake thermostat + Eurotherm controller', +) +Mod('sea_main', + 'frappy_psi.sea.SeaClient', + 'main sea connection for haakeuro.config', + config = 'haakeuro.config', + service = 'main', +) +Mod('th', + 'frappy_psi.sea.SeaDrivable', '', + meaning = ('temperature', 10), + io = 'sea_main', + sea_object = 'th', + extra_modules='t2', +) +Mod('ts', + 'frappy_psi.sea.SeaReadable', '', + io='sea_main', + single_module='th.t2', +) diff --git a/cfg/main/haakeuro_cfg.py b/cfg/main/haakeuro_cfg.py index f3383d6..eb35435 100644 --- a/cfg/main/haakeuro_cfg.py +++ b/cfg/main/haakeuro_cfg.py @@ -1,6 +1,5 @@ -Node( - description = '''Haake thermostat + Eurotherm controller''', - id = haakeuro.config.sea.psi.ch, +Node('haakeuro.config.sea.psi.ch', + 'Haake thermostat + Eurotherm controller', ) Mod('sea_main', 'frappy_psi.sea.SeaClient', diff --git a/cfg/sea/haakeuro.config.json b/cfg/sea/haakeuro.config.json index d1b9ad3..e8e2bc7 100644 --- a/cfg/sea/haakeuro.config.json +++ b/cfg/sea/haakeuro.config.json @@ -1,7 +1,7 @@ {"th": {"base": "/th", "params": [ {"path": "", "type": "float", "readonly": false, "cmd": "run th", "kids": 26}, {"path": "unit", "type": "text", "readonly": false, "cmd": "th unit", "visibility": 3}, -{"path": "t2", "type": "float", "visibility": 3}, +{"path": "t2", "type": "float"}, {"path": "set", "type": "float"}, {"path": "running", "type": "int", "readonly": false, "cmd": "th running", "visibility": 3}, {"path": "extcontrol", "type": "int", "readonly": false, "cmd": "th extcontrol", "visibility": 3},