Environment Variables

Environment variables are used by ska-oso-scripting to define the execution environment and which Tango devices should be controlled. This in turn modifies the behaviour of the code, giving different behaviour depending on whether the code is running in an SKA MID environment (default) or an SKA LOW environment. For example, when configured for SKA MID, connections to a subarray will connect to an SKA MID subarray, and validation code will reject CDM payloads intended for SKA LOW.

Environment variables recognised by ska-oso-scripting

Variable

Default value

Description

SKA_TELESCOPE

skamid

Controls the behaviour of telescope-specific functions to expect SKA LOW (skalow) or SKA MID (skamid). If the environment variable is not recognised, skamid will be assumed.

CENTRALNODE_TRL

mid-tmc/central-node/0

The Tango Resource Locator (TRL) of the TMC CentralNode Tango device. If left unset, an appropriate TRL for SKA MID will be used.

SUBARRAYNODE_TRL_PREFIX

mid-tmc/subarray

Prefix to use when constructing the TRL for a TMC SubarrayNode Tango device. If left unset, an appropriate TRL prefix for SKA MID will be used.

ODA_URL

null

The base API location for an instance of the ODA, to be used to create and update Execution Blocks. For example, https://k8s.stfc.skao.int/button-dev-ska-db-oda/oda/api/v1/