synatx fehler
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "ValidationTextBox",
|
"type": "ValidationTextBox",
|
||||||
"name": "GeräteNummer",
|
"name": "Gerätenummer",
|
||||||
"caption": "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("ZusatzVariablen", json_encode([]));// Bezeichnung der Liste
|
||||||
$this->RegisterPropertyString("Variable","0"); // Datenpunkt kann im Syncom ausgewählt werden
|
$this->RegisterPropertyString("Variable","0"); // Datenpunkt kann im Syncom ausgewählt werden
|
||||||
$this->RegisterPropertyString("Variablenname","0"); // Name für Influxaufzeichnung
|
$this->RegisterPropertyString("Variablenname","0"); // Name für Influxaufzeichnung
|
||||||
$this->RegisterPropertyString("GeräteNummer","0");
|
$this->RegisterPropertyString("Gerätenummer","0");
|
||||||
|
|
||||||
// Timer registrieren
|
// Timer registrieren
|
||||||
$this->RegisterTimer("Timer_Influx", 0, 'IPS_RequestAction(' . $this->InstanceID . ', "GetAction", "");');
|
$this->RegisterTimer("Timer_Influx", 0, 'IPS_RequestAction(' . $this->InstanceID . ', "GetAction", "");');
|
||||||
@@ -146,9 +146,13 @@ public function MakeJson($json)
|
|||||||
|
|
||||||
|
|
||||||
private function SendJsonToInfluxDB($url, $jsonData) {
|
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 Initialisieren
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
$pw =$this->ReadPropertyString("GeräteNummer");
|
|
||||||
// Optionen für cURL-Request definieren
|
// Optionen für cURL-Request definieren
|
||||||
curl_setopt_array($curl, [
|
curl_setopt_array($curl, [
|
||||||
CURLOPT_URL => $url,
|
CURLOPT_URL => $url,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.87",
|
"version": "0.88",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user