commandref_frame.html: replace 99_Utils staff with link to 99_Utils
git-svn-id: https://svn.fhem.de/fhem/trunk@20913 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1798,7 +1798,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
{ `ls /etc` }<br>
|
{ `ls /etc` }<br>
|
||||||
{ Log 1, "Hello" }<br>
|
{ Log 1, "Hello" }<br>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
</li><br>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Perl expressions are separated by ;, in FHEM oneliners they have to
|
Perl expressions are separated by ;, in FHEM oneliners they have to
|
||||||
@@ -1806,7 +1806,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
<ul>
|
<ul>
|
||||||
{ my $a = 1+1;; Log 1, "Hello $a" }
|
{ my $a = 1+1;; Log 1, "Hello $a" }
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
</li><br>
|
||||||
|
|
||||||
<li>To use FHEM commands from the perl expression, use the function fhem(),
|
<li>To use FHEM commands from the perl expression, use the function fhem(),
|
||||||
which takes a string argument, this string will be evaluated as a FHEM
|
which takes a string argument, this string will be evaluated as a FHEM
|
||||||
@@ -1818,8 +1818,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
Note: if this function returns a value, it will also be logged into the
|
Note: if this function returns a value, it will also be logged into the
|
||||||
global FHEM log. Use 1 as a second argument to disable this logging, this
|
global FHEM log. Use 1 as a second argument to disable this logging, this
|
||||||
makes sense when obtainig some values via FHEM "get...".
|
makes sense when obtainig some values via FHEM "get...".
|
||||||
<br>
|
</li><br>
|
||||||
<br>
|
|
||||||
|
|
||||||
<li>Notify can be used to store macros for manual execution. Use the <a
|
<li>Notify can be used to store macros for manual execution. Use the <a
|
||||||
href="#trigger">trigger</a> command to execute the macro:<br>
|
href="#trigger">trigger</a> command to execute the macro:<br>
|
||||||
@@ -1829,7 +1828,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
define MacroWithArg notify MyMacro { Log 1, "Hello %"}<br>
|
define MacroWithArg notify MyMacro { Log 1, "Hello %"}<br>
|
||||||
trigger MyMacro MyArg<br>
|
trigger MyMacro MyArg<br>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
</li><br>
|
||||||
|
|
||||||
|
|
||||||
<li>To make date and time handling easier, the variables $sec, $min, $hour,
|
<li>To make date and time handling easier, the variables $sec, $min, $hour,
|
||||||
@@ -1850,20 +1849,12 @@ The following local attributes are used by a wider range of devices:
|
|||||||
</ul>
|
</ul>
|
||||||
$we is equivalent to calling IsWe(), which optionally takes the arguments
|
$we is equivalent to calling IsWe(), which optionally takes the arguments
|
||||||
"today", "yesterday", "tomorrow", MM-DD or YYYY-MM-DD. Note: for everything
|
"today", "yesterday", "tomorrow", MM-DD or YYYY-MM-DD. Note: for everything
|
||||||
else "today" is assumed without an error message.<br>
|
else "today" is assumed without an error message.
|
||||||
<br>
|
</li><br>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
The following helper functions are defined in 99_Util.pm (which will
|
All helper functions defined in <a href="#Utils">99_Utils.pm</a><br>
|
||||||
be loaded automatically, as every module with prefix 99):
|
</li><br>
|
||||||
<ul>
|
|
||||||
<li>min(a,b), max(a,b)</li>
|
|
||||||
<li>time_str2num("YYYY-MM-DD HH:MM:SS") returns a numerical value,
|
|
||||||
which makes computation of time differences easier</li>
|
|
||||||
<li>abstime2rel("HH:MM:SS") converts an absolute time to a relative one
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
To access the device states/attributes, use the following functions:
|
To access the device states/attributes, use the following functions:
|
||||||
@@ -1939,7 +1930,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
Round id to <round> devimal places (optional parameter).
|
Round id to <round> devimal places (optional parameter).
|
||||||
</li><br>
|
</li><br>
|
||||||
</ul>
|
</ul>
|
||||||
|
</li><br>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
By using the 99_SUNRISE_EL.pm module, you have access to the following
|
By using the 99_SUNRISE_EL.pm module, you have access to the following
|
||||||
@@ -1951,10 +1942,9 @@ The following local attributes are used by a wider range of devices:
|
|||||||
</ul>
|
</ul>
|
||||||
offset is in seconds, and the format of min/max is "HH:MM" or "HH:MM:SS".
|
offset is in seconds, and the format of min/max is "HH:MM" or "HH:MM:SS".
|
||||||
isday returns 1 if the sun is visible, and 0 else.
|
isday returns 1 if the sun is visible, and 0 else.
|
||||||
</li>
|
</li><br>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
|
||||||
<!-- perl end - diese Zeile nicht entfernen! -->
|
<!-- perl end - diese Zeile nicht entfernen! -->
|
||||||
|
|
||||||
<a name="gnuplot-syntax"></a>
|
<a name="gnuplot-syntax"></a>
|
||||||
|
|||||||
@@ -1997,19 +1997,11 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
|
|||||||
"today", "yesterday", "tomorrow", MM-DD oder YYYY-MM-DD. Achtung: alles
|
"today", "yesterday", "tomorrow", MM-DD oder YYYY-MM-DD. Achtung: alles
|
||||||
andere wird als "today" interpretiert, ohne eine Fehlermeldung zu
|
andere wird als "today" interpretiert, ohne eine Fehlermeldung zu
|
||||||
generieren.<br>
|
generieren.<br>
|
||||||
<br>
|
</li><br>
|
||||||
|
|
||||||
</li><li>
|
<li>
|
||||||
Die folgenden Hilfsfunktionen sind in der Datei 99_Util.pm definiert (wird
|
Hilfsfunktionen sind in <a href="#Utils">99_Utils.pm</a> beschrieben.<br>
|
||||||
wie jede mit 99_ beginnende Datei automatisch geladen):
|
</li><br>
|
||||||
<ul>
|
|
||||||
<li>min(a,b), max(a,b)</li>
|
|
||||||
<li>time_str2num("YYYY-MM-DD HH:MM:SS") gibt einen numerischen Wert
|
|
||||||
zurück, der die Berechnung von Zeitdifferenzen vereinfacht</li>
|
|
||||||
<li>abstime2rel("HH:MM:SS") wandelt absolute in relative Zeitangaben um
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Um auf die Gerätestatus/Attribute zuzugreifen benutzen Sie bitte die
|
Um auf die Gerätestatus/Attribute zuzugreifen benutzen Sie bitte die
|
||||||
|
|||||||
Reference in New Issue
Block a user