![]() | |||
| HOME | ABOUT | STORE | WEBLOG |
|
Shion: Web Interface This document contains information about using a remote web interface with Shion. It assumes an Apache web host with support for executing Ruby CGI scripts. Setting up the Shion web interface The Shion web interface is a small Ruby CGI that uses SQLite3 as its backing database. The instructions below describe how to install this package. 1. Download the package. The Shion web interface is available here. Unzip the file and copy the files to the web root on your own web server. 2. Set file permissions. Locate the
4. In your Apache configuration, set up the CGI permissions. You may need to include the following lines in your local Apache configuration files:
You may wish to password protect this location using a Replace 5. Update the database location in the script. Update the
6. Initialize the database by visiting the following URL:
Remote
tab. Fill in the necessary values. For the URL, use
replacing
To verify that you can manipulate the devices remotely, toggle the device in the interface by clicking the icon next to its name. The icon next to the device will turn into a set of gears:
Ths means that the device has pending instructions. When Shion downloads the instructions, the gears will disappear. When Shion successfully executes the new instructions, the status icon will change. Note that it may take a a few minutes for this process to complete, depending upon local factors. How it works If you are working in an environment where Shion web package can not be run (no Ruby, a web server other than Apache, etc.), the following details explain the underlying architecture so that you can reimplement the web interface to suit your own requirements. 1. Uploading status. When a device's status changes, Shion invokes the
following URL using the
The capitalized values are replaced with their local equivalents, save for
the 2. To display the status of the devices, the Shion web interface calls the following URL:
This returns an XML file that the interface parses when constructing itself. 3. When remotely setting instructions, the calling application invokes
4. Shion downloads instructions by calling
This returns a list of pending instructions in XML, which Shion parses and executes locally. If the instructions are successfully executed, Shion calls
to reset the remote list. Questions, comments, corrections? This is an early version of the web interface instructions and may contain errors, ommissions, or opaque sections. If you need any help or have any suggestions, please e-mail shion@audacious-software.com. | |||
info@audacious-software.com
1.312.380.6424
| |||