Premise [download] Module: HomeStatus - lists status of all Home objects.

Motorola Premise

123

Senior Member
index.php
File Name: Module: HomeStatus - lists status of all Home objects.
File Submitter: 123
File Submitted: 30 Jan 2010
File Category: Premise
Author: 123
Contact: PM me
Version: 1.0

HomeStatus is a Module that enhances the operation of the AutomationBrowser. It adds status information for many Home objects (Appliances, HVAC, Lighting, Security, etc). The status information appears below each Home object icon displayed in Premise Browser. HomeStatus also adds a new view in Premise Browser that lists all Home objects and their current status (if any). If you click the object's name, it'll display its full user-interface.

Aside from Lights, most Home objects do not display status information in Premise Browser. HomeStatus adds status text for many (but not all) Home objects.

Installation
  1. Backup your Premise server (File > Backup to Client ...)
  2. Export Modules > Plugins
  3. Import HomeStatus_V1.0.xdo

Usage
  • In Premise Browser, status information will appear beneath each icon (for supported objects).
  • In Premise Browser's "Current Options", click "Home Status" to display a list of all Home objects and their current state. Click the listed object's name to view its user-interface. If you do not see "Home Status" in "Current Options", click "Media" and then click "Home".

Customization
To alter the appearance of the status list, navigate to Modules > Plugins > Selectors > ClasslessSelector > HomeStatus > HomeStatusPlugin and alter the following CSS properties to suit your needs:
PanelColor
Left
Top
Width
Height
BackgrounColor
Color
FontFamily
FontSize
BorderStyle
BorderColor
BorderWidth
Overflow

Click here to download this file
 
The attached image displays the "Home Status"page with the "Space" theme (in 1024x768).
  • Room name background color
    The "PanelColor" property controls the background color of the Room names (i.e. the horizontal bars).
  • Room name color
    "Color" controls the color of the Room name text.
  • Border
    If you don't like the borderless appearance, change "BorderColor" from Transparent to whatever color you prefer and a border will appear around the list.
  • Border width
    "BorderWidth" controls the frame's width but don't reduce it below 2px. I noticed the following quirk in Internet Explorer: when you scroll the list, it automatically decreases the BorderWidth! So if BorderWidth is 1px, the border disappears when the list is scrolled.
  • List size
    The list's height and width are controlled by, you guessed it, "Height" and "Width". You can set width as a percentage but everything goes screwy if you do that with height. You must indicate height in pixels.
  • Home object text
    The appearance of the Home object's text is governed by the selected Theme.
  • Status text
    Each Home object's status text is created by its associated Selector. For example, Modules > Plugins > Selectors > Lights > ShowStatus is responsible for rendering the status text for all Lights.
  • Selectors and ShowStatus
    "ShowStatus" can apply to a group of objects or to only one kind of object. For example, in the attached image that lists Climate Control Selectors, ShowStatus #1 applies to all objects listed under Climate Control. However, ShowStatus #2 applies exclusively to Thermostats (i.e. it supercedes ShowStatus #1).
 

Attachments

  • HomeStatus_Space_Theme.jpg
    HomeStatus_Space_Theme.jpg
    70 KB · Views: 65
  • Climate_Control_Selectors.png
    Climate_Control_Selectors.png
    24.6 KB · Views: 55
123, thanks for this module, I like it a lot!

I was studying it and noticed you call GetHTMLColor(this.PanelColor) instead of system.GetHTMLColor(this.PanelColor)

Are they equivalent? Sorry for the newbie question... Either way, the module works very well.
 
For individual objects in the AB (lights, etc), I'd like to have the status overlayed on the graphic, OR on top of the graphic. I haven't been able to find where to do that. I assumed bottom padding would do it, but haven't found a solution...anybody have an idea?
 
There are at least two ways to overlay text onto an image.
  1. Make the image part of the background of a table cell and then supply text for the table cell.
  2. Use CSS to position the text on top of an image.

http://www.the-art-of-web.com/css/textoverimage/
http://css-tricks.com/text-blocks-over-image/

In AutomationBrowser, the "ShowStatus" scripts generates the text below an icon and is found in Plugins > Selectors for each class. Be aware that "ShowStatus" renders HTML code that is used by AutomationBrowser and MiniBrowser.
 
Another approach I have been taking is with the Custom panel buttons - using the graphics overlaid on the custom button then using a command macro and a script macro to set the state of the object onto the custom button. It allows me to bypass some of the stepping thru areas to get to the action...Works well, although I tried to make it harder than it really was...
 
I'm making some great progress...using Damon's Coffeeshop UI as a model, and 123's Homestatus as a place to rip code from, I have some of the same functionality, I think. I have lost nearly all of the normal navigation; my shapes are whatever I want them to be; device control and status is enhanced way beyond normal out of the box Premise...I won't be able to upload an xdo, but I'll be able to share some of the techniques and modifications I have used...I also had to modify 123's minibrowser, as well. (I had an 'oh %@^!) moment when I got to work and realized I had made a SMALL mistake...(I cant get the AB to work thru the FW. Yet.)..and was unable to turn on the pool filter from work...
 
I also have been playing around a little with using only custom panel buttons on a UI, I haven't gone too crazy yet because I am waiting on the new low priced 1024 x 600 windows 7 tablets to come out so I can replace all of my Fujitsu P600s. My Fujitsus run Windows 2000 so they max out at IE 6, IE 6 doesn't seem to support alpha transparency for .pngs and I plan to get rid of all the .gif graphics. The more I have played around with Premise the more I realize that the GUI is really highly customizable. I love the ability to set a standard buttons navigation property to hidden so I can replace it with a custom panel button.
 
Back
Top