Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: epg2timer



Manfred Schmidt-Voigt wrote:
> 
> Hi list,
> 
> I have used the epg2timer script with TVTV over Xmas to get all the
> programming of my VDR box clean, especially because of the messed
> up PRO7 epg (I 've got the same stupid answere from them as published
> here already) . It works realy good but one question is left:
> 
> I had to set the timeout value in the script to an large value (>5min)
> because the programming of the timer via SVDR is very slow. Each
> line is updated on a ~30sec base and if you have 10 line to update
> it lasts a while. Is this something which can be solved by configuration
> or is there a bug in the SVDR connection? The deletion command for
> the old timer list is fast but the update of this list is very slow.
> Why?

I am using the update_timers.old script to update my timers automatically.
That script is assumed to be run by the runvdr script BETWEEN starts of
vdr. In order to restart vdr often enough, I (mis)use vdr's -s (shutdown)
option to restart vdr every two hours when it is not in use.

Of course this does not answer the original question, but it may provide
an alternative if the slow SVDRP annoys you.
Regarding the original question, you may want to ask Peter Ahlert, who
wrote the loadvdr script.


Just for reference, here is my runvdr script:

#!/bin/sh -x

DRIVERDIR=/home/cko/DVB/driver
VDRDIR=/home/cko/VDR
VDRUSER=cko
TOOLDIR=/home/cko/bin
VDRCMD="./vdr -c . -a $TOOLDIR/play_ac3 -w 15 -s $TOOLDIR/killvdr"
LOG=/var/log/update_timers_log
INTERVAL=120

/usr/local/sbin/lircd

/usr/local/bin/irexec -d /home/cko/.lircrc

while (true) do
   $TOOLDIR/killvdr
   
   cd $DRIVERDIR
   make rmmod
   make insmod
   
   chmod +r /var/log/messages
   
   /usr/sbin/ntpdate duron

   if [ "`find $LOG -mmin -$INTERVAL`" != $LOG ] ; then
      date >> $LOG
      $TOOLDIR/update_timers >> $LOG
      echo >> $LOG
   fi

   cd $VDRDIR
   su -c "$VDRCMD" $VDRUSER
done

(of course, you would have to configure a few paths, etc.
to use this on your local machine)

And here is my killvdr script:

#!/bin/sh
fuser -k -TERM /dev/ost/* > /dev/null 
sleep 3



Carsten.



Home | Main Index | Thread Index