eHome Digital Tools Web help

Main-Index  Installation  Client-Office  Client-Kitchen Client-AVOD  Client-Other  Screen-Designer  Admin  Adding Content  How-To

Document Release 1 - ALPHA!


- Setting up Powerhome Remotes -

First thing here is to make sure the DS and CC remotes work outside of eHome. Once this done and and you can use the CC and DS remotes by themselves then run the eHome menu editor and turn on the menus for the remotes. The VBScript might need to be tweaked for the screen size and resize speed. Here is the code below. This is in your eHomeClient.vbs file.  This code is already in the VBS file.

'=================================================================
Function EXT_RUN_PHCC()
    '--- Powerhome remote control center
    '--- have we already init'd this?
    If g_oGbl.Cargo_Item("PHCC_INIT") = "1" Then
        g_oGbl.EH_ActivatePHCC '--- activate it
    Else
        '--- set the path
        g_oGbl.Cargo_Add "C:\Program Files\powerhome\phremotecc.exe", "PHCC_PATH"
        '--- set the caption
        g_oGbl.Cargo_Add "Remote Control Center", "PHCC_CAPTION"
        '--- load and activate
        g_oGbl.EH_ActivatePHCC
        '--- OK, set the Init flag
        g_oGbl.Cargo_Add "1", "PHCC_INIT"
        '--- move the window ---         Win size                  the 0.7 is a delay to let the EXE init itself
        g_oGbl.EH_MoveWindow 0, -20, 800, 547, (g_oGbl.Cargo_Item("PHCC_HWND")), 0.7
    End If

End Function

The  0.7 parameter in the EH_MoveWindow function creates a delay before we send a resize events to the Powerhome remote window. If you receive a Powerhome error (resize events) then set this value to something higher. (1.0 or 1.2)  **   The code line -->  g_oGbl.EH_MoveWindow 0, -20, 800, 547, (g_oGbl.Cargo_Item("PHCC_HWND")), 0.7 contains the window size. Its the 0, -20, 800, 547 (left, top, width, height) parameters that resize the Powerhome windows. These will probably have to be tweaked for you screen size. The -20 hides the Windows title menu bar.

0, -30, 800, 560 is  the size for 800*600 WinXP
0, -20, 800, 547 is the size for 800*600 Win2k

- Skype Video Setup -

   Skype Video setup

- Setting up multi copies of WinAmp (Multi-Zone) -

    Multi-Zone documentation

- Use the eHome Client Socket Server -

    Socket server documentation

- Adding Internet Radio -

    Internet Radio documentation

- Connecting to Multiple Audio Servers From a Single Client -

    Multiple Audio documentation

- Playing DVD images - If you are going to play DVD images, then please download Daemon Tool. eHome uses this free utility to mount DVD images. After you install this, make sure you turn off secure mode in the options menu or you will be prompted every time a DVD is mounted. Then edit your client INI file and tell eHome what drive letter Windows assigned to your new DVD drive.

- Change text colors - Text colors are stored in TextColors.ini file in the graphics folder. So if you are using the 800*600 blue rock graphics then you would look in 'C:\eHome\Client-Server\Graphics\BG Blue Rock 800-600\'  folder. Colors are set in the standard red-green-blue format.

text_normal1=255,255,255
text_normal2=192,192,255

Use notepad and change these to what you would like and save the file. restart eHome and you should see your new colors.

- Changing the way recipe's are displayed - Local recipe content  is displayed in an HTML format. The file 'recipe_template.txt' holds the HTML template code and the custom tags (!!SP!!. !!RT!!, !!ING!!, !!PREP!!) are replaced with the fields from the database. So you modify this template file to change colors and layout.

- Add a custom program to the menu - eHome supports 6 extra user defined icons in the main menu so you can add your own external programs. The code is executed through the client VBScript file. (eHomeClinet.VBS) If you start the Client menu Editor and you can see the 6 user defined menus.

These correspond to 6 functions in the eHomeClient.vbs file.
EXT_RUN_USER01 through EXT_RUN_USER06

So if we want to run the Powerhome EXE program the code will look like this.

Function EXT_RUN_USER01()
    '--- USER 01 Function
    'msgbox "EXT_RUN_USER01"

    '--- shells or finds a application
    dim sadStartsWith: sadStartsWith = 0
    dim sadContains: sadContains = 1
    dim sadMatches: sadMatches = 2

    Dim sPrgCation,sPathAndFile, nFindWinBy

    nFindWinBy = sadContains
    sPathAndFile = "C:\Program Files\powerhome\pwrhome.exe"
    sPrgCation = "powerhome"

    g_oGbl.EH_AppActivate sPrgCation,sPathAndFile, nFindWinBy-9-2-40

End Function

The code below will create a custom browser target.

Function EXT_RUN_USER02()
    '--- USER 02 Function
    'msgbox "EXT_RUN_USER02"

    '--- this creates a private browser and activates it
    dim sName, sURL
    sName = "PHomeWeb"
    sURL = "http://www.power-home.com/"
    g_oGbl.EH_ActivateExtURL sName,sURL

End Function

- Change Kitchen timer alarm - When a kitchen alarm is triggered, eHome sounds a simple alarm and shows a message on the screen. This can be changed to your own style of message in the eHomeClinet.vbs file. See the script below.

'=================================================================
Function KITCHEN_TIMER_SHOW_ALARM(TimerNumber)
    '--- called when kitchen timer fires
    'msgbox "KITCHEN_TIMER_SHOW_ALARM" & TimerNumber

    if TimerNumber = 1 then
        '--- 1st timer fires
    Else
        '--- 2st timer fires
    End If

    '--- if False is returned then eHome will NOT
    '--- beep or show anything
    KITCHEN_TIMER_SHOW_ALARM = True


End Function

- How to exit eHome on a touch screen without a keyboard -


 

With a keyboard just press the escape key.

 - Change icons for the main menu - A little back ground on how eHome uses graphics first. Graphics are broken out into 2 different sections. The first is the backgrounds and the other is the icons themselves. You will find all graphics off of c:\eHome\client-server\graphics folder. Menu icons are 128*128 PNG's and all other Icons are 48*48 PNG's with both an up and down state. So as an example,  to change an icon for a menu item you would replace its 2 PNG files (up and down state) with your new PNG files. Then restart the eHome client. Note - There are some extra menu icons in the 'C:\eHome\Client-Server\Graphics\Extra Menu Icons' folder.

- Using Powerhome Socket remote from eHome script -  First make sure you have enabled Powerhome socket server. Once this is done you need to also set up eHome's Powerhome socket server interface. This is done in the eHomeSvrHAPH.ini file. Make sure the port, IP, password and user name variables are set.  To call a Powerhome macro use: 

PLEASE SEE THE FORUM. There is LOTS of samples and code.

 

- Scripting overview -
- Shopping list file copy -
- Changing the stock audio and video picture -
- Enabling the bar code scanner -