mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 11:26:55 +00:00
42_npmjs: correct Perl namespace
git-svn-id: https://svn.fhem.de/fhem/trunk@18447 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e28c841a52
commit
e74a2483b2
@ -14,12 +14,12 @@ sub npmjs_Initialize($) {
|
|||||||
|
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
$hash->{SetFn} = "FHEM::npmjs::Set";
|
$hash->{SetFn} = "npmjs::Set";
|
||||||
$hash->{GetFn} = "FHEM::npmjs::Get";
|
$hash->{GetFn} = "npmjs::Get";
|
||||||
$hash->{DefFn} = "FHEM::npmjs::Define";
|
$hash->{DefFn} = "npmjs::Define";
|
||||||
$hash->{NotifyFn} = "FHEM::npmjs::Notify";
|
$hash->{NotifyFn} = "npmjs::Notify";
|
||||||
$hash->{UndefFn} = "FHEM::npmjs::Undef";
|
$hash->{UndefFn} = "npmjs::Undef";
|
||||||
$hash->{AttrFn} = "FHEM::npmjs::Attr";
|
$hash->{AttrFn} = "npmjs::Attr";
|
||||||
$hash->{AttrList} =
|
$hash->{AttrList} =
|
||||||
"disable:1,0 "
|
"disable:1,0 "
|
||||||
. "disabledForIntervals "
|
. "disabledForIntervals "
|
||||||
@ -34,7 +34,7 @@ sub npmjs_Initialize($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# define package
|
# define package
|
||||||
package FHEM::npmjs;
|
package npmjs;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -323,7 +323,7 @@ sub ProcessUpdateTimer($) {
|
|||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(
|
InternalTimer(
|
||||||
gettimeofday() + 14400,
|
gettimeofday() + 14400,
|
||||||
"FHEM::npmjs::ProcessUpdateTimer",
|
"npmjs::ProcessUpdateTimer",
|
||||||
$hash, 0
|
$hash, 0
|
||||||
);
|
);
|
||||||
Log3 $name, 4, "npmjs ($name) - stateRequestTimer: Call Request Timer";
|
Log3 $name, 4, "npmjs ($name) - stateRequestTimer: Call Request Timer";
|
||||||
@ -399,7 +399,7 @@ sub AsynchronousExecuteNpmCommand($) {
|
|||||||
$hash->{".fhem"}{subprocess} = $subprocess;
|
$hash->{".fhem"}{subprocess} = $subprocess;
|
||||||
|
|
||||||
InternalTimer( gettimeofday() + POLLINTERVAL,
|
InternalTimer( gettimeofday() + POLLINTERVAL,
|
||||||
"FHEM::npmjs::PollChild", $hash, 0 );
|
"npmjs::PollChild", $hash, 0 );
|
||||||
Log3 $hash, 4, "npmjs ($name) - control passed back to main loop.";
|
Log3 $hash, 4, "npmjs ($name) - control passed back to main loop.";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -415,7 +415,7 @@ sub PollChild($) {
|
|||||||
Log3 $name, 5,
|
Log3 $name, 5,
|
||||||
"npmjs ($name) - still waiting (" . $subprocess->{lasterror} . ").";
|
"npmjs ($name) - still waiting (" . $subprocess->{lasterror} . ").";
|
||||||
InternalTimer( gettimeofday() + POLLINTERVAL,
|
InternalTimer( gettimeofday() + POLLINTERVAL,
|
||||||
"FHEM::npmjs::PollChild", $hash, 0 );
|
"npmjs::PollChild", $hash, 0 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user