2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +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:
jpawlowski 2015-10-28 17:54:00 +00:00
parent 424cc7b0ab
commit 7804b3c1d9

View File

@ -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 );