File:Shared Variable AJAX Updater.zip
From SpinetiX Support Wiki
Description
This tool uses the webstorage_***
RPC commands to interact with the data stored in localStorage
, and implicitly, to update Shared Variables on HMP devices. The zip file contains 2 files, Shared_Variable_AJAX_Updater.html and a jQuery JavaScript file.
The tool is built using only HTML and JavaScript code, so it doesn't require to be served from a web server, although if you want to open it directly from your PC, you need to pay attention to Cross-Origin Resource Sharing (CORS) browser security.
To use the tool from your PC, follow these steps:
- Configure the player.
- Open Control Center and go to Advanced Applications → APIs Security.
- Check "Enable CORS requests" option.
- If needed, change the automatically generated API Key.
- Open the Shared_Variable_AJAX_Updater.htm file in your browser.
- Enter the HMP address (IP or hostname).
- Enter the API Key as configured on the player.
- Press the "List variable" to get the list of Shared Variable already present on the player
- You can also enter a Shared Variable name manually.
- If desired, press the "Load value" to retrieve the current value of the shared variable from the player.
- Enter the new value for the Shared Variable.
- Press the "Send update" button.
Alternatively, to avoid CORS, you can import these two files into your Elementi project, publish that to the player, and then use http://Player_address/content/Shared_Variable_AJAX_Updater.htm
in your browser.
See also
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Dimensions | User | Comment | |
---|---|---|---|---|
current | 18:38, 16 August 2017 | (32 KB) | NicusorCheles (talk | contribs) | v3 (minor changes) |
16:19, 8 May 2017 | (31 KB) | Jr (talk | contribs) | Updated version using an rpc-api-key | |
11:53, 17 August 2016 | (31 KB) | Jr (talk | contribs) | Fixed archive | |
17:13, 14 July 2016 | (29 KB) | Jr (talk | contribs) | v1.1: added withCredentials headers to support authentication using cookies | |
18:11, 11 July 2016 | (31 KB) | Jr (talk | contribs) | Version 1.0 |
- You cannot overwrite this file.
File usage
There are no pages that link to this file.