"My Home Automation Projects"

Interfaces - WebServer

Please also read the Disclaimer

MediaNet - Interface Modules - WebServer

Purpose: To provide a basic Web Interface for MediaNet

LOADER.xml

<loader>
    <instance>
        <interface module="WEBSERVER" enabled="y" />
            this is enabled by default, and needs to be enabled unless another web module is available
        <settings port="8080" />
            the port to listen on
        <settings web="www" />
            the folder where the web pages and images are located
        <settings page="20" />
            the number of items to display per page
       
<settings trackinfo="y" />
            to disable display of artist/album on a track list set this to trackinfo="n"
        <settings password="" />
            allows simple password protection by specifying a password
        <coverart enabled="Y" filename="folder.jpg" album="jpg" width="200" height="200" />
            controls if the 'now playing' section displays album covers
            filename= specifies a specific filename to look for for the artwork
            album= specifies to look for <album name>.<filetype> e.g. All Saints.jpg
            width= and height= control the size of the image

        <jukebox width="120" height="120" rows="3" columns="6" clear="Y" play="Y" />
            if jukebox source is available specifies size of image to display
            and number of rows and columns to display
            clear= specifies if when an album is selected it should clear the current playlist
            play= specifies if when an album is selected an automatic play command should be sent

        <jukeboxview width="300" height="300" />
            specifies the size of the artwork in extended jukebox view
    </instance>
</loader>

You can, if desired, load multiple instances of the web server using different ports/paths as required (e.g. you might create cut-down web pages to fit a pocket pc and make this available on a different port, or have an internal facing version with no password and external facing version with password)

There are 2 web pages, index.htm that lists available clients and scanners and device.htm that is a generic web page for all devices. These can be amended/replaced as required

The web server uses a file www\web.xml to specify the text (or alternately image) for each item on the web page, examples are:

<item param="{cmd_mute}" text="Mute" image="" width="" height="" /> display text 'Mute' for the Mute command

 <item param="{cmd_power}" text="" image="images\power.tif" width="20" height="20" /> display an imagefor the power button

 

Some Sample Screenshots
(these images don't show the search box yet)


 

 

Coverflow

The web server (as of 20/03/2009 update) now supports a Coverflow style device interface for use with the Jukebox source

Coverflow must be enabled in the Jukebox source (jukebox loader.xml <settings coverflow="y" /> or line can be missing) and it will create 3 xml files for use by the web server

If the web server finds coverflow enabled it add's extra hyperlinks to the jukebox main index ("Jukebox by Artist", "Jukebox", "Jukebox by Genre") to launch the flash interface

 

An album will start playing when you click on the centre image or the album title

If the flash control has focus you can press the letters A thru Z as a quick index (Artist/Album only, not genre)

To add this to additional website instances, simply copy the support files from www to your own folder(s)

This coverflow control is a modifed version of the free coverflow flash application released by Stephen. Many thanks.