mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
70_Pushover: increase regular user re-validation period to 12h; 15min re-validation period in case an error occurred
git-svn-id: https://svn.fhem.de/fhem/trunk@9709 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
424cc7b0ab
commit
7804b3c1d9
@ -153,6 +153,8 @@ sub Pushover_Undefine($$) {
|
|||||||
Pushover_removeExtension( $hash->{fhem}{infix} );
|
Pushover_removeExtension( $hash->{fhem}{infix} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RemoveInternalTimer($hash);
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -529,7 +531,10 @@ sub Pushover_ValidateUser ($;$) {
|
|||||||
Log3 $name, 5, "Pushover $name: called function Pushover_ValidateUser()";
|
Log3 $name, 5, "Pushover $name: called function Pushover_ValidateUser()";
|
||||||
|
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer( gettimeofday() + 600, "Pushover_ValidateUser", $hash, 0 );
|
InternalTimer( gettimeofday() + 900, "Pushover_ValidateUser", $hash, 0 )
|
||||||
|
if ($hash->{READINGS}{available}{VAL} eq "0");
|
||||||
|
InternalTimer( gettimeofday() + 21600, "Pushover_ValidateUser", $hash, 0 )
|
||||||
|
if ($hash->{READINGS}{available}{VAL} eq "1");
|
||||||
|
|
||||||
return
|
return
|
||||||
if ( AttrVal( $name, "disable", 0 ) == 1 );
|
if ( AttrVal( $name, "disable", 0 ) == 1 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user