Jetzt benötige ich etwas Hilfe, denn über den Browser kann ich Werte bekommen.
Grüße Andy
über die url http://192.168.178.57:3480/data_request ... ormat=json
bekomme ich folgende Anzeige:
Code: Alles auswählen
{ "full": 1, "version": "*1.7.2335*", "model": "Sercomm NA301", "zwave_heal": 1, "temperature": "C", "skin": "sonnenbaterie", "serial_number": "46158733", "fwd1": "sonnen-us-oem-relay12.mios.com", "fwd2": "sonnen-us-oem-relay11.mios.com", "mode": 1, "sections": [ { "name": "My Home", "id": 1 } ], "rooms": [ { "name": "Sonnenbatterie", "id": 1, "section": 1 } ], "scenes": [ ], "devices": [ { "name": "BHKW 1", "altid": "CHP-1", "id": 26, "category": 0, "subcategory": -1, "room": 1, "parent": 19, "watts": "0", "chppeakpower": "0" }, { "name": "Eigenverbrauchsrelais 1", "altid": "OwnConsumptionRelay-1", "id": 24, "category": 0, "subcategory": -1, "room": 1, "parent": 19, "automode": "0", "duration": "30", "threshold": "1500", "status": "0" }, { "name": "Gesamtverbauch 1", "altid": "TotalConsumption-1", "id": 23, "category": 0, "subcategory": -1, "room": 1, "parent": 19, "watts": "415.7", "wattsl1": "213.7", "wattsl2": "107.0", "wattsl3": "95.0", "maxwattsl1": "216", "maxwattsl2": "112", "maxwattsl3": "97", "iscountercumulated": "0" }, { "name": "Luftentfeuchter", "altid": "4", "id": 18, "category": 3, "subcategory": 1, "room": 0, "parent": 1, "status": "0", "watts": "0.0", "kwh": "87.0200", "pulse": "2228224", "commFailure": "0", "state": -1, "comment": "" }, { "name": "Photovoltaik 1", "altid": "Photovoltaics-1", "id": 20, "category": 0, "subcategory": -1, "room": 1, "parent": 19, "watts": "639.6", "maxfeedin": "100", "pvpeakpower": "4.59" },
{ "name": "Sonnenbatterie #19514", "altid": "", "id": 19, "category": 0, "subcategory": -1, "room": 1, "parent": 0, "watts": "0", "wattsdischarge": "0.0", "wattscharge": "226.0", "soc": "44.0", "operationmode": "13", "temperature": "19.86555", "chargingcontactor": "-1", "consumptioncontactor": "FALSE", "nocharging": "FALSE", "capacity": "0041", "chargingpowermanual": "2475", "chargingbuffer": "0", "switchingthresholdgrid": "-1", "switchingthresholdbattery": "-1", "serialnumber": "19514", "versionplc": "5.00 (435)", "nominalvoltage": "44.8", "priority": "1", "lowerlimitsoc": "22", "location": "DE-86462", "lastoperationmodechange": "1649573809", "lastvaliddata": "1649573809", "operatingmode": "13", "autosocket1": "0", "autosocket2": "0", "autosocket3": "0" },
{ "name": "Waermepumpe 1", "altid": "Heatpump-1", "id": 25, "category": 0, "subcategory": -1, "room": 1, "parent": 19, "isheatpumpgrid": "FALSE", "isheatpumpbattery": "FALSE", "isheatpumpinstalled": "0" } ], "categories": [ { "name": "On\/Off Switch", "id": 3 } ], "ir": 0, "irtx": "", "loadtime": 1649575026, "dataversion": 575026078, "state": 1, "comment": "Sonnenbatterie #19514[19]: Running Lua Startup" }
Die 2.user.config.php habe ich folgendermaßen editiert:
Code: Alles auswählen
$WR_IP = "192.168.178.57";
$WR_Port = "3480";
$WR_Adresse = "1";
Code: Alles auswählen
$'URL = "data_request?id=sdata&output_format=json";
10.04. 09:37:11 * -Daten zur lokalen InfluxDB [ solaranzeige ] gesendet.
10.04. 09:37:11 -Multi-Regler-Ausgang. -2
10.04. 09:37:11 -OK. Datenübertragung erfolgreich.
10.04. 09:37:11 |---------------- Stop fronius_symo_serie.php ---------------
10.04. 09:37:11 -Verarbeitung von: '2.user.config.php' Regler: 25
10.04. 09:37:11 |---------------- Start sonnen_batterie.php ------------------
10.04. 09:37:11 * -Daten zur lokalen InfluxDB [ solaranzeige2 ] gesendet.
10.04. 09:37:11 -Multi-Regler-Ausgang. 7
10.04. 09:37:18 -OK. Datenübertragung erfolgreich.
10.04. 09:37:18 -WattstundenGesamtHeute: 0
10.04. 09:37:18 |---------------- Stop sonnen_batterie.php ------------------
10.04. 09:37:18 -Multi Regler Auslesen [Stop].