mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
70_ENIGMA2.pm: update about-Values while in standby mode; add eventdescriptionextended readings
git-svn-id: https://svn.fhem.de/fhem/trunk@11615 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d3adc52a2
commit
d3406e471a
@ -1154,9 +1154,25 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
|||||||
{
|
{
|
||||||
$state = "off";
|
$state = "off";
|
||||||
|
|
||||||
# Keep updating timer information during standby
|
# Keep updating some information during standby
|
||||||
ENIGMA2_SendCommand( $hash, "timerlist" )
|
if ( !AttrVal( $name, "lightMode", 0 ) ) {
|
||||||
if ( !AttrVal( $name, "lightMode", 0 ) );
|
|
||||||
|
ENIGMA2_SendCommand( $hash, "timerlist" );
|
||||||
|
|
||||||
|
# Read Boxinfo every 15 minutes only
|
||||||
|
if (
|
||||||
|
!defined( $hash->{helper}{lastFullUpdate} )
|
||||||
|
|| ( defined( $hash->{helper}{lastFullUpdate} )
|
||||||
|
&& $hash->{helper}{lastFullUpdate} +
|
||||||
|
900 le time() )
|
||||||
|
)
|
||||||
|
{
|
||||||
|
ENIGMA2_SendCommand( $hash, "about" );
|
||||||
|
|
||||||
|
# Update state
|
||||||
|
$hash->{helper}{lastFullUpdate} = time();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$state = "on";
|
$state = "on";
|
||||||
@ -1665,8 +1681,8 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
|||||||
foreach (
|
foreach (
|
||||||
"eventstart", "eventduration",
|
"eventstart", "eventduration",
|
||||||
"eventremaining", "eventcurrenttime",
|
"eventremaining", "eventcurrenttime",
|
||||||
"eventdescription", "eventtitle",
|
"eventdescription", "eventdescriptionextended",
|
||||||
"eventname",
|
"eventtitle", "eventname",
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$reading = $_;
|
$reading = $_;
|
||||||
@ -2154,27 +2170,28 @@ sub ENIGMA2_ReceiveCommand($$$) {
|
|||||||
|| $state eq "undefined" )
|
|| $state eq "undefined" )
|
||||||
{
|
{
|
||||||
foreach (
|
foreach (
|
||||||
'servicename', 'providername',
|
'servicename', 'providername',
|
||||||
'servicereference', 'videowidth',
|
'servicereference', 'videowidth',
|
||||||
'videoheight', 'servicevideosize',
|
'videoheight', 'servicevideosize',
|
||||||
'apid', 'vpid',
|
'apid', 'vpid',
|
||||||
'pcrpid', 'pmtpid',
|
'pcrpid', 'pmtpid',
|
||||||
'txtpid', 'tsid',
|
'txtpid', 'tsid',
|
||||||
'onid', 'sid',
|
'onid', 'sid',
|
||||||
'iswidescreen', 'mute',
|
'iswidescreen', 'mute',
|
||||||
'volume', 'channel',
|
'volume', 'channel',
|
||||||
'currentTitle', 'nextTitle',
|
'currentTitle', 'nextTitle',
|
||||||
'currentMedia', 'eventcurrenttime',
|
'currentMedia', 'eventcurrenttime',
|
||||||
'eventcurrenttime_hr', 'eventdescription',
|
'eventcurrenttime_hr', 'eventdescription',
|
||||||
'eventduration', 'eventduration_hr',
|
'eventdescriptionextended', 'eventduration',
|
||||||
'eventremaining', 'eventremaining_hr',
|
'eventduration_hr', 'eventremaining',
|
||||||
'eventstart', 'eventstart_hr',
|
'eventremaining_hr', 'eventstart',
|
||||||
'eventtitle', 'eventname',
|
'eventstart_hr', 'eventtitle',
|
||||||
'eventcurrenttime_next', 'eventcurrenttime_next_hr',
|
'eventname', 'eventcurrenttime_next',
|
||||||
'eventdescription_next', 'eventduration_next',
|
'eventcurrenttime_next_hr', 'eventdescription_next',
|
||||||
'eventduration_next_hr', 'eventremaining_next',
|
'eventdescriptionextended_next', 'eventduration_next',
|
||||||
'eventremaining_next_hr', 'eventstart_next',
|
'eventduration_next_hr', 'eventremaining_next',
|
||||||
'eventstart_next_hr', 'eventtitle_next',
|
'eventremaining_next_hr', 'eventstart_next',
|
||||||
|
'eventstart_next_hr', 'eventtitle_next',
|
||||||
'eventname_next',
|
'eventname_next',
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -3079,6 +3096,12 @@ sub ENIGMA2_GetRemotecontrolCommand($) {
|
|||||||
<li>
|
<li>
|
||||||
<b>eventdescription</b> - Shows the description of running event
|
<b>eventdescription</b> - Shows the description of running event
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>eventdescriptionextended</b> - Shows the extended description of running event
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>eventdescriptionextended_next</b> - Shows the extended description of next event
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>eventdescription_next</b> - Shows the description of next event
|
<b>eventdescription_next</b> - Shows the description of next event
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user