-
[Support] SasaKaranovic - OpenFan Controller
That worked, thankyou very much. Now, when no profile is assigned to a fan, it starts. when I add a profile to any fan, I get this error: pr 27 2025 13:54:18.599 pid:7 start.py 58 DEBUG Setting fan OpenFAN/Fan/1 to 50% PWM based on sensor temperature of 24°C Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 198, in _new_conn sock = connection.create_connection( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 85, in create_connection raise err File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 793, in urlopen response = self._make_request( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 496, in _make_request conn.request( File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 400, in request self.endheaders() File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output self.send(msg) File "/usr/lib/python3.10/http/client.py", line 976, in send self.connect() File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 238, in connect self.sock = self._new_conn() File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 213, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x15291b8ead10>: Failed to establish a new connection: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 515, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.xx.xx', port=3000): Max retries exceeded with url: /api/v0/fan/1/set?value=50 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15291b8ead10>: Failed to establish a new connection: [Errno 111] Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/OpenFanService/start.py", line 138, in <module> main(None, None, None, None, None) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/mnt/OpenFanService/start.py", line 135, in main OpenFan.run_forever(live_reload=arg_live_reload) File "/mnt/OpenFanService/start.py", line 103, in run_forever self.update_fan_controls() File "/mnt/OpenFanService/start.py", line 37, in update_fan_controls self.update_fan(fan) File "/mnt/OpenFanService/start.py", line 59, in update_fan return self.openfan_client.set_fan_pwm(fanData['Identifier'], fan_value) File "/mnt/OpenFanService/openfan_client.py", line 39, in set_fan_pwm r = requests.get(f'{self.api_url}/fan/{fan}/set?value={pwm}', verify=False, timeout=(0.5, 1)) File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 700, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.xx.xx', port=3000): Max retries exceeded with url: /api/v0/fan/1/set?value=50 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15291b8ead10>: Failed to establish a new connection: [Errno 111] Connection refused'))
-
[Support] SasaKaranovic - OpenFan Controller
What exactly did you change? I am having the same 'error parsing json file/error: expecting value' issues as other. I have swapped some stuff .json and .yaml stuff around, but I have no experiance with anything beyond very basic stuff with dockers, so I really have almost no idea what to do. Very frustrating. The controller seems to be working fine, but i cant figuure out the service.
anon0276
Members
-
Joined
-
Last visited