mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-08 05:15:10 +00:00
55_InfoPanel.pm: attribute showTime added
git-svn-id: https://svn.fhem.de/fhem/trunk@8268 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d0ee29c0a9
commit
2aface849d
@ -46,7 +46,8 @@
|
||||
# - added: break condition for includes
|
||||
# 2015-02-24 - 8092 - added: longpoll support (experimental)
|
||||
# 2015-02-25 - 8095 - changed: iframe handling for secret div
|
||||
# 2015-03-07 - - fixed: handling for bg img (Bugzilla #8)
|
||||
# 2015-03-07 - 8168 - fixed: handling for bg img (Bugzilla #8)
|
||||
# 2015-03-22 - - added: attribute showTime
|
||||
#
|
||||
##############################################
|
||||
# $Id: 55_InfoPanel.pm 8095 2015-02-25 10:33:21Z betateilchen $
|
||||
@ -133,7 +134,7 @@ sub InfoPanel_Initialize($) {
|
||||
$hash->{SetFn} = "btIP_Set";
|
||||
$hash->{GetFn} = "btIP_Get";
|
||||
$hash->{NotifyFn} = "btIP_Notify";
|
||||
$hash->{AttrList} = "autoreread:1,0 bgcolor refresh size title noscript ";
|
||||
$hash->{AttrList} = "autoreread:1,0 bgcolor refresh size title noscript showTime:1,0 ";
|
||||
$hash->{AttrList} .= " bgcenter:1,0 bgdir bgopacity tmin" if $useImgTools;
|
||||
|
||||
return undef;
|
||||
@ -873,7 +874,7 @@ sub btIP_returnSVG {
|
||||
$svg .= "$output\n";
|
||||
$svg = btIP_evalLayout($svg, $name, $defs{$name}{fhem}{layout});
|
||||
|
||||
readingsSingleUpdate($defs{$name},'state',localtime(),1);
|
||||
readingsSingleUpdate($defs{$name},'state',localtime(),1) if(AttrVal($name,'showTime',1));
|
||||
|
||||
}; #warn $@ if $@;
|
||||
if($@) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user