mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
55_InfoPanel.pm: updated
added perl special for bgcolor and bgdir commandref updated git-svn-id: https://svn.fhem.de/fhem/trunk@7901 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
537b4276c7
commit
23a9dbf18c
@ -609,7 +609,7 @@ sub btIP_returnSVG($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my ($width,$height)= split(/x/, AttrVal($name,"size","800x600"));
|
my ($width,$height)= split(/x/, AttrVal($name,"size","800x600"));
|
||||||
my $bgcolor = AttrVal($name,'bgcolor','000000');
|
my $bgcolor = AnalyzePerlCommand(undef,AttrVal($name,'bgcolor','000000'));
|
||||||
my $output = "";
|
my $output = "";
|
||||||
our $svg = "";
|
our $svg = "";
|
||||||
|
|
||||||
@ -625,7 +625,7 @@ sub btIP_returnSVG($) {
|
|||||||
# set the background
|
# set the background
|
||||||
# check if background directory is set
|
# check if background directory is set
|
||||||
my $reason= "?"; # remember reason for undefined image
|
my $reason= "?"; # remember reason for undefined image
|
||||||
my $bgdir= AttrVal($name,"bgdir",undef);
|
my $bgdir= AnalyzePerlCommand(undef,AttrVal($name,"bgdir",undef));
|
||||||
if(defined($bgdir)){
|
if(defined($bgdir)){
|
||||||
my $bgnr; # item number
|
my $bgnr; # item number
|
||||||
if(defined($defs{$name}{fhem}) && defined($defs{$name}{fhem}{bgnr})) {
|
if(defined($defs{$name}{fhem}) && defined($defs{$name}{fhem}{bgnr})) {
|
||||||
@ -1209,6 +1209,8 @@ Please read <a href="http://forum.fhem.de/index.php/topic,32828.0.html" target="
|
|||||||
<li><b>bgopacity</b> - set opacity for background image, values 0...1.0</li>
|
<li><b>bgopacity</b> - set opacity for background image, values 0...1.0</li>
|
||||||
<li><b>tmin</b> - background picture will be shown at least <code>tmin</code> seconds,
|
<li><b>tmin</b> - background picture will be shown at least <code>tmin</code> seconds,
|
||||||
no matter how frequently the RSS feed consumer accesses the page.</li>
|
no matter how frequently the RSS feed consumer accesses the page.</li>
|
||||||
|
<br/>
|
||||||
|
<b>Important:</b> bgcolor and bgdir will be evaluated by <code>{ <a href="#perl"><perl special></a> }</code> use quotes for absolute values!<br/>
|
||||||
</ul>
|
</ul>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
@ -1220,8 +1222,11 @@ Please read <a href="http://forum.fhem.de/index.php/topic,32828.0.html" target="
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<a name="InfoPanellayout"></a>
|
<a name="InfoPanellayout"></a>
|
||||||
<b>Layout definition</b><br/><br/>
|
<b>Layout definition</b><br/>
|
||||||
|
<br/>
|
||||||
<ul>
|
<ul>
|
||||||
|
All parameters in curly brackets can be evaluated by <code>{ <a href="#perl"><perl special></a> }</code></br>
|
||||||
|
<br/>
|
||||||
<li><code>area <id> <x1> <y1> <x2> <y2> <{link}></code><br/>
|
<li><code>area <id> <x1> <y1> <x2> <y2> <{link}></code><br/>
|
||||||
<br/>
|
<br/>
|
||||||
<ul>create a responsive area which will call a link when clicked.<br/>
|
<ul>create a responsive area which will call a link when clicked.<br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user