lösche alle Routinen ausser autocreate

This commit is contained in:
Marko Oldenburg 2016-11-05 14:55:48 +01:00
parent 0ff7fc76eb
commit 82bf1c3191
2 changed files with 10 additions and 10 deletions

View File

@ -46,7 +46,7 @@ use JSON;
use HttpUtils; use HttpUtils;
my $version = "0.3.9"; my $version = "0.3.11";
@ -324,7 +324,7 @@ sub NUKIBridge_firstRun($) {
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
NUKIBridge_Call($hash,$hash,"list",undef,undef) if( !IsDisabled($name) ); NUKIBridge_Call($hash,$hash,"list",undef,undef) if( !IsDisabled($name) );
InternalTimer( gettimeofday()+3, "NUKIBridge_GetCheckBridgeAlive", $hash, 1 ); #InternalTimer( gettimeofday()+3, "NUKIBridge_GetCheckBridgeAlive", $hash, 1 );
Log3 $name, 4, "NUKIBridge ($name) - Call NUKIBridge_Get" if( !IsDisabled($name) ); Log3 $name, 4, "NUKIBridge ($name) - Call NUKIBridge_Get" if( !IsDisabled($name) );

View File

@ -33,7 +33,7 @@ use warnings;
use JSON; use JSON;
#use Time::HiRes qw(gettimeofday); #use Time::HiRes qw(gettimeofday);
my $version = "0.3.7"; my $version = "0.3.11";
@ -120,11 +120,11 @@ sub NUKIDevice_Define($$) {
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
if( $init_done ) { #if( $init_done ) {
NUKIDevice_GetUpdateInternalTimer($hash); # NUKIDevice_GetUpdateInternalTimer($hash);
} else { #} else {
InternalTimer(gettimeofday()+20, "NUKIDevice_GetUpdateInternalTimer", $hash, 0); # InternalTimer(gettimeofday()+20, "NUKIDevice_GetUpdateInternalTimer", $hash, 0);
} #}
return undef; return undef;
} }
@ -253,8 +253,8 @@ sub NUKIDevice_GetUpdateInternalTimer($) {
my $name = $hash->{NAME}; my $name = $hash->{NAME};
NUKIDevice_GetUpdate($hash); #NUKIDevice_GetUpdate($hash);
Log3 $name, 5, "NUKIDevice ($name) - Call NUKIDevice_GetUpdate"; #Log3 $name, 5, "NUKIDevice ($name) - Call NUKIDevice_GetUpdate";
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
#InternalTimer(gettimeofday()+$hash->{INTERVAL}, "NUKIDevice_GetUpdateInternalTimer", $hash, 0) if( $hash->{INTERVAL} ); #InternalTimer(gettimeofday()+$hash->{INTERVAL}, "NUKIDevice_GetUpdateInternalTimer", $hash, 0) if( $hash->{INTERVAL} );