"My Home Automation Projects"

Interfaces - WebServerPPC

Please also read the Disclaimer

MediaNet - Interface Modules - WebServerPPC

Purpose: To provide a basic Web Interface for MediaNet suitable for Pocket PC's

This module is based on the WebServer module

LOADER.xml

<loader>
    <instance>
        <interface module="WEBSERVERPPC" enabled="n" />
            to enable this inteface set enabled="y"
        <settings port="8094" />
            the port to listen on
        <settings web="www" />
            the folder where the web pages and images are located
        <settings page="10" />
            the number of items to display per page
        <settings password="" />
            allows simple password protection by specifying a password
        <coverart enabled="Y" filename="folder.jpg" album="jpg" width="120" height="120" />
            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="60" height="60" rows="4" columns="2" 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="120" height="120" />
            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 3 web pages, index.htm that lists available clients, and device.htm.xml that is a generic web page for all devices and finally source.htm which allows browsing ov available music. 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