Version 1.7 260818 neu getAllAlarms($_limit=99999) (getAlarms gibt maximal 100 zurück)

This commit is contained in:
2026-08-18 14:47:20 +02:00
parent 39f59debd7
commit 430fb53132
2 changed files with 19 additions and 4 deletions

View File

@@ -3,10 +3,12 @@
Nenninger N-Tools.de
Version 1.4 (241022)
Version 1.5 260725 PHP 8.5 -> curl_close is deprecated
Version 1.6 260817 ?shiftBook=false
Version 1.7 260818 getAllAlarms($_limit=99999)
*/
class alamosConnect{
private $VERSION = '1.5';
private $VERSION = '1.7';
private $source = 'UNKNOWN';
private $alamosServer = '';
private $user = "";
@@ -205,10 +207,21 @@ class alamosConnect{
return false;
}
/*
Alarme
Alarme (max 100)
*/
public function getAlarms(){
$response = $this->request($this->alamosServer."/rest/alarm",'',$this->JWTToken);
$response = $this->request($this->alamosServer."/rest/alarm?shiftBook=false",'',$this->JWTToken);
if($response !== false){
return $response;
}
return false;
}
/*
Alarme ohne Begrenzung (99999)
aber andere Strucktur
*/
public function getAllAlarms($_limit=99999){
$response = $this->request($this->alamosServer."/rest/alarm/paginated/simple/?page=0&limit=".$_limit."&filter=&ordering=DESC&startDate=0&shiftBook=false",'',$this->JWTToken);
if($response !== false){
return $response;
}
@@ -229,7 +242,7 @@ class alamosConnect{
Details zu den Alarmen
*/
public function getDetailsToAlarm($_alarmID){
$response = $this->request($this->alamosServer."/rest/alarm/".$_alarmID,'',$this->JWTToken);
$response = $this->request($this->alamosServer."/rest/alarm/".$_alarmID."?shiftBook=false",'',$this->JWTToken);
if($response !== false){
return $response;
}

View File

@@ -5,5 +5,7 @@ Das Speichern von Zugangsdaten auf öffentlichen Servern stellt ein hohes Risiko
Version 1.4 (241022)
Version 1.5 260725 PHP 8.5 -> curl_close is deprecated
Version 1.6 260817 ?shiftBook=false
Version 1.7 260818 neu getAllAlarms($_limit=99999) (getAlarms gibt maximal 100 zurück)