mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
98_DOIF.pm: fixed: $FW_room
git-svn-id: https://svn.fhem.de/fhem/trunk@21813 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6fdb771cd3
commit
fd1f4b76a8
@ -23,7 +23,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use Blocking;
|
use Blocking;
|
||||||
use Color;
|
use Color;
|
||||||
use vars qw($FW_CSRF);
|
use vars qw($FW_CSRF $FW_room);
|
||||||
|
|
||||||
my $hs;
|
my $hs;
|
||||||
|
|
||||||
@ -4374,7 +4374,7 @@ sub y_h
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $prop=$value/($max-$min);
|
my $prop=$value/($max-$min);
|
||||||
my $h=abs($prop*($height))+4.3;
|
my $h=abs($prop*($height))+4;
|
||||||
my $y;
|
my $y;
|
||||||
my $null;
|
my $null;
|
||||||
|
|
||||||
@ -4382,7 +4382,7 @@ sub y_h
|
|||||||
if ($value <= 0) {
|
if ($value <= 0) {
|
||||||
$y=$null;
|
$y=$null;
|
||||||
} else {
|
} else {
|
||||||
$y=$null+4.3-$h;
|
$y=$null+4.9-$h;
|
||||||
}
|
}
|
||||||
$null=undef if ($max == 0 or $min == 0);
|
$null=undef if ($max == 0 or $min == 0);
|
||||||
return ($y,$h,$null);
|
return ($y,$h,$null);
|
||||||
@ -5317,10 +5317,6 @@ Zeitintervalle über Mitternacht:<br>
|
|||||||
<br>
|
<br>
|
||||||
<code>define di_light DOIF ([22:00-07:00]) (set light on) DOELSE (set light off) </code><br>
|
<code>define di_light DOIF ([22:00-07:00]) (set light on) DOELSE (set light off) </code><br>
|
||||||
<br>
|
<br>
|
||||||
in Verbindung mit Wochentagen (einschalten am Freitag ausschalten am Folgetag):<br>
|
|
||||||
<br>
|
|
||||||
<code>define di_light DOIF ([22:00-07:00|5]) (set light on) DOELSE (set light off) </code><br>
|
|
||||||
<br>
|
|
||||||
Zeitintervalle über mehrere Tage müssen als Zeitpunkte angegeben werden.<br>
|
Zeitintervalle über mehrere Tage müssen als Zeitpunkte angegeben werden.<br>
|
||||||
<br>
|
<br>
|
||||||
Einschalten am Freitag ausschalten am Montag:<br>
|
Einschalten am Freitag ausschalten am Montag:<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user