Hi Marcel,
I just tested this addon (and LMS) for the very first time. It worked so far, but when the LMS server is not started, the script fills the log with:
Code:
13:31:14.664 T:1683997600 NOTICE: plugin.audio.squeezebox --> {} - HTTPConnectionPool(host='192.168.178.60', port=9000): Max retries exceeded with url: /jsonrpc.js (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x5c1db770>: Failed to establish a new connection: [Errno 113] No route to host',)) - {'params': ['b8:27:eb:f5:50:8a', ['status', '-', '1', 'tags:u']], 'id': 1, 'method': 'slim.request'}
13:31:17.703 T:1683997600 WARNING: plugin.audio.squeezebox --> Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.squeezebox/resources/lib/lmsserver.py", line 228, in get_json
response = requests.get(url, data=json.dumps(params), timeout=20)
File "/storage/.kodi/addons/script.module.requests/lib/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/storage/.kodi/addons/script.module.requests/lib/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/storage/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/storage/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/storage/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 487, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='192.168.178.60', port=9000): Max retries exceeded with url: /jsonrpc.js (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x5c1db750>: Failed to establish a new connection: [Errno 113] No route to host',))
13:31:17.704 T:1683997600 ERROR: plugin.audio.squeezebox --> Exception in lmsserver ! --> HTTPConnectionPool(host='192.168.178.60', port=9000): Max retries exceeded with url: /jsonrpc.js (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x5c1db750>: Failed to establish a new connection: [Errno 113] No route to host',))
13:31:17.704 T:1683997600 NOTICE: plugin.audio.squeezebox --> Server is offline or connection error...
It would be nice, when squeezebox is only searching for a LMS server when it is run by the user.
Thx