The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: sys.execute error


  • Subject: Re: sys.execute error
  • From: JohnQuirk
  • Date: Thu, 08 Jan 2004 09:15:00 +0000

That's fantastic, thanks very much for your help. Using this
technology I can hit a button on my slim remote that turns off all
the house lights, checks the grage doors are closed and arms the
burglar alarm. My wife hates me.

JQ

--- In <a
href="/group/ukha_xpl/post?postID=UBJ19mW0rWz1gr9bBjgN8JdKVcLUWU7vmGvbcD0M129IgbwUexOWxbiFgi7VacyEJpNEcwJZxsaFGietb_YhvQ">ukha_xpl@xxxxxxx</a>,
"John B" <home-automation@j...>
wrote:
> > I now have the slim remote turning on and off my bedroom lights,
and
> > have dim and bright working too. This is excellent stuff you've
put
> > together, well done really.
>
> Cool - glad it's all working.
>
> > I would like to be able to use the up and down buttons on the
remote
> > for bright and dim, but although the commands are refered to
as "up"
> > and "down" in the slim html docs they don;t seem to
work for me
in
> > the script, but if I map numberscroll_3 and numberscroll_4 the
> > commands execute just fine. Any ideas?
>
> When the player is powered off, many of the buttons are
"dead",
which means the xPL message that is sent out will just contain the
word "dead" as the key name, rather than up, down, etc.
>
> If you look in the directory where you have installed SlimServer,
you should see a subdirectory called IR.
> Within IR, there should be a file called default.map.
> Open this file in a text editor like Notepad.
>
> Look for a section that looks like:
> # When the player is powered off, most buttons are dead
> add.* = dead
> arrow_down.* = dead
>
> You can change the arrow_down.* to a made up button name, e.g.
>
> arrow_down.* = x10_dim
>
> - make sure you pick something that won't conflict with a real
button name that SlimServer uses - x10_dim or x10_bright (or indeed
anything beginning with x10_) should be OK.
>
> Do the same for the Up, Left, Right and any other keys you want to
send out button presses when the player is powered off.
>
> Restart SlimServer so it reads in the new map, and you should be up
and running.
>
> Just look out for whatever button name you've set up in your
script - e.g. using my example of x10_dim:
>
> if lcase(xpl.getparam(XplMsg,"keys",true)) =
"x10_dim" Then
> call sys.execute("hsc.exe","-x G1 dim 10",False)
> End If
>
> HTH,
>
> John






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.