Skip to content

TotoObjects

TotoObjects connect a game with the physical world: displays, printers, locks, lights or any other internet connected device. They are managed by the toto-object-service; a repository is connected to an account of that service and can then use its objects.

Objects are controlled by triggers:

  • obj: send a payload to an object – a string whose meaning depends on the object, e.g. a text for a display or a command for a lock. Placeholders in the payload are replaced first, so payloads can contain variable values.
  • objLock: lock or unlock an object, optionally for a duration, so that other sessions can not control it at the same time.

Payloads are sent after the variable scripts of the same step, so they see the new values.

The manual trigger of an element lets the player send payloads with a button, e.g. “ring the bell”.

Authors can check the state and log of the objects of a repository (/v2/edit/{repoId}/obj/…), operators the configuration of running games (/v2/op/{repoId}/config/…).