BreadCrumbs: Ivtv-channel

Ivtv-channel

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 07:14, 5 December 2007 (edit)
Ljackson (Talk | contribs)

← Previous diff
Revision as of 07:15, 5 December 2007 (edit)
Ljackson (Talk | contribs)
(Summary)
Next diff →
Line 1: Line 1:
== Summary == == Summary ==
-'''ivtv-channel''' is an utility to change channels with a remote control. It is designed to work along with [[LIRC]]. It is very useful for watching ivtv in standalone applications such as VLC or MPlayer.+'''ivtv-channel''' is an utility to change channels with a remote control. It is designed to work along with [[Lirc]]. It is very useful for watching ivtv in standalone applications such as VLC or MPlayer.
== Requirements == == Requirements ==

Revision as of 07:15, 5 December 2007

Contents

Summary

ivtv-channel is an utility to change channels with a remote control. It is designed to work along with Lirc. It is very useful for watching ivtv in standalone applications such as VLC or MPlayer.

Requirements

  • Python >= 2.4
  • Ivtv utilities >= 0.4

As far as I know it's compatible all the way back to 0.4, either way, it detects the major API change in 0.8 and works automatically across all recent versions.

Download

The latest version of the script can be downloaded from the link below:

Only tagged (final) released versions should be used, but the trunk development version is also available in that repository.

An RSS feed of releases can be found at the link below:

Install

  • Copy the script to somewhere where your irexec daemon can use it (read+execute permissions for the user calling irexec).
  • Edit your ~/.lircrc to make use of the script. Make sure to fine tune it to your remote (see below)
  • Finally execute irexec & and it should work.
# The following is an example into how to integrate this script with LIRC.
# Execute irexec & to make it work.
#--------------------------------------------------
# File: ~/.lircrc (This works with the '''Hauppage 150 Silver & Black Remote''')
#--------------------------------------------------
 begin
     button = Ch+
     prog = irexec
     config = python /path/to/ivtv-channel.py up
 end
 begin
 	button = Ch-
 	prog = irexec
	config = python /path/to/ivtv-channel.py down
 end
 begin
 	button = OK
 	prog = irexec
        config = python /path/to/ivtv-channel.py enter
 end
 begin
 	button = Prev.Ch
 	prog = irexec
	config = python /path/to/ivtv-channel.py last
 end
 begin
 	button = 0
	prog = irexec
	config = python /path/to/ivtv-channel.py 0 &
 end
 begin
 	button = 1
	prog = irexec
	config = python /path/to/ivtv-channel.py 1 &
 end
 begin
 	button = 2
	prog = irexec
	config = python /path/to/ivtv-channel.py 2 &
 end
 begin
	button = 3
	prog = irexec
	config = python /path/to/ivtv-channel.py 3 &
 end
 begin
 	button = 4
	prog = irexec
	config = python /path/to/ivtv-channel.py 4 &
 end
 begin
 	button = 5
	prog = irexec
	config = python /path/to/ivtv-channel.py 5 &
 end
 begin
 	button = 6
        prog = irexec
        config = python /path/to/ivtv-channel.py 6 &
 end
 begin
 	button = 7
	prog = irexec
	config = python /path/to/ivtv-channel.py 7 &
 end
 begin
 	button = 8
	prog = ireec
	config = python /path/to/ivtv-channel.py 8 &
 end
 begin
 	button = 9
	prog = irexec
	config = python /path/to/ivtv-channel.py 9 &
 end
#-------------------------------------------------- 

Standalone Usage

ivtv-channel (up|down|last|enter|channel number)
Personal tools