Status
door is becoming closed so people stop coming in
Location
Herndon, VA
Subscribe to GeoRSS Subscribe to KML


IndigoWidget v1.1 - now with Preferences!

Published in Apple, Dashboard, Home Automation, Javascript, Programming, Technology  |  1 Comment


Since remote access via the IndigoWidget was such a popular feature - and not everyone is a programmer, I have moved setting remote control via the IndigoWidget as a preference on the backside of the widget.

You can download the new version from the software page. There is also an included Readme that discusses setting up your widget over to work over the internet back to your house or office.

I hope you enjoy!

IndigoWidget backside

troglogdyte speak

For those interested, coding up preferences for a Dashboard widget are actually impressively straight-forward and easy.

The only two lines of code that are special are the following which get and set the preference for the widget:


    var IndigoServerIP  = widget.preferenceForKey("serverIP");
    if(IndigoServerIP  != '')
        getObj("serverIP").value = IndigoServerIP;  

    widget.setPreferenceForKey(getObj("serverIP").value, "serverIP");

Assumedly these are stored by the name of the widget (e.g. com.highearthorbit.widget.Indigo).

Similar Posts


Responses

  1. Steven Ulrich says:

    March 26th, 2006 at 10:57 am (#)

    With the X10 light switches, the first command is sent to address the device, then the second command is to set the brightness.

    When the “on” is sent, the device is address only, the “on” is not executed even if the light is off.

    When “off” is sent the device is addressed and the command is executed. This causes the light to switch off, turn on and then dim to the desired setting.

    Is there a way, in the Preferences, or some kind of cohesion to you, to change the “off” to an “on” sent by the Widget?

    Thanks,
    -Steve

Leave a Response