mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
11_FHT.pm: add adjustminute adjusthour by Boris (Forum #128153)
git-svn-id: https://svn.fhem.de/fhem/trunk@26173 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
789b1d3896
commit
3c6f60b3c8
@ -210,6 +210,16 @@ FHT_Set($@)
|
||||
splice(@a,$i,1,("report1","255","report2","255"))
|
||||
if($a[$i] eq "refreshvalues");
|
||||
|
||||
if($a[$i] eq "adjusthour") {
|
||||
my @t = localtime;
|
||||
splice(@a,$i,1,("hour",$t[2]));
|
||||
}
|
||||
|
||||
if($a[$i] eq "adjustminute") {
|
||||
my @t = localtime;
|
||||
splice(@a,$i,1,("minute",$t[1]));
|
||||
}
|
||||
|
||||
if($a[$i] eq "time") {
|
||||
my @t = localtime;
|
||||
splice(@a,$i,1,("hour",$t[2],"minute",$t[1]));
|
||||
@ -241,7 +251,7 @@ FHT_Set($@)
|
||||
my $tmpList="on,off,".join(",",@list);
|
||||
$cmdList =~ s/-temp/-temp:$tmpList/g; # FHEMWEB sugar
|
||||
$cmdList =~ s/(-from.|-to.)/$1:time/g;
|
||||
$cmdList .= " date:noArg time:noArg";
|
||||
$cmdList .= " date:noArg time:noArg adjusthour:noArg adjustminute:noArg";
|
||||
return "Unknown argument $cmd, choose one of $cmdList";
|
||||
}
|
||||
|
||||
@ -778,7 +788,7 @@ FHT_State($$$$)
|
||||
holiday1 holiday2 # see mode holiday_short or holiday<br>
|
||||
manu-temp # No clue what it does.<br>
|
||||
year month day hour minute<br>
|
||||
time date<br>
|
||||
time date adjusthour adjustminute<br>
|
||||
lowtemp-offset # Alarm-Temp.-Differenz<br>
|
||||
windowopen-temp<br>
|
||||
mon-from1 mon-to1 mon-from2 mon-to2<br>
|
||||
@ -852,6 +862,8 @@ FHT_State($$$$)
|
||||
|
||||
<li>date sets year, month and date to local time</li><br>
|
||||
|
||||
<li>adjusthour and adjustminute set hour or minute to local time, respectively</li><br>
|
||||
|
||||
<li>refreshvalues is an alias for report1 255 report2 255</li><br>
|
||||
|
||||
<li>All <code>*-temp</code> values need a temperature
|
||||
@ -1126,7 +1138,7 @@ FHT_State($$$$)
|
||||
holiday1 holiday2 # siehe mode holiday_short oder holiday<br>
|
||||
manu-temp # Keine Ahnung was das bewirkt<br>
|
||||
year month day hour minute<br>
|
||||
time date<br>
|
||||
time date adjusthour adjustminute<br>
|
||||
lowtemp-offset # Alarm-Temp.-Differenz<br>
|
||||
windowopen-temp<br>
|
||||
mon-from1 mon-to1 mon-from2 mon-to2<br>
|
||||
@ -1203,6 +1215,8 @@ FHT_State($$$$)
|
||||
|
||||
<li>date setzt Jahr, Monat und Tag auf lokale Zeit</li><br>
|
||||
|
||||
<li>adjusthour und adjustminute setzen Stunde bzw. Minute auf lokale Zeit</li><br>
|
||||
|
||||
<li>refreshvalues ist ein Alias für report1 255 report2 255</li><br>
|
||||
|
||||
<li>Alle *-temp Werte brauchen eine Temperatur als Argument welche auf
|
||||
|
Loading…
Reference in New Issue
Block a user