Re: (Mostly OT) Using a remote with perl?
by matija (Priest) on Apr 07, 2004 at 11:18 UTC
|
| [reply] |
|
|
LIRC is indeed what you want. After you got that set up (even my exotic remote worked :) you can just use 'irexec' to hack some scripts together (I use bash) to do whatever you want. I currently run xmms, xawtv via the remote, as well as a little script that passes my last email to festival and a little snippet that will display the From and Subject header of my latest two emails on my screen, using osd_cat.
--
b10m
All code is usually tested, but rarely trusted.
| [reply] |
|
|
LIRC sounds very promising, but I'm a tad confused as to exactly what I could use to get signals from my remote to the computer. The only two devices it lists in the "hardware" side are both in german so I'm not sure which I need/should get. What did you use to receive signals from your "exotic" remote?
| [reply] |
|
|
Re: (Mostly OT) Using a remote with perl?
by andreychek (Parson) on Apr 07, 2004 at 17:28 UTC
|
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,
-Eric
--
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."
| [reply] |
|
|
| [reply] |
|
|
| [reply] |
|
|
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
-Eric
--
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."
| [reply] |
Re: (Mostly OT) Using a remote with perl?
by Abigail-II (Bishop) on Apr 07, 2004 at 11:06 UTC
|
Well, you'd first need some hardware - a remote, and a device
that receives the signals from the remote. Then you need a
driver so that you can communicate with the device, to see
which signal(s) the remote sent. Then you would need some XS
code to interface with the driver.
Abigail | [reply] |