add condition for readings age from fhemBackupFile

no backup to storage then backup befor update run
This commit is contained in:
Marko Oldenburg 2020-10-15 13:53:24 +02:00
parent 57d95d6141
commit 2aa7914642
2 changed files with 5 additions and 1 deletions

View File

@ -1,2 +1,2 @@
UPD 2020-06-19_08:32:08 6090 FHEM/98_backupToStorage.pm
UPD 2020-10-15_13:36:39 15631 lib/FHEM/backupToStorage.pm
UPD 2020-10-15_13:53:07 15705 lib/FHEM/backupToStorage.pm

View File

@ -320,6 +320,10 @@ sub PushToStorage {
my $name = $hash->{NAME};
Log3( $name, 4, "backupToStorage ($name) - push to storage function" );
return
if (ReadingsAge($name,'fhemBackupFile',60) > 5) );
require "SubProcess.pm";
my $subprocess = SubProcess->new( { onRun => \&FileUpload } );