mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
ENIGMA2: add attribute remotecontrol=[standard,advanced,keyboard]
git-svn-id: https://svn.fhem.de/fhem/trunk@6158 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c2a6d11f08
commit
324da7c7b1
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 70_ENIGMA2: add attribute remotecontrol=[standard,advanced,keyboard]
|
||||||
- bugfix: 70_PIONEERAVR.pm and PIONEERAVRZONE.pm: added "use SetExtensions", commandref updates
|
- bugfix: 70_PIONEERAVR.pm and PIONEERAVRZONE.pm: added "use SetExtensions", commandref updates
|
||||||
fixed RC_layout
|
fixed RC_layout
|
||||||
- feature: new modules 70_PIONEERAVR.pm and PIONEERAVRZONE.pm
|
- feature: new modules 70_PIONEERAVR.pm and PIONEERAVRZONE.pm
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
# along with fhem. If not, see <http://www.gnu.org/licenses/>.
|
# along with fhem. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Version: 1.3.2
|
# Version: 1.3.4
|
||||||
#
|
#
|
||||||
# Major Version History:
|
# Major Version History:
|
||||||
# - 1.3.0 - 2013-12-21
|
# - 1.3.0 - 2013-12-21
|
||||||
@ -78,7 +78,7 @@ sub ENIGMA2_Initialize($) {
|
|||||||
$hash->{UndefFn} = "ENIGMA2_Undefine";
|
$hash->{UndefFn} = "ENIGMA2_Undefine";
|
||||||
|
|
||||||
$hash->{AttrList} =
|
$hash->{AttrList} =
|
||||||
"https:0,1 http-method:GET,POST disable:0,1 bouquet-tv bouquet-radio timeout "
|
"https:0,1 http-method:GET,POST disable:0,1 bouquet-tv bouquet-radio timeout remotecontrol:standard,advanced,keyboard "
|
||||||
. $readingFnAttributes;
|
. $readingFnAttributes;
|
||||||
|
|
||||||
$data{RC_layout}{ENIGMA2_DreamMultimedia_DM500_DM800_SVG} =
|
$data{RC_layout}{ENIGMA2_DreamMultimedia_DM500_DM800_SVG} =
|
||||||
@ -522,6 +522,8 @@ sub ENIGMA2_Set($@) {
|
|||||||
}
|
}
|
||||||
elsif ( $request ne "" ) {
|
elsif ( $request ne "" ) {
|
||||||
$cmd = "command=" . ENIGMA2_GetRemotecontrolCommand( $a[2] );
|
$cmd = "command=" . ENIGMA2_GetRemotecontrolCommand( $a[2] );
|
||||||
|
$cmd .= "&rcu=" . $attr{$name}{remotecontrol}
|
||||||
|
if defined( $attr{$name}{remotecontrol} );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my $commandKeys = "";
|
my $commandKeys = "";
|
||||||
@ -871,15 +873,13 @@ sub ENIGMA2_SendCommand($$;$$) {
|
|||||||
$timeout = $attr{$name}{timeout};
|
$timeout = $attr{$name}{timeout};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$timeout = 6;
|
$timeout = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
# send request via HTTP-GET method
|
# send request via HTTP-GET method
|
||||||
if ( $http_method eq "GET" || $http_method eq "" || $cmd eq "" ) {
|
if ( $http_method eq "GET" || $http_method eq "" || $cmd eq "" ) {
|
||||||
Log3 $name, 5, "ENIGMA2 $name: GET " . urlDecode($URL);
|
Log3 $name, 5, "ENIGMA2 $name: GET " . urlDecode($URL);
|
||||||
|
|
||||||
# $response = GetFileFromURL( $URL, $timeout, undef, 0, 5 );
|
|
||||||
|
|
||||||
HttpUtils_NonblockingGet(
|
HttpUtils_NonblockingGet(
|
||||||
{
|
{
|
||||||
url => $URL,
|
url => $URL,
|
||||||
@ -904,8 +904,6 @@ sub ENIGMA2_SendCommand($$;$$) {
|
|||||||
. " (POST DATA: "
|
. " (POST DATA: "
|
||||||
. urlDecode($cmd) . ")";
|
. urlDecode($cmd) . ")";
|
||||||
|
|
||||||
# $response = GetFileFromURL( $URL, $timeout, $cmd, 0, 5 );
|
|
||||||
|
|
||||||
HttpUtils_NonblockingGet(
|
HttpUtils_NonblockingGet(
|
||||||
{
|
{
|
||||||
url => $URL,
|
url => $URL,
|
||||||
@ -940,7 +938,9 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
|||||||
my $service = $param->{service};
|
my $service = $param->{service};
|
||||||
my $cmd = $param->{cmd};
|
my $cmd = $param->{cmd};
|
||||||
my $state =
|
my $state =
|
||||||
( $hash->{READINGS}{state}{VAL} ) ? $hash->{READINGS}{state}{VAL} : "";
|
( $hash->{READINGS}{state}{VAL} )
|
||||||
|
? $hash->{READINGS}{state}{VAL}
|
||||||
|
: "";
|
||||||
my $type = ( $param->{type} ) ? $param->{type} : "";
|
my $type = ( $param->{type} ) ? $param->{type} : "";
|
||||||
my $return;
|
my $return;
|
||||||
|
|
||||||
@ -1710,8 +1710,7 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
|||||||
$t[1], $t[0] );
|
$t[1], $t[0] );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$timestring =
|
$timestring = substr(
|
||||||
substr(
|
|
||||||
FmtDateTime( $eventNow->{$e2reading} ),
|
FmtDateTime( $eventNow->{$e2reading} ),
|
||||||
11 );
|
11 );
|
||||||
}
|
}
|
||||||
@ -1747,8 +1746,7 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
|||||||
$t[1], $t[0] );
|
$t[1], $t[0] );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$timestring =
|
$timestring = substr(
|
||||||
substr(
|
|
||||||
FmtDateTime( $eventNext->{$e2reading} ),
|
FmtDateTime( $eventNext->{$e2reading} ),
|
||||||
11 );
|
11 );
|
||||||
}
|
}
|
||||||
@ -2392,7 +2390,9 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
|
|||||||
'MACRO' => 112,
|
'MACRO' => 112,
|
||||||
'MUTE' => 113,
|
'MUTE' => 113,
|
||||||
'VOLUMEDOWN' => 114,
|
'VOLUMEDOWN' => 114,
|
||||||
|
'VOLDOWN' => 114,
|
||||||
'VOLUMEUP' => 115,
|
'VOLUMEUP' => 115,
|
||||||
|
'VOLUP' => 115,
|
||||||
'POWER' => 116,
|
'POWER' => 116,
|
||||||
'KPEQUAL' => 117,
|
'KPEQUAL' => 117,
|
||||||
'KPPLUSMINUS' => 118,
|
'KPPLUSMINUS' => 118,
|
||||||
@ -2556,7 +2556,9 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
|
|||||||
'YELLOW' => 400,
|
'YELLOW' => 400,
|
||||||
'BLUE' => 401,
|
'BLUE' => 401,
|
||||||
'CHANNELUP' => 402,
|
'CHANNELUP' => 402,
|
||||||
|
'CHANUP' => 402,
|
||||||
'CHANNELDOWN' => 403,
|
'CHANNELDOWN' => 403,
|
||||||
|
'CHANDOWN' => 403,
|
||||||
'FIRST' => 404,
|
'FIRST' => 404,
|
||||||
'LAST' => 405,
|
'LAST' => 405,
|
||||||
'AB' => 406,
|
'AB' => 406,
|
||||||
@ -2670,13 +2672,16 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
|
|||||||
<b>mute</b> on,off,toggle - controls volume mute
|
<b>mute</b> on,off,toggle - controls volume mute
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>play</b> on,off - starts/resumes playback
|
<b>play</b> - starts/resumes playback
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>pause</b> on,off - pauses current playback or enables timeshift
|
<b>pause</b> - pauses current playback or enables timeshift
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>stop</b> on,off - stops current playback
|
<b>stop</b> - stops current playback
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>record</b> - starts recording of current channel
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>input</b> tv,radio - switches between tv and radio mode
|
<b>input</b> tv,radio - switches between tv and radio mode
|
||||||
@ -2756,6 +2761,9 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
|
|||||||
<li>
|
<li>
|
||||||
<b>https</b> - Access box via secure HTTP (true/false)
|
<b>https</b> - Access box via secure HTTP (true/false)
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>remotecontrol</b> - Explicitly set specific remote control unit format. This will only be considered for set-command <strong>remoteControl</strong> as of now.
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>timeout</b> - Set different polling timeout in seconds (default=6)
|
<b>timeout</b> - Set different polling timeout in seconds (default=6)
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user