Difference between revisions of "Lircrc builder"
From MythTV Official Wiki
m |
(→Source code: Fix a bug) |
||
Line 67: | Line 67: | ||
if arg == "--file": | if arg == "--file": | ||
fn = sys.argv[x + 1] | fn = sys.argv[x + 1] | ||
+ | x += 1 | ||
f = open(fn, "r") | f = open(fn, "r") |
Revision as of 05:27, 27 March 2007
Introduction
This is a simple python script I made to convert shorthand lirc config to full config. Remeber this is in beta and may have problems use at your own risk.
Howto
For an example create this file Template:Box File Then run
# python lrc.py
That will output this
#Generated by: t0ny's lircrc builder begin prog = mythtv button = Play-button repeat = 3 config = p end begin prog = mythtv button = Vol-up repeat = 3 config = F11 end begin prog = mythtv button = Vol-down repeat = 3 config = F10 end begin prog = mplayer button = Play-button repeat = 3 config = p end