[Freevo-devel] Re: close svdrp..
> I wrote this; it doesn't crash anything, but I don't know it it does > what we'd discussed. I'll test and post back, would be much cleaner > to have this somewhere else though ;-) > Preliminary tests show it does the job, but I only tested for 5 or so minutes and something did crash in freevo/vdr so I can't say if its a stable method. Mick --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
Re: [Freevo-devel] [ freevo-Bugs-1007329 ] Problem with Lcd plugins
Hi, I noticed that revision 1.20 from lcd.py was not the one included in 1.5.2 (but 1.19). So there's still a unicode decoding problem for lcd displaying in 1.5.2. Replacing it by the 1.20 solve the problem. Sincerely, Stéphane SourceForge.net wrote: Bugs item #1007329, was opened at 2004-08-11 11:43 Message generated for change (Comment added) made by gsbarbieri You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1007329&group_id=46652 Category: plugins Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stéphane Lavirotte (lavirott) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with Lcd plugins Initial Comment: Bug in lcd plugins loading at freevo starting failed to load plugin lcd start 'freevo plugins -l' to get a list of plugins Traceback (most recent call last): File "/usr/local/src/freevo-1.5.0/src/plugin.py", line 572, in __load_plugin__ p = eval(object)() File "/usr/local/src/freevo-1.5.0/src/plugins/lcd.py", line 708, in __init__ if val: param = param % eval( val ) UnicodeDecodeError: 'ascii' codec can't decode byte 0xfb in position 15: ordinal not in range(128) This bug appears not a long time ago, but I can't say when. I noticed it with my last install too (1.5.0-rc2), and I upgraded to 1.5.0 to test Actually my configuration (on a debian system): Freevo 1.5.0 lcdproc 0.4.5-1 For the moment I commented the lines corresponding to the welcome splash screen on (lines 706-713), and every think works fine after. Stéphane -- Comment By: Gustavo Sverzut Barbieri (gsbarbieri) Date: 2004-08-11 15:00 Message: Logged In: YES user_id=511989 Hello Stéphane, Try revision 1.20 from lcd.py, in CVS right now (confirm it's version 1.20, anonymouse sf cvs may be delayed). Maybe what was happening is your LC_ALL or LANG set to some language where some un-wrapped string, maybe "Today is", is translated to something that contains chars out of the ASCII range (0-127). My patch try to wrap every string with String(). If you find another bug like this (UnicodeError) in freevo, try to wrap with String() or Unicode(), depending on the context. Keep reporting errors! Thanks, Gustavo -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1007329&group_id=46652 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
[Freevo-devel] Run Commands by Key-Event
Hello! I've installed Freevo some days ago and it is great! There is only one thing left I would like Freevo to do and I don't know how to manage it. My Soundkard is a little bit buggy and looses it's config all the time. So I need to force it back to the correct settings over the alsactl: # /alsactl restore -f /home/freevo/51.sav -F I didn't want to do this from console anymore. So far I managed to put the command to the startmenu: # plugin.activate('command.CommandMainMenuItem',args=('/home/freevo/51.fxd', ), level=40) # (with a xterm -fn 10x20-line in the 51.fxd-file) It would be great, if I could run this command by a key-event. I am thinking of something like: # EVENTS['global']['VOL+'] = '/usr/sbin/alsactl restore -f /home/freevo/51.sav -F &' # But this of couse is not working. I think it would be possible with a IR-remote and a command like config = '/usr/sbin/alsactl restore -f /home/freevo/51.sav -F &' in the .lircrc-file. But I would like to use my RF-keyboard... so is there any way to run a command by a key-event? Thanks a lot! Greetings from Hannover, Germany, Simon --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
[Freevo-devel] close svdrp..
Rob, I wrote this; it doesn't crash anything, but I don't know it it does what we'd discussed. I'll test and post back, would be much cleaner to have this somewhere else though ;-) Mick #if 0 /* # --- # vdr_close.py - A VDR (DVB) plugin for freevo # --- # # Author: # Ove Risberg[EMAIL PROTECTED] # Thomas Weber [EMAIL PROTECTED] # # Notes: # # Run "freevo setup vdr-0.3.tgz" and activate the plugin with # plugin.activate('vdr', level=5) in your config. # # Requirements: # - svdrpylib installed in freevo/src/ # - a running vdr installation (of course :) # - when using tvtime/SVDRP: (Full featured DVB cards) # - set SVDRP Timeout in vdrs OSD to 0 # - make sure to setup svdrphosts.conf correctly # - add the color buttons (YELLOW,GREEN,RED,BLUE) to freevo's lirc file # - for XINE (Budget DVB cards, streaming client) # - xine plugin for vdr. Start vdr with -P'xine -r' # # The Plugin uses several variables from local_conf.py: # VDR_VIEWER_PLUGIN='tvtime' # Wich Viewer? Use either tvtime or xine. # VDR_USE_SVDRP=1 # Ignored for tvtime use. When you use xine, you can use xine's event chain # # instead of SVDRP to send keypresses. # VDR_SVDRP_HOST='localhost' # This is the host that runs vdr # VDR_SVDRP_PORT=2001 # VDR's SVDRP Port. 2001 is default. Make sure that no other # # program is sitting on the port! # VDR_SVDRP_ALWAYSCLOSE=0 # Should we close/reopen the SVDRP connection on each keypress? (Safe but SLOW!) # # # The plugin is tested with the following setup: # freevo1.5.0 # vdr 1.3.10, 1.3.11 (with vdr-xine 0.3.4 or 0.4.2 plugin) # xine-lib 1-rc4a, 1-rc5(with vdr-xine 0.3.4 or 0.4.2 patch) # xine-ui 0.99.1, 0.99.2 (with vdr-xine 0.3.4 or 0.4.2 patch) # # This is my first freevo plugin and my first Python program so if you find # anything strange or bugs in the code please email me or the freevo-devel # maillist so I can correct the error and learn from my mistakes ;-). # # Extra key bindings: # # KeyEvent # -- --- # F9 RED # F10GREEN # F11YELLOW # F12BLUE # BackSpace BACK # # Todo: # Recordserver integration # Documentation # # --- # # Revision 0.3 2004-09-25 14:00:00 Thomas Weber, Ove Risberg # Added support for tvtime and svdrp # # Revision 0.2 2004-07-09 11:00:00 Ove Risberg # Fixed problem with freevo 1.5.0 rc4 # # Revision 0.1 2004-06-29 12:30:00 Ove Risberg # First release # # --- # Freevo - A Home Theater PC framework # Copyright (C) 2003 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 # # --- */ #endif #python modules import re #freevo modules import config, menu, rc, plugin, util from item import Item import childapp import pygame.locals as key from event import * #vdrpy modules from vdrpylib.svdrp import SVDRP import time class PluginInterface(plugin.DaemonPlugin): """ Sending foo events """ def __init__(self): plugin.DaemonPlugin.__init__(self) self.poll_interval = 12 self.vdrinterface=plugin.getbyname('VDRINTERFACE'); def poll(self): print "trying to close svdrp" self.vdrinterface.vdr.close() --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel