mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
commandref_frame.html: patch from kirkan (Forum #65732)
git-svn-id: https://svn.fhem.de/fhem/trunk@13235 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6f40750804
commit
d014e1cb32
@ -37,12 +37,12 @@
|
|||||||
<h3>Contents</h3>
|
<h3>Contents</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<a href="#intro">Introduction</a><br>
|
<a href="#intro">Introduction</a><br>
|
||||||
<a href="#command">Fhem command types</a><br>
|
<a href="#command">FHEM command types</a><br>
|
||||||
<a href="#devspec">Device specification</a><br>
|
<a href="#devspec">Device specification</a><br>
|
||||||
<a href="#attributes">Attributes</a><br>
|
<a href="#attributes">Attributes</a><br>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<b>Fhem commands</b>
|
<b>FHEM commands</b>
|
||||||
<ul>
|
<ul>
|
||||||
<!-- header:command -->
|
<!-- header:command -->
|
||||||
<a href="#apptime">apptime</a> <!-- provides information about execution times -->
|
<a href="#apptime">apptime</a> <!-- provides information about execution times -->
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a name="intro"></a>
|
<a name="intro"></a>
|
||||||
<h3>Introduction</h3>
|
<h3>Introduction</h3>
|
||||||
<ul>
|
<ul>
|
||||||
Fhem is mainly used for home automation, but it is suitable for other tasks
|
FHEM is mainly used for home automation, but it is suitable for other tasks
|
||||||
too, where notification, timers and logging plays an important role.<br>
|
too, where notification, timers and logging plays an important role.<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -131,13 +131,13 @@ devices like FS20 or FHT to digest the messages for a certain device type using
|
|||||||
this protocol.<br>
|
this protocol.<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
Fhem is modular. The different devices are represented through modules which
|
FHEM is modular. The different devices are represented through modules which
|
||||||
implement certain functions (e.g. define, get, set). Even seemingly integral
|
implement certain functions (e.g. define, get, set). Even seemingly integral
|
||||||
parts of fhem like triggers (<a href="#notify">notify</a>) and timers (<a
|
parts of FHEM like triggers (<a href="#notify">notify</a>) and timers (<a
|
||||||
href="#at">at</a>) are implemented this way, giving the possibility to
|
href="#at">at</a>) are implemented this way, giving the possibility to
|
||||||
replace/extend this functionality.<br> <br>
|
replace/extend this functionality.<br> <br>
|
||||||
|
|
||||||
Fhem is controlled through readable / ascii commands, which are specified in
|
FHEM is controlled through readable / ascii commands, which are specified in
|
||||||
files (e.g. the configuration file), or issued over a TCP/IP connection, either
|
files (e.g. the configuration file), or issued over a TCP/IP connection, either
|
||||||
directly in a telnet session, with a fhem.pl in client mode or from one of the
|
directly in a telnet session, with a fhem.pl in client mode or from one of the
|
||||||
web frontends.<br> <br>
|
web frontends.<br> <br>
|
||||||
@ -166,7 +166,7 @@ The web interface can be reached at
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
TCP/IP communication with fhem can either happen in a "session" (via
|
TCP/IP communication with FHEM can either happen in a "session" (via
|
||||||
telnet) or single client command (via fhem.pl). Example:
|
telnet) or single client command (via fhem.pl). Example:
|
||||||
<ul>
|
<ul>
|
||||||
<code>telnet <fhemhost> 7072<br>
|
<code>telnet <fhemhost> 7072<br>
|
||||||
@ -183,7 +183,7 @@ telnet) or single client command (via fhem.pl). Example:
|
|||||||
|
|
||||||
|
|
||||||
<a name="command"></a>
|
<a name="command"></a>
|
||||||
<h3>Fhem command types</h3>
|
<h3>FHEM command types</h3>
|
||||||
<ul>
|
<ul>
|
||||||
There are three types of commands: "fhem" commands (described in this
|
There are three types of commands: "fhem" commands (described in this
|
||||||
document), shell commands (they must be enclosed in double quotes ") and perl
|
document), shell commands (they must be enclosed in double quotes ") and perl
|
||||||
@ -201,14 +201,14 @@ prompt:<br>
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
Shell commands will be executed in the background, perl expressions and
|
Shell commands will be executed in the background, perl expressions and
|
||||||
fhem commands will be executed in the main "thread". In order to make perl
|
FHEM commands will be executed in the main "thread". In order to make perl
|
||||||
expressions easier to write, some special functions and variables are
|
expressions easier to write, some special functions and variables are
|
||||||
available. See the section <a href="#perl">Perl special</a> for a description.
|
available. See the section <a href="#perl">Perl special</a> for a description.
|
||||||
To trigger fhem commands from a shell script (this is the "other way round"),
|
To trigger FHEM commands from a shell script (this is the "other way round"),
|
||||||
use the client form of fhem.pl (described above).<br>
|
use the client form of fhem.pl (described above).<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
Multiple fhem commands are separated by semicolon (;). In order to use semicolon
|
Multiple FHEM commands are separated by semicolon (;). In order to use semicolon
|
||||||
in perl code or shell programs, they have to be escaped by the double semicolon
|
in perl code or shell programs, they have to be escaped by the double semicolon
|
||||||
(;;). See the <b>Notes</b> section of the <a href="#notify">notify</a>
|
(;;). See the <b>Notes</b> section of the <a href="#notify">notify</a>
|
||||||
chapter on command parameters and escape rules.<br>
|
chapter on command parameters and escape rules.<br>
|
||||||
@ -235,7 +235,7 @@ Don't dispair, the previous example can also be written as
|
|||||||
Commands can be either typed in plain, or read from a file (e.g. the
|
Commands can be either typed in plain, or read from a file (e.g. the
|
||||||
configuration file at startup). The commands are either executed directly, or
|
configuration file at startup). The commands are either executed directly, or
|
||||||
later if they are arguments to the <a href="#at">at</a> and <a
|
later if they are arguments to the <a href="#at">at</a> and <a
|
||||||
href="#notify">notify</a> fhem commands.<br>
|
href="#notify">notify</a> FHEM commands.<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
A line ending with \ will be concatenated with the next one, so long lines
|
A line ending with \ will be concatenated with the next one, so long lines
|
||||||
@ -863,7 +863,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
<ul>
|
<ul>
|
||||||
<code>include <filename></code> <br>
|
<code>include <filename></code> <br>
|
||||||
<br>
|
<br>
|
||||||
Read in the file, and process every line as a fhem command.
|
Read in the file, and process every line as a FHEM command.
|
||||||
Note: only experts should use this command.
|
Note: only experts should use this command.
|
||||||
<br>
|
<br>
|
||||||
</ul>
|
</ul>
|
||||||
@ -1217,7 +1217,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
<br><br>
|
<br><br>
|
||||||
Shut down the server (after saving the <a href="#statefile">state information
|
Shut down the server (after saving the <a href="#statefile">state information
|
||||||
</a>). It triggers the global:SHUTDOWN event. If the optional restart
|
</a>). It triggers the global:SHUTDOWN event. If the optional restart
|
||||||
parameter is specified, fhem tries to restart itself. exitValue may be
|
parameter is specified, FHEM tries to restart itself. exitValue may be
|
||||||
important for start scripts.
|
important for start scripts.
|
||||||
<br><br>
|
<br><br>
|
||||||
Example:
|
Example:
|
||||||
@ -1299,7 +1299,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
<li>autoload_undefined_devices<br>
|
<li>autoload_undefined_devices<br>
|
||||||
If set, automatically load the corresponding module when a message
|
If set, automatically load the corresponding module when a message
|
||||||
of this type is received. This is used by the <a href="#autocreate">
|
of this type is received. This is used by the <a href="#autocreate">
|
||||||
autocreate</a> device, to automatically create a fhem device upon
|
autocreate</a> device, to automatically create a FHEM device upon
|
||||||
receiving a corresponding message.
|
receiving a corresponding message.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
@ -1323,7 +1323,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
/usr/share/fhem/www"</code>
|
/usr/share/fhem/www"</code>
|
||||||
</ul>
|
</ul>
|
||||||
Note: Your command / script has to return the string "backup done" or
|
Note: Your command / script has to return the string "backup done" or
|
||||||
everything else to report errors, to work properly with updatefhem!<br>
|
everything else to report errors, to work properly with update!<br>
|
||||||
This Attribute is used by the <a href="#backup">backup</a> command.<br>
|
This Attribute is used by the <a href="#backup">backup</a> command.<br>
|
||||||
Example:<br>
|
Example:<br>
|
||||||
<ul>
|
<ul>
|
||||||
@ -1361,7 +1361,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
|
|
||||||
<a name="configfile"></a>
|
<a name="configfile"></a>
|
||||||
<li>configfile<br>
|
<li>configfile<br>
|
||||||
Contains the name of the fhem configuration file. If <a
|
Contains the name of the FHEM configuration file. If <a
|
||||||
href="#save">save</a> is called without argument, then the output will
|
href="#save">save</a> is called without argument, then the output will
|
||||||
be written to this file.
|
be written to this file.
|
||||||
</li><br>
|
</li><br>
|
||||||
@ -1444,7 +1444,7 @@ The following local attributes are used by a wider range of devices:
|
|||||||
or directly after the telnet logon, before displaying the fhem> prompt.
|
or directly after the telnet logon, before displaying the fhem> prompt.
|
||||||
SecurityCheck is setting motd if it is not defined upon startup, to
|
SecurityCheck is setting motd if it is not defined upon startup, to
|
||||||
avoid this set the motd value to none. motd is also used to show
|
avoid this set the motd value to none. motd is also used to show
|
||||||
collected error messages upon fhem start.
|
collected error messages upon FHEM start.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
<a name="mseclog"></a>
|
<a name="mseclog"></a>
|
||||||
@ -1688,7 +1688,7 @@ The .gplot files are also used by the <a href="#FHEMWEB">FHEMWEB</a>/SVG module
|
|||||||
when the <a href="#plotmode">plotmode</a> attribute is set to SVG. In this case
|
when the <a href="#plotmode">plotmode</a> attribute is set to SVG. In this case
|
||||||
only a subset of the .gnuplot attributes are used, and some lines have special
|
only a subset of the .gnuplot attributes are used, and some lines have special
|
||||||
meanings: the difference will be explained in this chapter. See also <a
|
meanings: the difference will be explained in this chapter. See also <a
|
||||||
href="http://fhemwiki.de/wiki/Creating_Plots">this</a> fhemwiki entry on
|
href="http://wiki.fhem.de/wiki/Creating_Plots">this</a> FHEM Wiki entry on
|
||||||
creating logs.<br>
|
creating logs.<br>
|
||||||
Following is a minimal .gplot definition (valid only for plotmode SVG):<br>
|
Following is a minimal .gplot definition (valid only for plotmode SVG):<br>
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -1406,7 +1406,7 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
|
|||||||
</ul>
|
</ul>
|
||||||
Bemerkung: Ihr Befehl/Skript muss die Zeichenkette "backup done"
|
Bemerkung: Ihr Befehl/Skript muss die Zeichenkette "backup done"
|
||||||
zurückgeben oder eine entsprechende Zeichenkette um
|
zurückgeben oder eine entsprechende Zeichenkette um
|
||||||
Fehlermeldungen auszugeben, damit die Zusammenarbeit mit updatefhem
|
Fehlermeldungen auszugeben, damit die Zusammenarbeit mit update
|
||||||
funktioniert!<br> Dieses Attribut wird vom <a href="#backup">backup</a>
|
funktioniert!<br> Dieses Attribut wird vom <a href="#backup">backup</a>
|
||||||
Befehl benutzt.<br>
|
Befehl benutzt.<br>
|
||||||
|
|
||||||
@ -1540,7 +1540,7 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
|
|||||||
es bisher nicht gesetzt ist. Um das zu verhindern, können sie den
|
es bisher nicht gesetzt ist. Um das zu verhindern, können sie den
|
||||||
Wert von motd auf "none" setzen.
|
Wert von motd auf "none" setzen.
|
||||||
motd wird auch verwendet, um Fehlermeldungen während des
|
motd wird auch verwendet, um Fehlermeldungen während des
|
||||||
fhem-Starts zu sammeln und anzuzeigen.
|
FHEM-Starts zu sammeln und anzuzeigen.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
<a name="mseclog"></a>
|
<a name="mseclog"></a>
|
||||||
@ -1820,7 +1820,7 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
|
|||||||
ist. In diesem Fall wird nur eine geringere Anzahl der .gnuplot Attribute
|
ist. In diesem Fall wird nur eine geringere Anzahl der .gnuplot Attribute
|
||||||
benutzt, und einige Linien haben eine besondere Bedeutung: Die Unterschiede
|
benutzt, und einige Linien haben eine besondere Bedeutung: Die Unterschiede
|
||||||
werden in diesem Kapitel erklärt. Lesen Sie bitte auch <a
|
werden in diesem Kapitel erklärt. Lesen Sie bitte auch <a
|
||||||
href="http://fhemwiki.de/wiki/Creating_Plots"> diesen</a> fhemwiki Eintrag
|
href="http://wiki.fhem.de/wiki/Creating_Plots"> diesen</a> FHEM Wiki Eintrag
|
||||||
zur Erstellung von Logdateien.<br> Im folgenden ist eine minimale .gplot
|
zur Erstellung von Logdateien.<br> Im folgenden ist eine minimale .gplot
|
||||||
Definition (gültig nur bei Plotmode SVG):<br>
|
Definition (gültig nur bei Plotmode SVG):<br>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user