Specifications

Remote Control
45
AMX InspiredSignage XPress Programming Guide
terminate the command. This can be tested with the telnet utility, which sends this sequence when you press
Enter.
The network API also supports setting shared variables via an HTTP GET request. This method does not allow
persistent connections, but it is easier to access from a client scripting language supporting the
XMLHttpRequest API, such as JavaScript in web browsers.
To generate a command equivalent to the one above, enter the following URL in a web browser:
http://[is-spx-1000_address]:[port]/update?menu=P1
Example: Testing
To test, publish the menu_media.svg template file to an IS-SPX-1000 without modifying it. If you have not
already done so, enable the network API on the device.
While on the configuration home page (status), note the IP address. Assuming the IP address of the IS-SPX-
1000 is 192.168.1.10, type in: “telnet 192.168.1.10 1234" on the PC, then the switch command, then Ctrl+]
and “quit” to terminate the connection. This should look like this:
telnet 192.168.1.10 1234
Trying 192.168.1.10...
Connected to spx-1000-001d500000fa.amx.local (192.168.1.10).
Escape character is '^]'.
UPDATE "menu" "P1"
^]
telnet> quit
Connection closed.
As soon as you hit enter after the update command, the display should switch for 5 seconds, then revert to the
default page.
To test the HTTP GET method with the previous example, enter the following URL in a web browser:
http://192.168.1.10:1234/update?menu=P1
The GET method can also be embedded in an HTML page. The example below will let you switch the
document each time you click on the button.
<html>
<script>
function set( name, value ) {
var request=new XMLHttpRequest();
request.open("GET", "http://192.168.1.10:1234/update?"+
encodeURIComponent(name)+"="+encodeURIComponent(value));
request.send();
}
</script>
<body>
<form>
<button onclick="set('menu','P1')">Click</button>
</form>
</body>
</html>
For more information on enabling the network API, please refer to the IS-SPX-1000
Operation Reference Guide, available at www.amx.com.