mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
- no WOL packet after shutdown command
- dokumentation improved git-svn-id: https://svn.fhem.de/fhem/trunk@4911 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
82feb8fe2b
commit
fb48bd7860
@ -54,11 +54,11 @@ sub WOL_Set($@) {
|
|||||||
if ($cmd eq "") {
|
if ($cmd eq "") {
|
||||||
Log3 $hash, 3, "No shutdown command given (see shutdownCmd attribute)!";
|
Log3 $hash, 3, "No shutdown command given (see shutdownCmd attribute)!";
|
||||||
} else {
|
} else {
|
||||||
# qx ($cmd);
|
|
||||||
$cmd = SemicolonEscape($cmd);
|
$cmd = SemicolonEscape($cmd);
|
||||||
Log3 $hash, 3, $mod."shutdownCmd: $cmd executed";
|
Log3 $hash, 3, $mod."shutdownCmd: $cmd executed";
|
||||||
my $ret = AnalyzeCommandChain(undef, $cmd);
|
my $ret = AnalyzeCommandChain(undef, $cmd);
|
||||||
Log3 ($hash, 3, $ret) if($ret);
|
Log3 ($hash, 3, $ret) if($ret);
|
||||||
|
return undef;
|
||||||
}
|
}
|
||||||
} elsif ($v eq "refresh") {
|
} elsif ($v eq "refresh") {
|
||||||
;
|
;
|
||||||
@ -297,9 +297,9 @@ So, for example a Buffalo NAS can be kept awake.
|
|||||||
<br><br>
|
<br><br>
|
||||||
Examples:
|
Examples:
|
||||||
<PRE>
|
<PRE>
|
||||||
shutdownCmd set lamp on # fhem command
|
attr wol shutdownCmd set lamp on # fhem command
|
||||||
shutdownCmd { Log 1, "Teatime" } # Perl command
|
attr wol shutdownCmd { Log 1, "Teatime" } # Perl command
|
||||||
shutdownCmd "/bin/echo "Teatime" > /dev/console" # shell command
|
attr wol shutdownCmd "/bin/echo "Teatime" > /dev/console" # shell command
|
||||||
</PRE>
|
</PRE>
|
||||||
<li><code>attr <name> interval <seconds></code></a>
|
<li><code>attr <name> interval <seconds></code></a>
|
||||||
<br>defines the time between two checks by a <i>ping</i> if state of <name> is <i>on</i></li>
|
<br>defines the time between two checks by a <i>ping</i> if state of <name> is <i>on</i></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user