Difference between revisions of "Control-plugin"

From VDR Wiki
Jump to: navigation, search
(Preparation)
 
(Links)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
[[Image:(missing)-plugin.jpg|thumb|Screenshot]]
+
'''Author:''' Jan Rieger
  
==Hardware requirements==
+
Displays VDRs OSD on {{wikipedia|Telnet}} console.
 +
Control VDR from any remote computer capable of telnet.
  
==Software requirements==
+
===Status===
 +
* Last Update 09/2008
 +
* Last Patch 05/2012
  
==Installation==
+
==Images==
See [[plugin installation]]
+
<gallery>
 +
Image:control-plugin-00.jpg|''Telnet - Channels''
 +
Image:control-plugin-01.jpg|''Telnet - EPG''
 +
</gallery>
  
==Problems==
+
==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.
  
==Links==
+
===Parameter===
{|
+
{| class="wikitable"
| [1]
+
|-
| http://
+
!Parameter (short)
| Plugin homepage
+
!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==
 +
[[http://www.vdr-portal.de/board1-news/board101-news-archiv/114203-vdr-control-ohne-absturz-beenden fix vdr-control segfault on stopping plugin]]
  
[[Category:Plugins]]
+
<pre>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();
 +
</pre>
  
<!-- Link to german wiki page -->
+
 
[[de:Hello-plugin]]
+
===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 suggested Patch]
 +
 
 +
==Links==
 +
# [http://ricomp.de/vdr Plugins Homepage]
 +
# [http://www.u32.de/vdr.html# improved Version]
 +
 
 +
[[Category:Plugins]]
 +
[[Category:RemoteControl]]
 +
[[Category:Admin-Plugins]]
 +
{{i18n|control-plugin}}

Latest revision as of 12:01, 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

[fix vdr-control segfault on stopping plugin]

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. improved Version