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.
Controlling objects
Section titled “Controlling 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.
Manual control
Section titled “Manual control”The manual trigger of an element lets the player send payloads with a button, e.g. “ring the bell”.
Monitoring
Section titled “Monitoring”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/…).