This is a Least Cost Routing plugin for the Video Disk Recorder (VDR).

Written by:                  theonlychriss

Project's homepage:          http://lcr.vdr-developer.org

Latest version available at: http://lcr.vdr-developer.org/downloads/

See the file COPYING for license information.

Requirements:

VDR & internet & perl (LWP::Simple, HTML::Parser)
- IMPORTANT: The retrieved tariff data may only be used by this plugin
  showing the logo and the URL www.teltarif.de as their source.

Description:

Least Cost Routing is a plugin that displays information about the lowest
rates for telephoning AT THE MOMENT on the osd. It retrieves its data from
"www.teltarif.de" and displays them in a table on the osd.
For the retrieval an additional (perl) script is needed (retrieve-data.pl).

The plugin is based on the well known femon-plugin by Rolf Ahrenberg.
I used it as a template and added/removed functionality to my needs.
So, there's VERY special thanks to Rolf Ahrenberg!


Controls:

ChanUp/ChanDn - Switch channel up/down
Up/Down       - Switch channel up/down
0-9           - Select channel
Back          - Exit plugin
Ok            - Exit plugin


Installation:

cd /put/your/path/here/VDR/PLUGINS/src
tar -xzf /put/your/path/here/vdr-lcr-X.Y.Z.tgz
ln -s lcr-X.Y.Z lcr
cd /put/your/path/here/VDR
make
make plugins
./vdr -P lcr

For the additional perl script you may have to install (if not yet done)
HTML::Parser and
LWP::Simple (included in libwww-perl)
to make it work.
Open cpan-shell:
cpan
and then install them by:
cpan> install LWP::Simple
cpan> install HTML::Parser

"retrieve-data.pl" has to be placed in your path (e.g. /usr/bin/).

Notes:
- The zoom-in effect bridges the time gap until the data has been
  completely retrieved. With my CPU (PIII 1,2GHz) the effect looks nice,
  but I do not know how it looks like on slower CPUs.
- There's a shrinked default OSD height for NTSC users: make LCR_NTSC=1
  (This I simply adopted from femon - as I do not have a NTSC-TV I cannot
  tell if it is working correctly.)
- As I mainly code in java, forgive me for the rudimental perl script.
  However, it works and that is most important.


TODO:
- Have a look at osdItems to be able to display the information on a
  (graph)lcd.
- Have a look at my client (vdr 1.3.11) and try to make the plugin
  compile and run ;-) on it.
