diff --git a/fhem/FHEM/70_SVDRP.pm b/fhem/FHEM/70_SVDRP.pm index e7fe36238..bca623783 100755 --- a/fhem/FHEM/70_SVDRP.pm +++ b/fhem/FHEM/70_SVDRP.pm @@ -10,12 +10,13 @@ # 1.01.01 first released version # 1.01.02 bugfix for single-digit NextTimer # 1.01.03 corrections for german Umlaute -# 1.01.04 fix statusCheckIntervall +# 1.01.04 fix statusCheckInterval # 1.01.05 added capability to control plugins (PLUG) # added name to next timer # expicit set for SatIP plugin # handle HELP responses # 1.01.06 strip info from timername, fix stateFormat overwrite +# 1.01.07 optimize help text # ######################################################################################## # @@ -47,7 +48,7 @@ use Blocking; use Time::HiRes qw(gettimeofday); use POSIX; -my $version = "1.01.06"; +my $version = "1.01.07"; my %SVDRP_gets = ( # @@ -1227,79 +1228,95 @@ sub SVDRP_restoreJson {
For the predefined "raw" commands, "nice" names will be shown for the readings, e.g. DiskStatus instead of STAT disk.
Default set commands are

+
  • Channel
    set value can be "+" or "-" or any channel number you want to switch to.
    set <name> Channel will get you the channel VDR is currently tuned to.

  • +
  • DeleteTimer
    set <name> DeleteTimer <number> will delete ... hm, guess?
    (you can get the timer numbers via ListTimers)

  • +
  • DiskStatus
    no value or get will display the current disk usage in DiskStatus
    Additionally, the reading DiskUsed will be set to the disk fill level.

  • +
  • GetAll
    no value or get will query several SVDRP settings:
    "LSTT", "NEXT", "CHAN", "VOLU", "STAT"
    (i.e. ListTimers, NextTimer, Channel, Volume, DiskStatus)

  • +
  • Help
    gets the avaialble SVDRP commands from VDR and stores them in reading "HelpInfo"
  • +
  • HitKey
    Enables you to send any Key defined by http://www.vdr-wiki.de/wiki/index.php/SVDRP
    E.g.set <name> HitKey Power will cleanly power off VDR.

  • +
  • ListRecording
    set value should be an existing recording ID. Depending on the attribute RecordingInfo either all available info will be shown, or a reasonable subset.
    If no value is given, all available recordings will be read and shown.
    Attention: Depending on the number of number of recordings, this might take a while! fhem might show "timeout", and a screen refresh might be necessary. Use with care...

  • +
  • ListTimers
    no value or get will query all timers from VDR.
    raw answer from VDR will be parsed into a little bit nicer format.

  • +
  • NextTimer
    no value or get will exactly get what it says.
    (to get the timer name, ListTimers will be called before)

  • +
  • Plugin
    calls SVDRP with PLUG - you can enter any Plugin's SVDRP commands here to control the plugin
    calling without parameter gets the list of avaialble plugins and stroes them in reading "HelpInfo"
    I cannot test this with any plugin, but the Plugin's answer should go to the reading "PluginInfo" or "InfoError" (if Plugin gives an error message)

  • +
  • PowerOff
    A shortcut to cleanly power off VDR, same as set <name> HitKey Power

  • +
  • SatIP
    send control commands to your SatIP plugin

  • +
  • StreamdevServer
    sends the corresponding SVDRP command to the streamdev-Plugin (LSTC,DISC)

  • +
  • UpdateRecordings
    no value or get will trigger VDR to re-read the recordings.
    (No output to fhem - no sense to show all recordings here)

  • +
  • Volume
    set value can be "+" or "-" or mute or any Volume (0-255) you want to set.
    set <name> Volume will get you VDR's current Volume setting.

  • +
  • connect
    just connects to VDR, no further action.
    Reading "info" will be updated. @@ -1307,11 +1324,13 @@ sub SVDRP_restoreJson {
    You might want to use "cleanup" to be able to reconnect other clients.

  • -
  • cleanup + +
  • cleanUp
    closes connection to VDR, no further action.
    Reading "info" will be updated.

  • +
  • closeDev
    subset of cleanup. Just closes DevIo connection.
    If you don't know what that means, you don't need it ;-) @@ -1323,6 +1342,7 @@ sub SVDRP_restoreJson { Attributes