View Full Version : Scripting Remotes


zim2dive
09-18-09, 10:49 AM
This is not a well-formed idea yet... my linux HTPC is connected to my 47" LCD which I leave turned off most of the time.. I haven't measured its screen-saver/standby but figure its still worth turning off. As a result I don't tend to use it as much I would it it were hooked up to "normal" size LCD display, ie. as my other machines are, which do go in to standby for quick wake-up... so maybe that's a tangent discussion.

I currently do have nor use a remote with the system.. just wireless mouse/keyboard.

It occurred to me that I could get a remote, and set up scripts that woudl be triggered that would (as an example)
- start internet radio
- connect to my iTunes lib (via Firefly Server, and whichever client is most scriptable) and play a playlist

I'm pretty decent on the scripting end of things (usually).. just not familiar with what the mechanism would be for receiving the codes, etc.

can anyone point me in the direction of anything even remotely similar so I could start looking in to how feasible this is/isn't.

And/or I could do something like this via my smartphone (once I stop being cheap and shell out for a data plan).. once upon a time I mocked up a simple web page that I could leave on the machine's web server that would kick things off (but I don't have a data plan, and wifi kills my battery, and turning it on/off in WinMo and then connecting is beyond painfully slow and cumbersome)

thanks,
Mike

wnewell
09-18-09, 11:24 AM
If you setup hotkeys on your desktop, you can use a remote to start any program assigned to them using lirc and irxevent. IOW's , from the remote, you can send any keypress that your keyboard supports, including Fx, Shift, and CTRL keys. Not sure what you were asking, but that should answer it.:-)

zim2dive
09-18-09, 11:51 AM
If you setup hotkeys on your desktop, you can use a remote to start any program assigned to them using lirc and irxevent. IOW's , from the remote, you can send any keypress that your keyboard supports, including Fx, Shift, and CTRL keys. Not sure what you were asking, but that should answer it.:-)

Heh.. maybe I can just do a limited set (1st draft anyway) from the Fn keys on the keyboard.. I was making things too complicated :) (but dang it, this would not involve buying any new HW :) ).

Off to do some research on the key mappings from keyboard....

thanks,
Mike