File:Shared Variable AJAX Updater.zip

From SpinetiX Support Wiki

Jump to: navigation, search
Shared_Variable_AJAX_Updater.zip(file size: 32 KB, MIME type: application/zip)
Warning: This file type may contain malicious code. By executing it, your system may be compromised.

Description

Shared Variable AJAX Updater.png

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:

  1. Configure the player.
    1. Open Control Center and go to Advanced Applications → APIs Security.
    2. Check "Enable CORS requests" option.
    3. If needed, change the automatically generated API Key.
  2. Open the Shared_Variable_AJAX_Updater.htm file in your browser.
  3. Enter the HMP address (IP or hostname).
  4. Enter the API Key as configured on the player.
  5. 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.
  6. If desired, press the "Load value" to retrieve the current value of the shared variable from the player.
  7. Enter the new value for the Shared Variable.
  8. 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/TimeDimensionsUserComment
current18: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.

There are no pages that link to this file.

This page was last modified on 25 July 2023, at 18:48.