Escape Room Command Center API

From Escape Room Supplier Wiki
Revision as of 12:28, 26 February 2021 by Marcin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

All requests need to be sent via POST to the IP address of computer hosting ERCC at the port 4000.

Changing state of virtual device

To change the state of virtual device in ERCC you need to send request containing corresponding machine state and ID 1) to the ERCC.

Machine states

Machine State ID Description
ARMED 0 Game / prop is ready
IN PROGRESS 1 Users started solving game
WIN 2 User won that game
LEARNING 3 Game is learning new modes

Request data to send

  "id": "<virtual device id>",
  "universal_state": {
    "machine_state": "<selected machine state>"

Sample test page

You can download ERCC Javascript REST Client library here.

or check out it's live version.

You can get virtual prop ID from settings section of room in ERCC. Just click on that device on the list