diff --git a/CDB/thomas_arm64_ConfigDb.json b/CDB/thomas_arm64_ConfigDb.json new file mode 100644 index 0000000000000000000000000000000000000000..89673f8f96e2bc49ce63823a3cbaae1e299294f9 --- /dev/null +++ b/CDB/thomas_arm64_ConfigDb.json @@ -0,0 +1,30 @@ +{ + "servers": { + "PCC": { + "LTS": { + "PCC": { + "LTS/PCC/1": { + "properties": { + "OPC_Server_Name": [ + "arm2" + ] + } + } + } + } + }, + "SDP": { + "LTS": { + "SDP": { + "LTS/SDP/1": { + "properties": { + "OPC_Server_Name": [ + "okeanos" + ] + } + } + } + } + } + } +} diff --git a/docker-compose/device-pcc.yml b/docker-compose/device-pcc.yml index a7c6bad9d1edc07807864b986120f90662b0733a..73feab180ba03a8a6ae0abc11b89a460341fcf9a 100644 --- a/docker-compose/device-pcc.yml +++ b/docker-compose/device-pcc.yml @@ -21,7 +21,6 @@ services: - ${TANGO_LOFAR_CONTAINER_MOUNT} environment: - TANGO_HOST=${TANGO_HOST} - user: ${CONTAINER_EXECUTION_UID} entrypoint: - /usr/local/bin/wait-for-it.sh - ${TANGO_HOST} diff --git a/docker-compose/device-sdp.yml b/docker-compose/device-sdp.yml index 653e0d61b8115ade7d1e3587096d6b10ab178377..fd98bfede32634c0ab380a0d2f4fe6fec0096267 100644 --- a/docker-compose/device-sdp.yml +++ b/docker-compose/device-sdp.yml @@ -21,7 +21,6 @@ services: - ${TANGO_LOFAR_CONTAINER_MOUNT} environment: - TANGO_HOST=${TANGO_HOST} - user: ${CONTAINER_EXECUTION_UID} entrypoint: - /usr/local/bin/wait-for-it.sh - ${TANGO_HOST} diff --git a/docker-compose/itango.yml b/docker-compose/itango.yml index 4e1e20ed9f4d8bda0bf1fffa2850ba8d53c9eee1..d131d405371bc6ff7e59892587b2bd2aba9d1fd6 100644 --- a/docker-compose/itango.yml +++ b/docker-compose/itango.yml @@ -28,7 +28,6 @@ services: - TANGO_HOST=${TANGO_HOST} - XAUTHORITY=${XAUTHORITY} - DISPLAY=${DISPLAY} - user: ${CONTAINER_EXECUTION_UID} stdin_open: true tty: true entrypoint: diff --git a/lib/archiver.py b/lib/archiver.py new file mode 100755 index 0000000000000000000000000000000000000000..70f43d88a02b3f40e7324aceb966913a74fca51a --- /dev/null +++ b/lib/archiver.py @@ -0,0 +1,20 @@ +#! /usr/bin/env python3 + +from .lofar2_config import configure_logging +from tango import DeviceProxy + + +def add_attribute_to_archiver(attribute: str, polling_period: float, event_period: float, archive_manager: str = 'archiving/hdbpp/confmanager01', archiver: str = 'archiving/hdbpp/eventsubscriber01'): + am = DeviceProxy(archive_manager) + am.write_attribute('SetAttributeName', attribute) + am.write_attribute('SetArchiver', archiver) + am.write_attribute('SetStrategy', 'ALWAYS') + am.write_attribute('SetPollingPeriod', int(polling_period)) + am.write_attribute('SetPeriodEvent', int(event_period)) + am.AttributeAdd() + am.AttributeStart(attribute) + +def remove_attribute_from_archiver(attribute: str, archive_manager: str = 'archiving/hdbpp/confmanager01'): + am = DeviceProxy(archive_manager) + am.AttributeStop(attribute) + am.AttributeRemove(attribute)