Bei mir funktioniert das ganze, also die verlinkte _math.php, mit einem Schwarm nicht korrekt.
1. WR ein Plenticore plus mit der Datenbank "solaranzeige"
2. WR Pico IQ mit der Datenbank solaranzeige2
Wenn ich das richtig verstanden habe, dann schmeiße ich nur die "kostal_meter_math.php" ins html-Verzeichnis, bearbeite allenfalls den ErrorLevel der "kostal_meter.php", um Fehler in den LOG (ich bin derzeit auf 10) zu finden und das war es dann. Die Messurements würden <imho> von selbst angelegt werden. Werden sie aber nicht.
Code: Alles auswählen
19.03. 18:53:17 -Verarbeitung von: '3.user.config.php' Regler: 22
19.03. 18:53:17 |---------------- Start kostal_meter.php --------------------
19.03. 18:53:17 -Zentraler Timestamp: 1679248381
19.03. 18:53:17 -Kostal: 192.168.121.148 Port: 502 GeräteID: 01
19.03. 18:53:17 o -Hardware Version: 4B
19.03. 18:53:17 + -Die Daten werden ausgelesen...
19.03. 18:53:17 o -Antwort = 0001000000054703020201
19.03. 18:53:17 o -Antwort = 0001000000234703204b4f5354414c20536d61727420456e65726779204d6574657200000000000000
19.03. 18:53:17 o -Antwort = 0001000000234703203735333031353030000000000000000000000000000000000000000000000000
19.03. 18:53:17 o -Antwort = 00010000000747030400000230
19.03. 18:53:17 o -Antwort = 00010000000747030400001274
19.03. 18:53:17 o -Antwort = 00010000000747030400000000
19.03. 18:53:17 o -Antwort = 00010000000747030400000000
19.03. 18:53:17 o -Antwort = 00010000000747030400001b44
19.03. 18:53:17 o -Antwort = 000100000007470304000020ec
19.03. 18:53:17 o -Antwort = 00010000000747030400000000
19.03. 18:53:17 o -Antwort = 00010000000b4703080000000001e92298
19.03. 18:53:17 o -Antwort = 00010000000b470308000000000577bdf6
19.03. 18:53:17 o -Antwort = 00010000000b4703080000000002e84fa1
19.03. 18:53:17 o -Antwort = 00010000000b4703080000000001484211
19.03. 18:53:17 o -Antwort = 00010000000b470308000000000292a214
19.03. 18:53:17 o -Antwort = 00010000000b470308000000000654b43a
19.03. 18:53:17 o -Antwort = 000100000007470304000005ee
19.03. 18:53:17 o -Antwort = 00010000000747030400000502
19.03. 18:53:17 o -Antwort = 00010000000747030400000564
19.03. 18:53:17 o -Antwort = 0001000000074703040000c334
19.03. 18:53:17 o -Antwort = 00010000000747030400038b42
19.03. 18:53:17 o -Antwort = 0001000000074703040003851e
19.03. 18:53:17 o -Antwort = 00010000000747030400038f64
19.03. 18:53:17 o -Antwort = 00010000000747030400000cc1
19.03. 18:53:17 o -Antwort = 00010000000747030400000000
19.03. 18:53:17 o -Antwort = 000100000007470304000002e3
19.03. 18:53:17 o -Antwort = 00010000000747030400000000
19.03. 18:53:17 o -Antwort = 000100000007470304000002da
19.03. 18:53:17 o -Antwort = 00010000000747030400000000
19.03. 18:53:17 -array (
'zentralerTimestamp' => 1679248391,
'Firmware' => 513,
'Produkt' => 'KOSTAL Smart Energy Meter',
'Seriennummer' => '75301500',
'Leistungsfaktor' => 0.56,
'Active_powerP' => 472.4,
'Active_powerM' => 0,
'Reactive_powerP' => 0,
'Reactive_powerM' => 698,
'Apparent_powerP' => 842.8,
'Apparent_powerM' => 0,
'Active_energyP' => 3205596,
'Active_energyM' => 9173349.4,
'Reactive_energyP' => 4877916.9,
'Reactive_energyM' => 2151272.1,
'Apparent_energyP' => 4316418,
'Apparent_energyM' => 10621445.8,
'Current_L1' => 1.518,
'Current_L2' => 1.282,
'Current_L3' => 1.38,
'Frequency' => 49.972,
'Voltage_L1' => 232.258,
'Voltage_L2' => 230.686,
'Voltage_L3' => 233.316,
'Active_powerP_L1' => 326.5,
'Active_powerM_L1' => 0,
'Active_powerP_L2' => 73.9,
'Active_powerM_L2' => 0,
'Active_powerP_L3' => 73,
'Active_powerM_L3' => 0,
'Regler' => '22',
'Objekt' => 'WR-KSEM',
'WattstundenGesamtHeute' => 0,
)
19.03. 18:53:17 *- -Array
(
[zentralerTimestamp] => 1679248391
[Firmware] => 513
[Produkt] => KOSTAL Smart Energy Meter
[Seriennummer] => 75301500
[Leistungsfaktor] => 0.56
[Active_powerP] => 472.4
[Active_powerM] => 0
[Reactive_powerP] => 0
[Reactive_powerM] => 698
[Apparent_powerP] => 842.8
[Apparent_powerM] => 0
[Active_energyP] => 3205596
[Active_energyM] => 9173349.4
[Reactive_energyP] => 4877916.9
[Reactive_energyM] => 2151272.1
[Apparent_energyP] => 4316418
[Apparent_energyM] => 10621445.8
[Current_L1] => 1.518
[Current_L2] => 1.282
[Current_L3] => 1.38
[Frequency] => 49.972
[Voltage_L1] => 232.258
[Voltage_L2] => 230.686
[Voltage_L3] => 233.316
[Active_powerP_L1] => 326.5
[Active_powerM_L1] => 0
[Active_powerP_L2] => 73.9
[Active_powerM_L2] => 0
[Active_powerP_L3] => 73
[Active_powerM_L3] => 0
[Regler] => 22
[Objekt] => WR-KSEM
[WattstundenGesamtHeute] => 0
[ZusatzQuery] => Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
[Timestamp] => 1679248397
[Monat] => 3
[Woche] => 11
[Wochentag] => Sonntag
[Datum] => 19.03.2023
[Uhrzeit] => 18:53:17
[InfluxAdresse] =>
[InfluxPort] => 8086
[InfluxUser] =>
[InfluxPassword] =>
[InfluxDBName] => solaranzeige3
[InfluxDaylight] =>
[InfluxDBLokal] => solaranzeige3
[Demodaten] =>
)
19.03. 18:53:17 -Aktuelle Daten:
Array
(
[zentralerTimestamp] => 1679248391
[Firmware] => 513
[Produkt] => KOSTAL Smart Energy Meter
[Seriennummer] => 75301500
[Leistungsfaktor] => 0.56
[Active_powerP] => 472.4
[Active_powerM] => 0
[Reactive_powerP] => 0
[Reactive_powerM] => 698
[Apparent_powerP] => 842.8
[Apparent_powerM] => 0
[Active_energyP] => 3205596
[Active_energyM] => 9173349.4
[Reactive_energyP] => 4877916.9
[Reactive_energyM] => 2151272.1
[Apparent_energyP] => 4316418
[Apparent_energyM] => 10621445.8
[Current_L1] => 1.518
[Current_L2] => 1.282
[Current_L3] => 1.38
[Frequency] => 49.972
[Voltage_L1] => 232.258
[Voltage_L2] => 230.686
[Voltage_L3] => 233.316
[Active_powerP_L1] => 326.5
[Active_powerM_L1] => 0
[Active_powerP_L2] => 73.9
[Active_powerM_L2] => 0
[Active_powerP_L3] => 73
[Active_powerM_L3] => 0
[Regler] => 22
[Objekt] => WR-KSEM
[WattstundenGesamtHeute] => 0
[ZusatzQuery] => Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
[Timestamp] => 1679248397
[Monat] => 3
[Woche] => 11
[Wochentag] => Sonntag
[Datum] => 19.03.2023
[Uhrzeit] => 18:53:17
[InfluxAdresse] =>
[InfluxPort] => 8086
[InfluxUser] =>
[InfluxPassword] =>
[InfluxDBName] => solaranzeige3
[InfluxDaylight] =>
[InfluxDBLokal] => solaranzeige3
[Demodaten] =>
)
19.03. 18:53:17 -Query:
Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
AC Spannung_R=232.258,Spannung_S=230.686,Spannung_T=233.316,Strom_R=1.518,Strom_S=1.282,Strom_T=1.38,Leistung_pos=472.4,Leistung_pos_R=326.5,Leistung_neg_R=0,Leistung_pos_S=73.9,Leistung_neg_S=0,Leistung_pos_T=73,Leistung_neg_T=0,Blindleistung_pos=0,Scheinleistung_pos=842.8,Leistung_neg=0,Blindleistung_neg=698,Scheinleistung_neg=0,Frequenz=49.972 1679248391
Summen Wh_Gesamt_Leistung_pos=3205596,Wh_Gesamt_Blindleistung_pos=4877916.9,Wh_Gesamt_Scheinleistung_pos=4316418,Wh_Gesamt_Leistung_neg=9173349.4,Wh_Gesamt_Blindleistung_neg=2151272.1,Wh_Gesamt_Scheinleistung_neg=10621445.8 1679248391
19.03. 18:53:17 -InfluxDB => [ Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
AC Spannung_R=232.258,Spannung_S=230.686,Spannung_T=233.316,Strom_R=1.518,Strom_S=1.282,Strom_T=1.38,Leistung_pos=472.4,Leistung_pos_R=326.5,Leistung_neg_R=0,Leistung_pos_S=73.9,Leistung_neg_S=0,Leistung_pos_T=73,Leistung_neg_T=0,Blindleistung_pos=0,Scheinleistung_pos=842.8,Leistung_neg=0,Blindleistung_neg=698,Scheinleistung_neg=0,Frequenz=49.972 1679248391
Summen Wh_Gesamt_Leistung_pos=3205596,Wh_Gesamt_Blindleistung_pos=4877916.9,Wh_Gesamt_Scheinleistung_pos=4316418,Wh_Gesamt_Leistung_neg=9173349.4,Wh_Gesamt_Blindleistung_neg=2151272.1,Wh_Gesamt_Scheinleistung_neg=10621445.8 1679248391
]
19.03. 18:53:17 -Daten => [ Array
(
[zentralerTimestamp] => 1679248391
[Firmware] => 513
[Produkt] => KOSTAL Smart Energy Meter
[Seriennummer] => 75301500
[Leistungsfaktor] => 0.56
[Active_powerP] => 472.4
[Active_powerM] => 0
[Reactive_powerP] => 0
[Reactive_powerM] => 698
[Apparent_powerP] => 842.8
[Apparent_powerM] => 0
[Active_energyP] => 3205596
[Active_energyM] => 9173349.4
[Reactive_energyP] => 4877916.9
[Reactive_energyM] => 2151272.1
[Apparent_energyP] => 4316418
[Apparent_energyM] => 10621445.8
[Current_L1] => 1.518
[Current_L2] => 1.282
[Current_L3] => 1.38
[Frequency] => 49.972
[Voltage_L1] => 232.258
[Voltage_L2] => 230.686
[Voltage_L3] => 233.316
[Active_powerP_L1] => 326.5
[Active_powerM_L1] => 0
[Active_powerP_L2] => 73.9
[Active_powerM_L2] => 0
[Active_powerP_L3] => 73
[Active_powerM_L3] => 0
[Regler] => 22
[Objekt] => WR-KSEM
[WattstundenGesamtHeute] => 0
[ZusatzQuery] => Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
[Timestamp] => 1679248397
[Monat] => 3
[Woche] => 11
[Wochentag] => Sonntag
[Datum] => 19.03.2023
[Uhrzeit] => 18:53:17
[InfluxAdresse] =>
[InfluxPort] => 8086
[InfluxUser] =>
[InfluxPassword] =>
[InfluxDBName] => solaranzeige3
[InfluxDaylight] =>
[InfluxDBLokal] => solaranzeige3
[Demodaten] =>
)
]
19.03. 18:53:17 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => 'http://localhost/write?db=solaranzeige3&precision=s',
'content_type' => 'application/json',
'http_code' => 400,
'header_size' => 433,
'request_size' => 835,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.007499,
'namelookup_time' => 0.00049,
'connect_time' => 0.000672,
'pretransfer_time' => 0.000772,
'size_upload' => 677.0,
'size_download' => 156.0,
'speed_download' => 22285.0,
'speed_upload' => 96714.0,
'download_content_length' => 156.0,
'upload_content_length' => 677.0,
'starttransfer_time' => 0.007445,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 40648,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 0,
'connect_time_us' => 672,
'namelookup_time_us' => 490,
'pretransfer_time_us' => 772,
'redirect_time_us' => 0,
'starttransfer_time_us' => 7445,
'total_time_us' => 7499,
)
19.03. 18:53:22 -InfluxDB => [ Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
AC Spannung_R=232.258,Spannung_S=230.686,Spannung_T=233.316,Strom_R=1.518,Strom_S=1.282,Strom_T=1.38,Leistung_pos=472.4,Leistung_pos_R=326.5,Leistung_neg_R=0,Leistung_pos_S=73.9,Leistung_neg_S=0,Leistung_pos_T=73,Leistung_neg_T=0,Blindleistung_pos=0,Scheinleistung_pos=842.8,Leistung_neg=0,Blindleistung_neg=698,Scheinleistung_neg=0,Frequenz=49.972 1679248391
Summen Wh_Gesamt_Leistung_pos=3205596,Wh_Gesamt_Blindleistung_pos=4877916.9,Wh_Gesamt_Scheinleistung_pos=4316418,Wh_Gesamt_Leistung_neg=9173349.4,Wh_Gesamt_Blindleistung_neg=2151272.1,Wh_Gesamt_Scheinleistung_neg=10621445.8 1679248391
]
19.03. 18:53:22 -Daten => [ Array
(
[zentralerTimestamp] => 1679248391
[Firmware] => 513
[Produkt] => KOSTAL Smart Energy Meter
[Seriennummer] => 75301500
[Leistungsfaktor] => 0.56
[Active_powerP] => 472.4
[Active_powerM] => 0
[Reactive_powerP] => 0
[Reactive_powerM] => 698
[Apparent_powerP] => 842.8
[Apparent_powerM] => 0
[Active_energyP] => 3205596
[Active_energyM] => 9173349.4
[Reactive_energyP] => 4877916.9
[Reactive_energyM] => 2151272.1
[Apparent_energyP] => 4316418
[Apparent_energyM] => 10621445.8
[Current_L1] => 1.518
[Current_L2] => 1.282
[Current_L3] => 1.38
[Frequency] => 49.972
[Voltage_L1] => 232.258
[Voltage_L2] => 230.686
[Voltage_L3] => 233.316
[Active_powerP_L1] => 326.5
[Active_powerM_L1] => 0
[Active_powerP_L2] => 73.9
[Active_powerM_L2] => 0
[Active_powerP_L3] => 73
[Active_powerM_L3] => 0
[Regler] => 22
[Objekt] => WR-KSEM
[WattstundenGesamtHeute] => 0
[ZusatzQuery] => Dashboard Erzeugung=,Bezug=472.4,Einspeisung=0,Gesamtverbrauch=472.4 1679248391
[Timestamp] => 1679248397
[Monat] => 3
[Woche] => 11
[Wochentag] => Sonntag
[Datum] => 19.03.2023
[Uhrzeit] => 18:53:17
[InfluxAdresse] =>
[InfluxPort] => 8086
[InfluxUser] =>
[InfluxPassword] =>
[InfluxDBName] => solaranzeige3
[InfluxDaylight] =>
[InfluxDBLokal] => solaranzeige3
[Demodaten] =>
)
]
19.03. 18:53:22 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => 'http://localhost/write?db=solaranzeige3&precision=s',
'content_type' => 'application/json',
'http_code' => 400,
'header_size' => 433,
'request_size' => 835,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.013607,
'namelookup_time' => 0.000108,
'connect_time' => 0.000111,
'pretransfer_time' => 0.000305,
'size_upload' => 677.0,
'size_download' => 156.0,
'speed_download' => 12000.0,
'speed_upload' => 52076.0,
'download_content_length' => 156.0,
'upload_content_length' => 677.0,
'starttransfer_time' => 0.013523,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 40648,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 112,
'connect_time_us' => 111,
'namelookup_time_us' => 108,
'pretransfer_time_us' => 305,
'redirect_time_us' => 0,
'starttransfer_time_us' => 13523,
'total_time_us' => 13607,
)
19.03. 18:53:27 -Multi-Regler-Ausgang. -3
19.03. 18:53:27 -OK. Datenübertragung erfolgreich.
19.03. 18:53:27 |---------------- Stop kostal_meter.php -------------------
Entweder ich werde senil, weil ich schon wieder etwas vergessen habe, oder es hat sich wieder etwas dummes bei mir eingeschlichen (wäre nicht das erste mal).
Ich wünsche dir, du hast mehr Glück.