2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 03:59:11 +00:00

98_WOL: reair for

[Mon Jan 19 08:10:51 2015] fhem.pl: Undefined subroutine &main::myRemoveInternalTimer called at ./FHEM/98_WOL.pm line 306, <$fh> line 2986.

git-svn-id: https://svn.fhem.de/fhem/trunk@7629 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dietmar63 2015-01-19 19:26:14 +00:00
parent d9425568f1
commit 745dfea40a

View File

@ -28,6 +28,11 @@ use Time::HiRes qw(gettimeofday);
################################################################################
sub WOL_Initialize($) {
my ($hash) = @_;
if(!$modules{Twilight}{LOADED} && -f "$attr{global}{modpath}/FHEM/59_Twilight.pm") {
my $ret = CommandReload(undef, "59_Twilight");
Log3 undef, 1, $ret if($ret);
}
$hash->{SetFn} = "WOL_Set";
$hash->{DefFn} = "WOL_Define";
@ -417,10 +422,10 @@ So, for example a Buffalo NAS can be kept awake.
attr wol shutdownCmd "/bin/echo "Teatime" > /dev/console" # shell command
</PRE>
<li><code>attr &lt;name&gt; interval &lt;seconds&gt;</code></a>
<br>defines the time between two checks by a <i>ping</i> if state of &lt;name&gt is <i>on</i> By using 0 as parametr for interval you can switch off checking the device.</li>
<li><code>attr &lt;name&gt; useUdpBroadcast &lt;<broardcastAdress>&gt;</code>
<br>defines the time between two checks by a <i>ping</i> if state of &lt;name&gt is <i>on</i>. By using 0 as parameter for interval you can switch off checking the device.</li>
<li><code>attr &lt;name&gt; useUdpBroadcast &lt;broardcastAdress&gt;</code>
<br>When using UDP then the magic packet can be send to one of the broardcastAdresses (x.x.x.255, x.x.255.255, x.255.255.255) instead of the target host address.
Try using this, when you are trying to wake up a machine in your own subnet and the wakekup with the target adress is instable or doesn't work.</li>
Try using this, when you want to wake up a machine in your own subnet and the wakekup with the target adress is instable or doesn't work.</li>
</ul>
</ul>