JSON Machine Control Device
JSONMachineControl Device allows for the querying of machine list and machine status via JSON.
Telnet setup
A JSONMachineControl Device requires the use of Telnet. Follow these steps to properly configure the Disguise server for Telnet communication:
- Enable Telnet by navigating to Control Panel > Programs > Turn on Windows Features > Telnet Client
- Click on the link telnet://127.0.0.1:9864
- To get the name of the machine, enter: {“query”:{“q”:“machineList”}}
- To get the framerate, enter {“query”:{“q”:“machineStatus hostName”}}
Using Live framerate is recommended. This python code method may be used to get Live framerate:
live framerate
Creating a JSONMachineControl Device
A JSONMachineControl device is created in the same way as any other device type. Please see the sub-chapter Creating devices for step-by-step instructions on how to create a device, and select JSONMachineControl from the menu of different device types. This will open the device editor (explained below).
JSONMachineControl Device properties
Listening Port
The listening port the device is set to.
JSONMachineControl queries
Machine list:{"query":{"q":"machineList"}}
Returns a list of dictionaries containing information about the machine: d3 name, hostname role and machine type.
Example return: {"request":0,"status":"OK","results":
[{"machine":"4x4-DEMO","hostname":"4X4-DEMO","role":"Dedicated director","type":"4x4pro"}]}
Machine status:{"query":{"q":"machineStatus 4X4-DEMO"}}
Returns extra information about a machine: session status, failover status and current FPS.
Example return:{"request":0,"status":"OK","results":[{"active":true,"Failed":false, "fps":32.345558166503909}]}