LoveManagerClient¶
- class lsst.ts.externalscripts.LoveManagerClient(location, username, password, event_streams, telemetry_streams, msg_tracing=False)¶
Bases:
object
Connect to a LOVE-manager instance.
- Parameters:
- location
str
Complete URL of the running LOVE instance e.g. https://base-lsp.lsst.codes/love or http://love01.ls.lsst.org
- username: `str`
LOVE username to use as authenticator
- password: `str`
Password of the choosen LOVE user
- event_streams: `dict`
Dictionary whith each item as <CSC:salindex>: <events_names_tuple> e.g. {“ATDome:0”: (‘allAxesInPosition’, ‘authList’, ‘azimuthCommandedState’, ‘azimuthInPosition’, …)
- telemetry_streams: `dict`
Dictionary whith each item as <CSC:salindex>: <telemetries_names_tuple> e.g. {“ATDome:0”: (‘position’, …)
- location
Notes
Details
Generate websocket connections using provided credentials
by token authentication and subscribe to every event and telemetry specified.
Methods Summary
close
()send_sal_command
(csc, salindex, cmd_name, params)Send a SAL command to the specified CSC
Start client websocket connection
Methods Documentation
- async close()¶
- create_start_task()¶
- async send_sal_command(csc, salindex, cmd_name, params)¶
Send a SAL command to the specified CSC
- Parameters:
- csc
str
Name of the CSC stream
- salindex: `int`
Salindex of the CSC stream
- cmd_name: `str`
Name of the command to be sent
- params: `dict`
Parameters of the command to be sent
- csc
- async start_ws_client()¶
Start client websocket connection