Vdradmin

From VDR Wiki

Jump to: navigation, search

Contents

[edit] Description

VDR-Admin is a daemon that communicates with VDR and shows informations in a Internet browser which opens the adress of the VDR computer with port 8001. In a Config file is set, which computers are allowed to access vdr-admin. Authentification is nessessary, but can be disabled with a patch.

A (non-offical) improved version is Vdradmin AM.

[edit] Images

thumb|none|What's on? thumb|none|Channels thumb|none|Timers
thumb|none|Recordings thumb|none|Configuration thumb|none|Remote Control


[edit] Software requirements

  • Browser at client site.
  • Perl with modul perl-Compress-Zlib.

[edit] Installation

perl-Compress-Zlib (should be included in most distris):

perl -MCPAN -e 'install Compress::Zlib'

Oder per Source:

cd $SOURCEDIR
tar zxvf Compress-Zlib-<VERSION>.tar.gz
cd  Compress-Zlib-<VERSION>
perl Makefile.PL
make
make test
make install

for vdr-admin-am [1] only additionally Template:

perl -MCPAN -e 'install Template'

Source:

cd $SOURCEDIR
tar zxvf Template-Toolkit-<VERSION>.tar.gz
cd  Template-Toolkit-<VERSION>
perl Makefile.PL
make
make test
make install

VDR-Admin:

cd $SOURCEDIR
tar xvz vdradmin-<VERSION>.tar.gz
mv vdradmin-<VERSION> vdradmin
cd vdradmin
touch vdradmind.conf
./vdradmind.pl -c
# What's your VDR hostname (e.g video.intra.net)? [localhost]:
# What's the port VDR listen to SVDRP query's? [2001]:
# On which address should vdradmin listen (0.0.0.0 for any)? [0.0.0.0]:
# On which port should vdradmin answer? [8001]:
# Username? [linvdr]: ente
# Password? [linvdr]: ************
# Config file sucessfull written.

[edit] Problems

[edit] CPU Load

While VDR-Admin loads Data via SVDRP, CPU Load rises up to 99%, VDR is not usable this time.

[edit] No EPG-Data

VDR-Admin should be started after VDR, otherwise it takes some minutes to display that data. With calling inside runvdr the problem can be solved.

For example inside the "while (true) do" - Loop this line /usr/local/bin/runvdr which starts vdr-admin two minutes delayed:

echo "su vdr -c /usr/local/bin/vdradmind.pl" | at now + 2 minutes

[edit] Missing recording directories

One known reason is that in VDR Options the format can be choosen that way that recording time or length are missing. This case vdradmin will stop gathering information from that recording.

[edit] Errors while starting vdradmin

vdrserver vdradmin # ./vdradmind.pl
Compress::Zlib object version 1.22 does not match bootstrap parameter 1.33 at ⌐
/usr/lib/perl5/5.8.4/i686-linux/DynaLoader.pm line 253.
Compilation failed in require at ./vdradmind.pl line 139.
BEGIN failed--compilation aborted at ./vdradmind.pl line 139.

This case you should update zlib:

vdrserver vdradmin # cpan update Compress::Zlib

[edit] Wrong time in VDR

see [2]

Suchen in vdradmin.pl nach der Zeile die dies beinhaltet:

"  if(/^E (.*) (.*) (.*) (.*)/ || /^E (.*) (.*) (.*)/) {  "

(im letzten VDRadmin 0.96 ist es die zeile 552, und VDRadminNG 0.97 die 739)
diese muss durch das hier ersetzt werden:

"  if(/^E (.*) (.*) (.*) (.*) (.*)/ || /^E (.*) (.*) (.*) (.*)/ || /^E (.*) (.*) (.*)/) {  "

und dann tuts.

[edit] Hints

[edit] Vdr-Admin Start on Client

A link should look like this:

http://linvdr:linvdr@192.168.0.2:8001

[edit] Access from Internet

Change the standard password of vdr-admin! The proxy module must be started:

Change

# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so

in

LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so


Inside Apache's httpd.conf append:

ProxyPass        /vdr/vdradmin/ http://VDRip:8001/
ProxyPassReverse /vdr/vdradmin/ http://VDRip:8001/

[edit] Distribution specific

[edit] Mandriva

Template:Box Datei

Template:Box Datei

[edit] Links

  1. Perl::Template
  2. Perl::Compress::Zlib
  3. Homepage VDR-Admin
  4. iTAN Extension for Vdradmin
  5. xpix Extension for Vdradmin
  6. Vdrepg -> Vdradmin alternative (needs JDK 1.4)
Personal tools
Participate