ska_oso_scripting.functions.messages

The ska_oso_scripting.functions.messages module contains functions that scripts can use to announce events and messages to the outside world.

ska_oso_scripting.functions.messages.send_message(topic, **kwargs)[source]

Helper function to send messages via pypubsub.

Parameters:
  • topic – topic matching a topic in oet.event.topics

  • kwargs – kwargs to be included in message

ska_oso_scripting.functions.messages.publish_event_message(topic=ska_oso_oet.event.topics.user.script.announce, **kwargs)[source]

publish pypubsub event messages, OET scripts will be using this method to publish a freeform messages to an unknown listener.

Parameters:
  • topic – message topic

  • kwargs – any metadata associated with pypubsub message