AMX IS-SPX-1000/1300 manual List of Commands, Network API Commands

Page 95

Shared Variables

List of Commands

Network API Commands

UPDATE

Syntax:

 

UPDATE [timestamp] “name” “value”\r\n

 

Used to send or receive updates. The timestamp is the number of microseconds since Jan 1st 1970

 

UTC. The timestamp may be omitted, in which case the server will use the time the command is

 

received as the timestamp. It is only possible to send an 'UPDATE' command to an IS-SPX Player if

 

the network API is enabled. Note that no response is sent back by the server. Please note that the

 

protocol is case sensitive, so the word UPDATE must be in capital letters.

 

Example:

 

GET / UPDATE?name1=value1&name2=value2... HTTP/1.0\r\n

 

\r\n

 

Used to send an update for one or more shared variables. The URL is also case sensitive, but the

 

update must be lower case in this instance. It is not possible to specify a timestamp with this interface.

 

Instead of opening a TCP socket and managing the low level protocol, you can get a web browser to

 

send the request by entering the address below:

 

http://[server]:[port]/update?name1=value1&name2=value2...

EVENT

Syntax:

 

EVENT [timestamp] “name” “value”\r\n

 

Used to send or receive UI events. The timestamp is optional. The name must be one of the UI trigger

 

names:

 

• “keydown”, “keyup”: the value is an SVG key identifier, e.g. “Enter”, a character, e.g. “A” or an

 

hexadecimal unicode character, e.g. “U+0041”; it may be prefixed by one or more of the following

 

modifiers: “Ctrl+”, “Shift+”, “Alt+”, “Meta+”, “AltGr+”, e.g. “Shift+A”.

 

• “textInput”: the value is the text string input by the user, utf-8 encoded.

 

• “mousedown”, “mouseup”, “mousemove” or “mousewheel”: the value is a comma-separated list

 

of the following argument: “x”, “y”, “button” and “delta” as applicable, e.g. for a mousedown on the

 

left button at coordinates 45,20, the value string is “x=45,y=20,button=0”

 

• “focusin” and “focusout”: the value must be empty.

 

It is only possible to send an 'EVENT' command to an IS-SPX Player if the network API is enabled.

 

Example:

 

GET / event?name1=value1&name2=value2... HTTP/1.0\r\n

 

\r\n

 

Used to send one or more events.

 

Instead of opening a TCP socket and managing the low level protocol, you can get a web browser to

 

send the request by entering the address below:

 

http://[server]:[port]/event?event_name1=value1&event_name2=value2...

SUBSCRIBE

Syntax:

 

SUBSCRIBE “name”\r\n

 

Subscribe to a variable on this server (the @ sign and hostname must be removed). The subscriber

 

will be notified each time the variable is modified. If the client subscribes to a variable, it will received

 

an 'UPDATE' command each time the variable is modified. If the client subscribe to the special variable

 

“%EVENTS%”, it will receive an 'EVENT' command each time an event is generated on the server, i.e.

 

each time a keyboard or a mouse input is received on the server. It is only possible to send an

 

'SUBSCRIBE' command to an IS-SPX Player if the network API is enabled.

UNSUBSCRIBE Syntax:

UNSUBSCRIBE “name”\r\n

Unsubscribe to a variable.

Inspired XPress - Programming Guide

87

 

 

