Table of Contents

Listing Detailed Spot Information

This application note describes shows how you can obtain a list of all Spots in your system, including the following details about each spot:

Installation and First Use

First follow this general setup. Use this PIXILAB-Blocks-root, which contains all you need for this application note.

Once that is done, follow these steps:

  1. Start Blocks.
  2. Open the editor using the Admin button.
  3. Log in using the name admin and the password pixi.
  4. Connect a PIXILAB Player to the server (alternatively, open a second browser window pointed at the Blocks server, acting as a Display Spot).
  5. Locate the Display Spot in the editor, double-click it and and reassign it to the ID shown by Spot added in the previous step.

Displaying the List

Open another browser window and go to the URL:

http://localhost:8080/auth/spot-info.html

Replace localhost:8080 with the address/name of your Blocks server if you're not running on your local laptop. This displays a list of all connected Spots, which at this point contains only the single Display spot added above.

:!: Placing the web page in the auth directory, rather than the more common public directory, requires the user accessing it to be logged in to Blocks, thus preventing anyone with access to the URL from accessing the web page.

Using on your own Server

If you want to incorporate this capability in your own Blocks server, copy the following files from the root folder of this application note to the corresponding directories on your Blocks server:

In addition to those two files, you also need to make sure that the system and system_lib contain the required files. If you had any scripts or drivers on your server since before, those files are most likely all there. If not, take them from the corresponding directories in this application note, or download and install the latest version of those files from here.

You may also download a selfcontained block ready for import into Blocks containing the booth the HTML part and the Blocks part. spotinfoblock.zip