Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: (Mostly OT) Using a remote with perl?

by andreychek (Parson)
on Apr 07, 2004 at 17:28 UTC ( #343347=note: print w/replies, xml ) Need Help??

in reply to (Mostly OT) Using a remote with perl?

I was considering doing something like this using X10. You could do everything you need with the Active Home hardware. The pieces you would use are:

  • X10 Remote Control
  • X10 Transceiver Module (take the remote's RF signals and push them across your power line)
  • X10 Computer Interface

With those, you could generate signals on the remote, and see them from your computer.

On the software end of things, there's a number of choices available to you. Misterhouse is one of my favorites. It's a software package written in Perl that interacts with X10 devices. You could easily program it to control XMMS based on what X10 signals it seems going across your power line.

This sounds like a fun project. Good luck with it,


Lucy: "What happens if you practice the piano for 20 years and then end up not being rich and famous?"
Schroeder: "The joy is in the playing."
  • Comment on Re: (Mostly OT) Using a remote with perl?

Replies are listed 'Best First'.
Re: Re: (Mostly OT) Using a remote with perl?
by BUU (Prior) on Apr 07, 2004 at 21:28 UTC
    This looked interesting, but when I looked at Misterhouse it only had a few events listed from x10 remotes:
      X - every command will start with this
      M1 - the house code and unit
      MK - the house code and the command
      K here might be any of the following:
        J    - ON
        K    - OFF
        L    - brighten
        M    - dim 
        dd%  - Sets module to this brightness level
        +-dd - Bright/dims by this amount
    It doesn't seem like just these events would be enough to program a decent interface.
      I have an x10 RF remote (part of the boom2000 kit) hooked up to my windows machine. It has a setup screen which lets you assign functions to all of the buttons on the remote. I guess Mr. House just chose not to use them?

      There's some perl code for listening to x10 remotes in Talking Winamp RF remote control. I've never gotten around to trying it though.

      I think you can still do what you want. In setting up X10, you would set your remote for a particular "House Code", by default it's set to "A". Within each House Code, you have 16 Unit Code's that you can use.

      And then, within each Unit Code, you have the ability to turn it on, off, brighten, and dim.

      What I would probably do is make it so that pressing "Unit Code #1 On" in the remote has xmms start playing. "Unit Code #2 On" would go forward a song, "Unit Code #3 On" would go back a song, etc.

      Good luck


      Lucy: "What happens if you practice the piano for 20 years and then end up not being rich and famous?"
      Schroeder: "The joy is in the playing."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343347]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2020-09-27 17:15 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (142 votes). Check out past polls.