Image 95
Contents Inspired Signage XPress WARRANTY, Disclaimer and License Table of Contents Remote Control Synchronized Content Interactivity Serial Protocol File Editor Table of Contents Inspired XPress Programming Guide Introduction InstallationWhen to use XPress Authoring Features? Installing Inspired Signage XPress for the First TimeXPress must be restarted to complete the activation Minimum Recommended PC RequirementsXPress Removal Installation LocationInspired Signage XPress UI XPress Main Interface Learning XPress Authoring FeaturesXPress Projects My Projects folder Creating a New ProjectNew Project dialog Target Browsing PanelImporting Video Importing Multi-Media FilesImporting Images Importing Flash SWF Files Importing PowerPoint PresentationsCreating and Editing SVG Files Template Document Parameters Editing an Existing SVG DocumentMedia description dialog lets you change Edit a Media PropertyInteractively Editing SVG Files Interactive EditingDemonstration of Media Elements Editing Media Elements LayoutEditing Text Editing Media LinksCustomizing a Multi-Layer SVG Document Multi-Layered SVG TemplatesComposing a Scene Playlist Template Example EditingComposing a playlist SVG document How to Customize a Playlist SVG DocumentPlaylist Tab Format Helpers Special News TemplatesComposing a Live News Document Layout TemplatesNewscrawler.svg Customizing a News SVG DocumentNews.svg Newsticker.svgFittext.svg Using Format HelpersSwitch.svg Bouncingtext.svgExample of 169 content Scalable Content and Aspect Ratio of Your Display169 templates as shows on a 43 screen Adding Effects Configuring EffectsMultimedia Effects Previewing Preview XPress ContentPublishing Using Quick PublishManually Add Devices to XPress MonitoringOpen a Device Scheduling the Content Displayed by an IS-SPX PlayerScheduling Check the Status of the DevicesOpen a Schedule Create a New ScheduleCalendar view Add Events To a ScheduleModify the Scheduling Properties of an Event Define Default Events and RecurrencesDefine a Default Animation Edit recurrence rule Define Recurring EventsData Polling Rates Preview Scheduled ContentOverview Remote Control of ContentWhen To Use Remote Control How To Use Remote ControlID table Playlist Triggering a Content Switch Over IPSettings menu Enable Network API Example TestingSwitching Content With a USB HID Device Switching Content With the Serial PortKey Identifiers tab Switching Content From Another DeviceHow To Use Remote Control of Playback Remote Control of PlaybackWhen To Use Remote Control of Playback Interactive Pause/Resume Over TCP Interactive Pause/Resume Using Http GETTimed pause/seek/resume GET Embedded In an HtmlInteractive Pause/Resume From a Device Knowing the Current Position With Extra Accuracy Getting Feedback On the Playback ProgressTriggering a Text or Image Overlay Triggering an Alternative ContentRemote Triggers Triggering of SVG Animations Designing Basic Projects for Multiscreen Layouts Application ExamplesMultiscreen Displays New Project menu Creating a Configurable Multiscreen ProjectMultiscreen Properties Finding the multiscreen templates Creating a Multiscreen Project from TemplatesNew multiscreen project can now be Saved and Edited Multiscreen layout drop down options Editing Multiscreen ContentCreate a Virtual Device Configuring XPress and the IS-SPX PlayerConfigure the Multiscreen ID Synchronizing Devices SynchronizationPublish Your Project To Your Device Administration Date/Time Configure NTP Through the Http InterfaceConfiguration Advanced ConfigurationUsing an IS-SPX Player as an NTP Server Master/Server Architecture Examples Configuration of the IS-SPX Player Acting as MasterMultiscreen Elements Syntax for Multiscreen Synchronized ContentSynchronization Elements Canvas and Viewbox ConceptsSpxbegin Element Additional Syntax for Multiscreen ContentExtension of the SVG switch Element Example Screen Layout With Six Screens Extension of JavaScriptExample Screen Layout With Spread Displays Example switch SVG ElementProject Creation TroubleshootingExample JavaScript NTP SynchronizationSynchronized Content Synchronized Content Inspired XPress Programming Guide Interactivity Template Files Creating Interactive ContentCreating Buttons Creating a Touch Screen MenuAdding an Action ID Controlling MediaEnter Interactive Mode Testing the ProjectCreating the Menu Creating a Keyboard MenuButton Action IDs Configuring the menuRGB values Hexadecimal value Eyedropper tool Color Selection green Controlling the MenuInteractive controls KeystrokesLayers tab keystroke.svg Controlling MediaSuggestions for Further Projects Testing the ProjectPlayback Projects New Project Playback TemplateExample Media player Controlling the MediaPlayback Position Playback.svg details Slider.svg placement Interactivity Settings IS-SPX Player ConfigurationCalibration of a Touchscreen Through the IS-SPX Player Calibration For Touch ScreensTroubleshooting Manual Calibration ProcedureAdding a List Variable Serial Protocol File EditorEdit Variable Page List variable Adding a Range VariableEdit Variable page Range variable Exporting the Finished FilePage Interface Concepts Behind Shared VariablesJavascript API Reading the Variable Setting the VariableSample Code Network APINetwork API Commands List of CommandsSample Code Enabling the Network APIAPI Emulation Restarting XPress will reset all the shared variablesShared Variables Inspired XPress Programming Guide Serial Control Gathering Display Serial Protocol CommandsSerial Protocol Commands Text Creating a Serial Protocol File Serial Protocol Commands HexHex Manual Command Text EntriesVariable List Volume Control VariableMute Off Sound Screen Mute Picture OnScreen Mute Picture Off Mute On SoundUploading the Serial Protocol File Under the Administration section, select RS232 / USB IOXPress My Templates Folder Creating New TemplatesXML Tree with new attribute param1 Creating and updating a new calendar fileNew.ics file Serial Control From NetLinx Power commandAdding Additional Templates to Inspired Signage XPress FSM Commonly Used TermsIncrease Your Revenue through education + knowledge