Control-plugin: Difference between revisions

From VDR Wiki
Jump to navigation Jump to search
(→‎Links: merge -> internationalization)
No edit summary
Line 1: Line 1:
==Description==
==Description==
'''Author:''' Jan Rieger
[[Image:Control-plugin.jpg|thumb|Screenshot]]
Displays the OSD on the console.


Displays VDRs OSD on {{wikipedia|Telnet}} console.
==Hardware requirements==
Control VDR from any remote computer capable of telnet.


===Status===
==Software requirements==
* Last Update 09/2008
* Telnet
* Last Patch 05/2012


==Installation==
==Images==
<gallery>
See [[plugin installation]]
Image:control-plugin-00.jpg|''Telnet - Channels''
Image:control-plugin-01.jpg''Telnet - EPG''
</gallery>


==Configuration==
==Configuration==
===svdrphosts.conf===
In file '''[[Structure|$VDRCONFIG]]/[[svdrphosts.conf]]''' the IP or subnet masks of the computer needs to be allowed opening a Telnet session, eg. 192.168.0.76 if opening telnet with this IP.
Otherwise, only message "access denied" in Telnet Client appears.

===Parameter===
===Parameter===
{| class="wikitable"
{| border=1 cellpadding=2 cellspacing=0
|-
|- bgcolor=#efdead
!Parameter (short)
!Parameter (short)
!Parameter (long)
!Parameter (long)
!Description
!Description
|-
|-
| -t TTY || --terminal=TTY || tty to control vdr per virtual terminal (default: none)
| -t ''<TTY>'' || --terminal=''<TTY>'' || tty to control vdr per virtual terminal (default: none)
|-
|-
| -p PORT || --port=PORT || port to receive remote connections (default: 2002)
| -p ''<PORT>'' || --port=''<PORT>'' || port to receive remote connections (default: 2002)
|}
|}
==Patches==
[[http://www.vdr-portal.de/board1-news/board101-news-archiv/114203-vdr-control-ohne-absturz-beenden Link]]


<pre>diff -Nru control-0.0.2a-kw3/control.c control-0.0.2a-kw3_0/control.c
==Problems==
--- control-0.0.2a-kw3/control.c 2008-09-26 16:19:29.000000000 +0200
+++ control-0.0.2a-kw3_0/control.c 2012-08-04 12:17:08.000000000 +0200
@@ -32,6 +32,7 @@
class cPluginControl : public cPlugin {
private:
// Add any member variables or functions you may need here.
+ cCtrlState* _pState;
cCtrlGateways* _pReceivers;
cCtrlGateway* _pTerminal;
@@ -67,6 +68,7 @@
cPluginControl::~cPluginControl()
{
// Clean up after yourself!
+ delete(_pState);
delete(_pReceivers);
delete(_pTerminal);
}
@@ -120,7 +122,7 @@
// Start any background activities the plugin shall perform.
if (glParPort || glParTerminal && *glParTerminal)
- new cCtrlState();
+ _pState = new cCtrlState();
if (glParPort) {
_pReceivers = new cCtrlGateways();
</pre>


===Tipps===
* Access with PuTTY
:for PuTTY the Function keys (F1..Fn) have to be send in Linux format. You can modify these settings in connection configuration dialog: ''Terminal -> Keyboard'' -> "The Function keys and keypad" = "Linux".

==Versions==
* [http://ricomp.de/vdr/vdr-control-0.0.2.tgz 0.0.2]
* [http://ricomp.de/vdr/vdr-control-0.0.2a.tgz 0.0.2a]

==Current Version==
* [http://www.u32.de/download/vdr-control-0.0.2a-kw3.tar.gz 0.0.2a_kw3]
* [http://www.vdr-portal.de/board1-news/board101-news-archiv/114203-vdr-control-ohne-absturz-beenden empfohlener Patch]


==Links==
==Links==
# [http://ricomp.de/vdr Plugins Homepage]
{|
# [http://www.u32.de/vdr.html#improved Version]
| [1]
| http://ricomp.de/vdr
| Plugin homepage
|}


[[Category:Plugins]]
[[Category:Plugins]]
[[Category:RemoteControl]]

[[Category:Admin-Plugins]]
{{i18n|control-plugin}}
{{i18n|control-plugin}}

Revision as of 10:59, 30 November 2013

Description

Author: Jan Rieger

Displays VDRs OSD on Telnet console. Control VDR from any remote computer capable of telnet.

Status

  • Last Update 09/2008
  • Last Patch 05/2012

Images

Configuration

svdrphosts.conf

In file $VDRCONFIG/svdrphosts.conf the IP or subnet masks of the computer needs to be allowed opening a Telnet session, eg. 192.168.0.76 if opening telnet with this IP. Otherwise, only message "access denied" in Telnet Client appears.

Parameter

Parameter (short) Parameter (long) Description
-t <TTY> --terminal=<TTY> tty to control vdr per virtual terminal (default: none)
-p <PORT> --port=<PORT> port to receive remote connections (default: 2002)

Patches

[Link]

diff -Nru control-0.0.2a-kw3/control.c control-0.0.2a-kw3_0/control.c
--- control-0.0.2a-kw3/control.c	2008-09-26 16:19:29.000000000 +0200
+++ control-0.0.2a-kw3_0/control.c	2012-08-04 12:17:08.000000000 +0200
@@ -32,6 +32,7 @@
 class cPluginControl : public cPlugin {
 private:
   // Add any member variables or functions you may need here.
+  cCtrlState* _pState;
   cCtrlGateways* _pReceivers;
   cCtrlGateway*  _pTerminal;
 
@@ -67,6 +68,7 @@
 cPluginControl::~cPluginControl()
 {
   // Clean up after yourself!
+  delete(_pState);
   delete(_pReceivers);
   delete(_pTerminal);
 }
@@ -120,7 +122,7 @@
   // Start any background activities the plugin shall perform.
 
   if (glParPort || glParTerminal && *glParTerminal)
-    new cCtrlState();
+    _pState = new cCtrlState();
 
   if (glParPort) {
     _pReceivers = new cCtrlGateways();


Tipps

  • Access with PuTTY
for PuTTY the Function keys (F1..Fn) have to be send in Linux format. You can modify these settings in connection configuration dialog: Terminal -> Keyboard -> "The Function keys and keypad" = "Linux".

Versions

Current Version

Links

  1. Plugins Homepage
  2. Version