Es scheint, als ob Fronius mit dem letzten FW Update die API Parameter geändert hat. Ich bekomme laufend folgende Meldungen:
Code: Alles auswählen
2023-10-06 15:50:12: PID: 2667: **** FATAL ********************************* (LV0)
2023-10-06 15:50:12: PID: 2667: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-10-06 15:50:12: PID: 2667: **** FATAL ********************************* (LV0)
2023-10-06 15:50:11: PID: 4449: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
2667
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.1.59', port=80): Max retries exceeded with url: /solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0&DataCollection=MeterRealtimeData (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x74d20f10>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
raise ConnectionError(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 487, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 609, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 488, in request
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 501, in get
timeout=5)
File "/var/www/html/openWB/packages/modules/devices/fronius/counter_sm.py", line 63, in __update_variant_0_1
counter_state = self.__update_variant_0_1(session)
File "/var/www/html/openWB/packages/modules/devices/fronius/counter_sm.py", line 36, in update
self.components[component].update()
File "/var/www/html/openWB/packages/modules/devices/fronius/device.py", line 63, in update
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.59', port=80): Max retries exceeded with url: /solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0&DataCollection=MeterRealtimeData (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x74d20f10>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
raise MaxRetryError(_pool, url, error or ResponseError(cause))
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/retry.py", line 592, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 423, in send
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x74d20f10>: Failed to establish a new connection: [Errno 101] Network is unreachable
self, "Failed to establish a new connection: %s" % e
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 187, in _new_conn
conn = self._new_conn()
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 205, in connect
self.connect()
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 239, in request
conn.request(method, url, **httplib_request_kw)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 398, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 710, in urlopen
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
OSError: [Errno 101] Network is unreachable
sock.connect(sa)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/connection.py", line 95, in create_connection
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 175, in _new_conn
Traceback (most recent call last):
2023-10-06 15:50:04: PID: 3746: modules.common.fault_state: Fronius SM Zähler: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server http://192.168.1.59/solar_api/v1/GetMeterRealtimeData.cgi?Scope=Device&DeviceId=0&DataCollection=MeterRealtimeData ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback:
2023-10-06 15:50:03: PID: 2668: ##### cron5min.sh finished ##### (LV0)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.1.59', port=80): Max retries exceeded with url: /solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x74d20570>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
raise ConnectionError(e, request=request)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 487, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 609, in send
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 488, in request
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 501, in get
timeout=5).json()
File "/var/www/html/openWB/packages/modules/devices/fronius/bat.py", line 33, in update
self.components[component].update()
File "/var/www/html/openWB/packages/modules/devices/fronius/device.py", line 63, in update
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.59', port=80): Max retries exceeded with url: /solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x74d20570>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
raise MaxRetryError(_pool, url, error or ResponseError(cause))
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/retry.py", line 592, in increment
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 786, in urlopen
timeout=timeout
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 423, in send
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x74d20570>: Failed to establish a new connection: [Errno 101] Network is unreachable
self, "Failed to establish a new connection: %s" % e
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 187, in _new_conn
conn = self._new_conn()
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 205, in connect
self.connect()
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 239, in request
conn.request(method, url, **httplib_request_kw)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 398, in _make_request
chunked=chunked,
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 710, in urlopen
Traceback (most recent call last):
During handling of the above exception, another exception occurred:
OSError: [Errno 101] Network is unreachable
sock.connect(sa)
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/util/connection.py", line 95, in create_connection
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/pi/.local/lib/python3.5/site-packages/urllib3/connection.py", line 175, in _new_conn
Traceback (most recent call last):
2023-10-06 15:50:03: PID: 3746: modules.common.fault_state: Fronius Speicher: FaultState FaultStateLevel.ERROR, FaultStr Die Verbindung zum Server http://192.168.1.59/solar_api/v1/GetPowerFlowRealtimeData.fcgi?Scope=System ist fehlgeschlagen. Überprüfe Adresse und Netzwerk., Traceback:
2023-10-06 15:50:01: PID: 2921: Starting OpenWB services (LV0)
RTNETLINK answers: Network is unreachable
2023-10-06 15:50:01: PID: 2668: ##### cron5min.sh started ##### (LV0)
2023-10-06 15:49:52: PID: 760: **** FATAL ********************************* (LV0)
2023-10-06 15:49:52: PID: 760: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-10-06 15:49:52: PID: 760: **** FATAL ********************************* (LV0)
2023-10-06 15:49:51: PID: 2293: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
760
2023-10-06 15:49:33: PID: 31503: **** FATAL ********************************* (LV0)
2023-10-06 15:49:33: PID: 31503: **** FATAL Regulation loop needs 12 seconds (LV0)
2023-10-06 15:49:33: PID: 31503: **** FATAL ********************************* (LV0)
2023-10-06 15:49:31: PID: 483: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
Die direkte Abfrage über http funktioniert aber und das API ist enabled.
Code: Alles auswählen
{
"Body" : {
"Data" : {
"0" : {
"Current_AC_Phase_1" : -1.3700000000000001,
"Current_AC_Phase_2" : 4.343,
"Current_AC_Phase_3" : -2.4409999999999998,
"Current_AC_Sum" : 0.53200000000000003,
"Details" : {
"Manufacturer" : "Fronius",
"Model" : "Smart Meter TS 65A-3",
"Serial" : "2979136943"
},
"Enable" : 1,
"EnergyReactive_VArAC_Sum_Consumed" : 39137.0,
"EnergyReactive_VArAC_Sum_Produced" : 1565231.0,
"EnergyReal_WAC_Minus_Absolute" : 716051.0,
"EnergyReal_WAC_Plus_Absolute" : 2094650.9999999998,
"EnergyReal_WAC_Sum_Consumed" : 2094650.9999999998,
"EnergyReal_WAC_Sum_Produced" : 716051.0,
"Frequency_Phase_Average" : 50.0,
"Meter_Location_Current" : 0.0,
"PowerApparent_S_Phase_1" : 280.80000000000001,
"PowerApparent_S_Phase_2" : 836.29999999999995,
"PowerApparent_S_Phase_3" : 572.60000000000002,
"PowerApparent_S_Sum" : 1689.9000000000001,
"PowerFactor_Phase_1" : -0.76400000000000001,
"PowerFactor_Phase_2" : 0.81200000000000006,
"PowerFactor_Phase_3" : -0.98299999999999998,
"PowerFactor_Sum" : 0.0,
"PowerReactive_Q_Phase_1" : -139.0,
"PowerReactive_Q_Phase_2" : -218.30000000000001,
"PowerReactive_Q_Phase_3" : -85.5,
"PowerReactive_Q_Sum" : -442.89999999999998,
"PowerReal_P_Phase_1" : -244.0,
"PowerReal_P_Phase_2" : 807.29999999999995,
"PowerReal_P_Phase_3" : -566.20000000000005,
"PowerReal_P_Sum" : -2.8999999999999999,
"TimeStamp" : 1723994901,
"Visible" : 1,
"Voltage_AC_PhaseToPhase_12" : 403.19999999999999,
"Voltage_AC_PhaseToPhase_23" : 402.60000000000002,
"Voltage_AC_PhaseToPhase_31" : 403.89999999999998,
"Voltage_AC_Phase_1" : 233.59999999999999,
"Voltage_AC_Phase_2" : 229.69999999999999,
"Voltage_AC_Phase_3" : 235.19999999999999
}
}
},
"Head" : {
"RequestArguments" : {
"Scope" : "System"
},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2024-08-18T15:28:22+00:00"
}
}