Update of /cvsroot/freevo/freevo/WIP/RobShortt/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1229/plugins
Added Files:
vdrctrl.py
Log Message:
A plugin to control VDR, more guts to come.
--- NEW FILE: vdrctrl.py ---
# -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------
# vdrctrl.py - A plugin to interface with VDR.
# -----------------------------------------------------------------------
# $Id: vdrctrl.py,v 1.1 2004/07/21 03:19:13 rshortt Exp $
#
# Notes:
#
# Todo:
#
# -----------------------------------------------------------------------
# $Log: vdrctrl.py,v $
# Revision 1.1 2004/07/21 03:19:13 rshortt
# A plugin to control VDR, more guts to come.
#
#
# -----------------------------------------------------------------------
# Freevo - A Home Theater PC framework
# Copyright (C) 2002 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a complete list of authors.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MER-
# CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ----------------------------------------------------------------------- */
import config
import plugin
import util
import vdrpylib.vdr as vdr
class PluginInterface(plugin.DaemonPlugin):
"""
"""
def __init__(self):
plugin.DaemonPlugin.__init__(self)
plugin.register(self, 'VDRCTRL')
self.poll_interval = 500
self.VDR = vdr.VDR( host = config.VDR_HOST,
port = config.VDR_PORT,
videopath = config.VDR_VIDEO_DIR,
cafile = config.VDR_CAFILE,
channelsfile = config.VDR_CHANFILE,
epgfile = config.VDR_EPGFILE,
setupfile = config.VDR_SETUPFILE,
svdrpfile = config.VDR_SVDRPFILE,
timerfile = config.VDR_TIMERFILE )
def config(self):
return [( 'VDR_VIDEO_DIR', '/video', 'VDR config directory.' ),
( 'VDR_HOST', 'localhost', 'VDR config directory.' ),
( 'VDR_PORT', 2001, 'VDR config directory.' ),
( 'VDR_CAFILE', 'ca.conf', 'VDR Conditional Access config.' ),
( 'VDR_CHANFILE', 'channels.conf', 'VDR channels config.' ),
( 'VDR_EPGFILE', 'epg.data', 'VDR EPG file.' ),
( 'VDR_SETUPFILE', 'setup.conf', 'VDR setup config.' ),
( 'VDR_SVDRPFILE', 'svdrphosts.conf', 'VDR SVDRP hosts config.' ),
( 'VDR_TIMERFILE', 'timers.conf', 'VDR timers config.' ),
]
def poll(self, menuw=None, arg=None):
"""
"""
print 'RLS: %s' % self.VDR.getsvdrp().current_chan()
def setChannel(self, chan):
pass
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog