2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

ENIGMA2: fix typo; update documentation

git-svn-id: https://svn.fhem.de/fhem/trunk@4629 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2014-01-12 13:41:22 +00:00
parent ac2bb76f8f
commit 389b718fbe

View File

@ -24,7 +24,7 @@
# along with fhem. If not, see <http://www.gnu.org/licenses/>.
#
#
# Version: 1.2.6
# Version: 1.2.7
#
# Major Version History:
# - 1.2.0 - 2013-12-21
@ -611,14 +611,19 @@ sub ENIGMA2_GetStatus($;$) {
my @servicetype =
split( /:/, $currsrvinfo->{e2service}{$e2reading} );
if ( defined( $servicetype[2] )
if (
defined( $servicetype[2] )
&& $servicetype[2] eq "2"
&& $hash->{READING}{input}{VAL} ne "radio" )
&& ( !defined( $hash->{READINGS}{input}{VAL} )
|| $hash->{READINGS}{input}{VAL} ne "radio" )
)
{
$hash->{helper}{lastInput} = "radio";
readingsBulkUpdate( $hash, "input", "radio" );
}
elsif ( $hash->{READING}{input}{VAL} ne "tv" ) {
elsif ( !defined( $hash->{READINGS}{input}{VAL} )
|| $hash->{READINGS}{input}{VAL} ne "tv" )
{
$hash->{helper}{lastInput} = "tv";
readingsBulkUpdate( $hash, "input", "tv" );
}
@ -1013,8 +1018,14 @@ sub ENIGMA2_Set($@) {
my $usage =
"Unknown argument "
. $a[1]
. ", choose one of statusRequest:noArg toggle:noArg on:noArg off:noArg reboot:noArg restartGui:noArg shutdown:noArg volume:slider,0,1,100 volumeUp:noArg volumeDown:noArg mute:on,off msg remoteControl:UP,DOWN,LEFT,RIGHT,OK,MENU,EPG,ESC,EXIT,RECORD,RED,GREEN,YELLOW,BLUE,AUDIO channelUp:noArg channelDown:noArg play:noArg pause:noArg stop:noArg showText channel:"
. ", choose one of statusRequest:noArg toggle:noArg on:noArg off:noArg reboot:noArg restartGui:noArg shutdown:noArg volume:slider,0,1,100 volumeUp:noArg volumeDown:noArg msg remoteControl channelUp:noArg channelDown:noArg play:noArg pause:noArg stop:noArg showText channel:"
. $channels;
$usage .= " mute:-,on,off"
if ( defined( $hash->{READINGS}{mute}{VAL} )
&& $hash->{READINGS}{mute}{VAL} eq "-" );
$usage .= " mute:on,off"
if ( defined( $hash->{READINGS}{mute}{VAL} )
&& $hash->{READINGS}{mute}{VAL} ne "-" );
$usage .= " input:-,tv,radio"
if ( defined( $hash->{READINGS}{input}{VAL} )
&& $hash->{READINGS}{input}{VAL} eq "-" );
@ -2507,7 +2518,7 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
<li><b>volume</b> 0...100 &nbsp;&nbsp;-&nbsp;&nbsp; set the volume level in percentage</li>
<li><b>volumeUp</b> &nbsp;&nbsp;-&nbsp;&nbsp; increases the volume level</li>
<li><b>volumeDown</b> &nbsp;&nbsp;-&nbsp;&nbsp; decreases the volume level</li>
<li><b>mute</b> on,off &nbsp;&nbsp;-&nbsp;&nbsp; controls volume mute</li>
<li><b>mute</b> on,off,toggle &nbsp;&nbsp;-&nbsp;&nbsp; controls volume mute</li>
<li><b>play</b> on,off &nbsp;&nbsp;-&nbsp;&nbsp; starts/resumes playback</li>
<li><b>pause</b> on,off &nbsp;&nbsp;-&nbsp;&nbsp; pauses current playback or enables timeshift</li>
<li><b>stop</b> on,off &nbsp;&nbsp;-&nbsp;&nbsp; stops current playback</li>
@ -2550,16 +2561,17 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
<br><br>
Currently, the following commands are defined:<br><br>
<ul><code>power<br>
input<br>
volume<br>
mute<br>
channel<br>
<ul><code>channel<br>
currentMedia<br>
currentTitle<br>
serviceprovider<br>
mute<br>
nextTitle<br>
power<br>
providername<br>
servicevideosize<br>
input<br>
streamUrl<br>
volume<br>
</code></ul>
</ul>
<br>
@ -2573,6 +2585,7 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
<li><b>disable</b> - Disable polling (true/false)</li>
<li><b>http-method</b> - HTTP access method to be used; e.g. a FritzBox might need to use POST instead of GET (GET/POST)</li>
<li><b>https</b> - Access box via secure HTTP (true/false)</li>
<li><b>model</b> - The uses device model; set automatically according to device information</li>
<li><b>timeout</b> - Set different polling timeout in seconds (default=6)</li>
</ul></ul>
<br>
@ -2585,36 +2598,49 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
<li><b>apid</b> - Shows the audio process ID for current channel</li>
<li><b>ber</b> - Shows Bit Error Rate for current channel</li>
<li><b>channel</b> - Shows the service name of current channel or media file name; part of FHEM-4-AV-Devices compatibility</li>
<li><b>currentTitle</b> - Shows the title of the running event; part of FHEM-4-AV-Devices compatibility</li>
<li><b>currentMedia</b> - The service reference ID of current channel; part of FHEM-4-AV-Devices compatibility</li>
<li><b>currentTitle</b> - Shows the title of the running event; part of FHEM-4-AV-Devices compatibility</li>
<li><b>enigmaversion</b> - Shows the installed version of ENIGMA2</li>
<li><b>eventcurrenttime</b> - Shows the current time of running event as UNIX timestamp</li>
<li><b>eventcurrenttime_hr</b> - Shows the current time of running event in human-readable format</li>
<li><b>eventcurrenttime_next</b> - Shows the current time of next event as UNIX timestamp</li>
<li><b>eventcurrenttime_next_hr</b> - Shows the current time of next event in human-readable format</li>
<li><b>eventdescription</b> - Shows the description of running event</li>
<li><b>eventdescription_next</b> - Shows the description of next event</li>
<li><b>evenduration</b> - Shows the total duration time of running event in seconds</li>
<li><b>evenduration_hr</b> - Shows the total duration time of running event in human-readable format</li>
<li><b>eventid</b> - Shows the ID of running event</li>
<li><b>evenduration_next</b> - Shows the total duration time of next event in seconds</li>
<li><b>evenduration_next_hr</b> - Shows the total duration time of next event in human-readable format</li>
<li><b>eventname</b> - Shows the name of running event</li>
<li><b>eventname_next</b> - Shows the name of next event</li>
<li><b>eventremaining</b> - Shows the remaining duration time of running event in seconds</li>
<li><b>eventremaining_hr</b> - Shows the remaining duration time of running event in human-readable format</li>
<li><b>eventremaining_next</b> - Shows the remaining duration time of next event in seconds</li>
<li><b>eventremaining_next_hr</b> - Shows the remaining duration time of next event in human-readable format</li>
<li><b>eventstart</b> - Shows the starting time of running event as UNIX timestamp</li>
<li><b>eventstart_hr</b> - Shows the starting time of running event in human readable format</li>
<li><b>eventstart_next</b> - Shows the starting time of next event as UNIX timestamp</li>
<li><b>eventstart_next_hr</b> - Shows the starting time of next event in human readable format</li>
<li><b>eventtitle</b> - Shows the title of the running event</li>
<li><b>eventtitle_next</b> - Shows the title of the next event</li>
<li><b>fpversion</b> - Shows the firmware version for the front processor</li>
<li><b>hddX_capacity</b> - Shows the total capacity of the installed hard drive in GB</li>
<li><b>hddX_free</b> - Shows the free capacity of the installed hard drive in GB</li>
<li><b>hddX_model</b> - Shows hardware details for the installed hard drive</li>
<li><b>imageversion</b> - Shows the version for the installed software image</li>
<li><b>input</b> - Shows currently used input; part of FHEM-4-AV-Devices compatibility</li>
<li><b>iswidescreen</b> - Indicates widescreen format - 0=off 1=on</li>
<li><b>lanmac</b> - Shows the device MAC address</li>
<li><b>model</b> - Shows details about the device hardware</li>
<li><b>mute</b> - Reports the mute status of the device (can be "on" or "off")</li>
<li><b>nextTitle</b> - Shows the title of the next event; part of FHEM-4-AV-Devices compatibility</li>
<li><b>onid</b> - The ON ID</li>
<li><b>pcrpid</b> - The PCR process ID</li>
<li><b>pmtpid</b> - The PMT process ID</li>
<li><b>power</b> - Reports the power status of the device (can be "on" or "off")</li>
<li><b>presence</b> - Reports the presence status of the receiver (can be "absent" or "present"). In case of an absent device, control is basically limited to turn it on again. This will only work if the device supports Wake-On-LAN packages, otherwise command "on" will have no effect.</li>
<li><b>serviceaspect</b> - Aspect ratio for current channel</li>
<li><b>providername</b> - Service provider of current channel</li>
<li><b>servicename</b> - Name for current channel</li>
<li><b>servicenamespace</b> - Namespace for current channel</li>
<li><b>serviceprovider</b> - Service provider of current channel</li>
<li><b>servicereference</b> - The service reference ID of current channel</li>
<li><b>servicevideosize</b> - Video resolution for current channel</li>
<li><b>sid</b> - The S-ID</li>