Skip to content

Commit 0b1c021

Browse files
committed
revised commandref
* wrong variables named
1 parent 296a518 commit 0b1c021

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

FHEM/88_Timer.pm

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#################################################################
2-
# $Id: 88_Timer.pm 21514 2021-01-19 17:30:43Z HomeAuto_User $
2+
# $Id: 88_Timer.pm 21514 2021-01-20 17:30:43Z HomeAuto_User $
33
#
44
# The module is a timer for executing actions with only one InternalTimer.
55
# Github - FHEM Home Automation System
@@ -22,7 +22,7 @@ use strict;
2222
use warnings;
2323
use Time::HiRes qw(gettimeofday);
2424

25-
our $VERSION = '2021-01-19';
25+
our $VERSION = '2021-01-20';
2626

2727
my @action = qw(on off DEF);
2828
my @names;
@@ -1074,19 +1074,21 @@ the timer uses the calculated sunset time at your location. <u><i>(For this calc
10741074
10751075
<br><br>
10761076
<u>Interval switching of the timer is only possible in the following variants:</u><br>
1077-
<ul><li>minute, define second and set all other values ​​(minute, hour, day, month, year) to <code>all</code></li>
1078-
<li>hourly, define second + minute and set all other values ​​(hour, day, month, year) to <code>all</code></li>
1079-
<li>daily, define second + minute + hour and set all other values ​​(day, month, year) to <code>all</code></li>
1080-
<li>monthly, define second + minute + hour + day and set all other values ​​(month, year) to <code>all</code></li>
1081-
<li>annually, define second + minute + hour + day + month and set the value (year) to <code>all</code></li>
1082-
<li>sunrise, define second & define minute + hour with <code>SR</code> and set all other values ​​(day, month, year) to <code>all</code></li>
1083-
<li>sunset, define second & define minute + hour with <code>SS</code> and set all other values ​​(day, month, year) to <code>all</code></li></ul>
1077+
<ul>
1078+
<li>minute, define second and set all other values ​​(minute, hour, day, month, year) to <code>all</code></li>
1079+
<li>hourly, define second + minute and set all other values ​​(hour, day, month, year) to <code>all</code></li>
1080+
<li>daily, define second + minute + hour and set all other values ​​(day, month, year) to <code>all</code></li>
1081+
<li>monthly, define second + minute + hour + day and set all other values ​​(month, year) to <code>all</code></li>
1082+
<li>annually, define second + minute + hour + day + month and set the value (year) to <code>all</code></li>
1083+
<li>sunrise, define second & define minute + hour with <code>SR</code> and set all other values ​​(day, month, year) to <code>all</code></li>
1084+
<li>sunset, define second & define minute + hour with <code>SS</code> and set all other values ​​(day, month, year) to <code>all</code></li>
1085+
</ul>
10841086
<br>
10851087
Any interval circuits can be defined in which in the associated timer attribute e.g. the following Perl code is inserted:<br>
10861088
<code>{if ($min % 5 == 0) {fhem("set FS10_6_11 toggle");}}</code><br>
1087-
This timer would run every 5 minutes if the timer is configured to run in a minute as described.<br>
1089+
This timer would run every 5 minutes if the timer is configured to run in a minute as described.<br><br>
10881090
The following variables for time and date are available:<br>
1089-
<code>$sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst, $week, $hms, $hm, $md, $ymd, $we, $twe</code><br>
1091+
<code>$sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst, $hms, $we, $today</code><br>
10901092
This makes it possible, for example, to have a timer run every Sunday at 15:30:00.
10911093
<br><br>
10921094
@@ -1191,19 +1193,21 @@ stellen, so nutzt der Timer den errechnenten Zeitpunkt Sonnenuntergang an Ihrem
11911193
11921194
<br><br>
11931195
<u>Eine Intervallschaltung des Timer ist nur m&ouml;glich in folgenden Varianten:</u><br>
1194-
<ul><li>min&uuml;tlich, Sekunde definieren und alle anderen Werte (Minute, Stunde, Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1195-
<li>st&uuml;ndlich, Sekunde + Minute definieren und alle anderen Werte (Stunde, Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1196-
<li>t&auml;glich, Sekunde + Minute + Stunde definieren und alle anderen Werte (Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1197-
<li>monatlich, Sekunde + Minute + Stunde + Tag definieren und alle anderen Werte (Monat, Jahr) auf <code>alle</code> setzen</li>
1198-
<li>j&auml;hrlich, Sekunde + Minute + Stunde + Tag + Monat definieren und den Wert (Jahr) auf <code>alle</code> setzen</li>
1199-
<li>Sonnenaufgang, Sekunde definieren & Minute + Stunde definieren mit <code>SA</code> und alle anderen Werte (Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1200-
<li>Sonnenuntergang, Sekunde definieren & Minute + Stunde definieren mit <code>SU</code> und alle anderen Werte (Tag, Monat, Jahr) auf <code>alle</code> setzen</li></ul>
1196+
<ul>
1197+
<li>min&uuml;tlich, Sekunde definieren und alle anderen Werte (Minute, Stunde, Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1198+
<li>st&uuml;ndlich, Sekunde + Minute definieren und alle anderen Werte (Stunde, Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1199+
<li>t&auml;glich, Sekunde + Minute + Stunde definieren und alle anderen Werte (Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1200+
<li>monatlich, Sekunde + Minute + Stunde + Tag definieren und alle anderen Werte (Monat, Jahr) auf <code>alle</code> setzen</li>
1201+
<li>j&auml;hrlich, Sekunde + Minute + Stunde + Tag + Monat definieren und den Wert (Jahr) auf <code>alle</code> setzen</li>
1202+
<li>Sonnenaufgang, Sekunde definieren & Minute + Stunde definieren mit <code>SA</code> und alle anderen Werte (Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1203+
<li>Sonnenuntergang, Sekunde definieren & Minute + Stunde definieren mit <code>SU</code> und alle anderen Werte (Tag, Monat, Jahr) auf <code>alle</code> setzen</li>
1204+
</ul>
12011205
<br>
12021206
Beliebige Intervallschaltungen k&ouml;nnen definiert werden, in dem im zugeh&ouml;rigen Timer-Attribut z.B. folgender Perl-Code eingef&uuml;gt wird:<br>
12031207
<code>{if ($min % 5 == 0) {fhem("set FS10_6_11 toggle");}}</code><br>
1204-
Dieser Timer w&uuml;rde dann aller 5 Minuten ausgef&uuml;hrt, wenn der Timer wie beschrieben auf min&uuml;tliches Ausf&uuml;hren konfiguriert ist.<br>
1208+
Dieser Timer w&uuml;rde dann aller 5 Minuten ausgef&uuml;hrt, wenn der Timer wie beschrieben auf min&uuml;tliches Ausf&uuml;hren konfiguriert ist.<br><br>
12051209
Folgende Variablen f&uuml;r Zeit- und Datumsangaben stehen zur Verf&uuml;gung:<br>
1206-
<code>$sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst, $week, $hms, $hm, $md, $ymd, $we, $twe</code><br>
1210+
<code>$sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst, $hms, $we, $today</code><br>
12071211
Damit ist es m&ouml;glich, einen Timer beispielsweise nur jeden Sonntag um 15:30:00 Uhr etwas ausf&uuml;hren zu lassen.
12081212
<br><br>
12091213

0 commit comments

Comments
 (0)