"My Home Automation Projects"

Sources - Tivo

Please also read the Disclaimer

MediaNet - Source Modules - Scripting

Purpose: To provide menu based scripting functions on devices

To make use of this module scripting must also be enabled on the relevant devices

Currently it supports xPL scripts, but it is planned to also support xAP scripts and others

LOADER.xml

<loader>
    <instance>
        <source module="SCRIPTING" enabled="n" type="X" title="Scripts" />
            set enabled="y" if this source is required. Title= can be amended as required
        <settings folder="menu" />
            the folder, off of the sources\scripting folder, that this instance uses for it's scripts & menu structure
        <menus script="Scripts" />
        <titles main="Script Selection" script="Scripts" />
            the above titles can be amended as required
    </instance>
</loader>

In the example above the base of the scripts menu is <medianet install folder>\Sources\Scripting\Menus

The folder structure is displayed as the menu structure so if the above folder had 2 folders called House & Other then 2 items called House and Other would be displayed in the 1st level Menu and so on. There may be as many levels as required

Where a folder has only 1 item that is also a folder this folder is automatically selected, and vice versa when reversing out of menus

Script files are actioned when selected on the menu. To ensure correct menu order the scripts can be pre pended with a number that sorts the menu but does not display (e.g. "1 - Light On" would be displayed as "Light On")

MVP Note: This source is always displayed in text mode (as opposed to graphical modes for pictures, video thumbs, album covers etc), but may be skinned over with images instead

A script file is always a .txt file and the format has to follow certain provisions with the first line always giving the script type

A sample xPL script

xpl
xpl-cmnd
*
x10.basic
device=d11
command=on

For xPL the 1st line is always "xpl", the 2nd line is the xPL command type, the 3rd line is the xPL target, the 4th line is the xPL schema and the remaining lines are the actual xPL message