Timmer corrected
This commit is contained in:
@@ -84,7 +84,7 @@ class MonitoringServer extends IPSModule {
|
|||||||
$this->SetTimerInterval("UpdateAlarms", $this->ReadPropertyInteger("UpdateintervallAlarms") * 1000);
|
$this->SetTimerInterval("UpdateAlarms", $this->ReadPropertyInteger("UpdateintervallAlarms") * 1000);
|
||||||
$this->SetTimerInterval("UpdateValues", $this->ReadPropertyInteger("UpdateintervallValues") * 1000);
|
$this->SetTimerInterval("UpdateValues", $this->ReadPropertyInteger("UpdateintervallValues") * 1000);
|
||||||
$this->SetTimerInterval("ForceUpdateValues", $this->ReadPropertyInteger("UpdateintervallForceValues") * 1000 * 60);
|
$this->SetTimerInterval("ForceUpdateValues", $this->ReadPropertyInteger("UpdateintervallForceValues") * 1000 * 60);
|
||||||
$this->SetTimerInterval("UpdateFtp", $this->ReadPropertyInteger("UpdateintervallSendFtp") * 1000 * 60);
|
$this->SetTimerInterval("UpdateFtp", $this->ReadPropertyInteger("UpdateintervallSendFtp") * 1000);
|
||||||
|
|
||||||
$this->SetTimerInterval("CheckChanges", 10 * 1000);
|
$this->SetTimerInterval("CheckChanges", 10 * 1000);
|
||||||
|
|
||||||
@@ -582,7 +582,7 @@ class MonitoringServer extends IPSModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function sendFtp(){
|
private function sendFtp(){
|
||||||
$goforit = $this->ReadPropertyBoolean("SendFtp");
|
$goforit = $this->ReadPropertyBoolean("SendFtp");
|
||||||
$ftp_server = $this->ReadPropertyString("FtpHost");
|
$ftp_server = $this->ReadPropertyString("FtpHost");
|
||||||
$ftp_user_name = $this->ReadPropertyString("FtpUser");
|
$ftp_user_name = $this->ReadPropertyString("FtpUser");
|
||||||
@@ -648,9 +648,9 @@ private function sendFtp(){
|
|||||||
|
|
||||||
ftp_close($ftp);
|
ftp_close($ftp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function generateAndUploadCsv($catId, $ftp, $remotePath, $localPath) {
|
private function generateAndUploadCsv($catId, $ftp, $remotePath, $localPath) {
|
||||||
if ($catId <= 0) return;
|
if ($catId <= 0) return;
|
||||||
|
|
||||||
$data = "Name;Wert\n";
|
$data = "Name;Wert\n";
|
||||||
@@ -674,7 +674,7 @@ private function generateAndUploadCsv($catId, $ftp, $remotePath, $localPath) {
|
|||||||
|
|
||||||
// Lade hoch
|
// Lade hoch
|
||||||
ftp_put($ftp, $remotePath, $localPath, FTP_BINARY);
|
ftp_put($ftp, $remotePath, $localPath, FTP_BINARY);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"date": 1491343200
|
"date": 1491343200
|
||||||
},
|
},
|
||||||
"version": "2.5",
|
"version": "2.5",
|
||||||
"build": 2,
|
"build": 3,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user