UtilsΒΆ

These are the most common functions for scripts. They work equally well in Parlay Items.

parlay.utils.setup(ip='localhost', port=8085, timeout=3)[source]

Connect this script to the broker’s websocket server.

Parameters:
  • ip – ip address of the broker websocket server
  • port – port of the broker websocket server
  • timeout – try for this long to connect to broker before giving up
Returns:

none

parlay.utils.discover(force=True)
parlay.utils.get_item_by_name(item_name)
parlay.utils.get_item_by_id(item_id)
parlay.utils.sleep(time)