synatx fehler
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
},
|
||||
{
|
||||
"type": "ValidationTextBox",
|
||||
"name": "GeräteNummer",
|
||||
"name": "Gerätenummer",
|
||||
"caption": "Gerätenummer"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class Belevo_Server_Kommunikation extends IPSModule
|
||||
$this->RegisterPropertyString("ZusatzVariablen", json_encode([]));// Bezeichnung der Liste
|
||||
$this->RegisterPropertyString("Variable","0"); // Datenpunkt kann im Syncom ausgewählt werden
|
||||
$this->RegisterPropertyString("Variablenname","0"); // Name für Influxaufzeichnung
|
||||
$this->RegisterPropertyString("GeräteNummer","0");
|
||||
$this->RegisterPropertyString("Gerätenummer","0");
|
||||
|
||||
// Timer registrieren
|
||||
$this->RegisterTimer("Timer_Influx", 0, 'IPS_RequestAction(' . $this->InstanceID . ', "GetAction", "");');
|
||||
@@ -146,9 +146,13 @@ public function MakeJson($json)
|
||||
|
||||
|
||||
private function SendJsonToInfluxDB($url, $jsonData) {
|
||||
$pw = $this->ReadPropertyString("Gerätenummer");
|
||||
if (empty($pw)) {
|
||||
IPS_LogMessage("Belevo_Server_Kommunikation", "Fehler: Gerätenummer ist leer.");
|
||||
return;
|
||||
}
|
||||
// cURL Initialisieren
|
||||
$curl = curl_init();
|
||||
$pw =$this->ReadPropertyString("GeräteNummer");
|
||||
// Optionen für cURL-Request definieren
|
||||
curl_setopt_array($curl, [
|
||||
CURLOPT_URL => $url,
|
||||
|
||||
Reference in New Issue
Block a user