dhrone / pydPiper

A general purpose program to display song metadata on LCD and OLED devices
MIT License
78 stars 36 forks source link

Volumio 3.695 has a socket.io update #139

Open SimonF-boop opened 1 month ago

SimonF-boop commented 1 month ago

Hi

Volumio's recent 3.695 release included an update to socket.io v 2.3.0

https://community.volumio.com/t/volumio-changelog/1446

This seems to have broken the player state reporting. My current setup just shows a working clock, but nothing else is ever shown no matter what the player is doing. Rolling back to a version before the socket.io update and normal service is resumed.

from: sudo journalctl -f

Jul 24 18:19:00 volumio docker[27917]: pydPiper starting
Jul 24 18:19:00 volumio volumio[1034]: verbose: New Socket.io Connection to localhost:3000 from 127.0.0.1 UA: python-requests/2.18.4 Engine version: 3 Transport: polling Total Clients: 10
Jul 24 18:19:00 volumio docker[27917]: Exception in thread Thread-2:
Jul 24 18:19:00 volumio docker[27917]: Traceback (most recent call last):
Jul 24 18:19:00 volumio docker[27917]:   File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
Jul 24 18:19:00 volumio docker[27917]:     self.run()
Jul 24 18:19:00 volumio docker[27917]:   File "/usr/lib/python2.7/threading.py", line 505, in run
Jul 24 18:19:00 volumio docker[27917]:     self.__target(*self.__args, **self.__kwargs)
Jul 24 18:19:00 volumio docker[27917]:   File "/app/sources/musicdata_volumio2.py", line 43, in run
Jul 24 18:19:00 volumio docker[27917]:     with SocketIO(self.server, self.port) as socketIO:
Jul 24 18:19:00 volumio docker[27917]:   File "/usr/local/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 353, in __init__
Jul 24 18:19:00 volumio docker[27917]:     resource, hurry_interval_in_seconds, **kw)
Jul 24 18:19:00 volumio docker[27917]:   File "/usr/local/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 54, in __init__
Jul 24 18:19:00 volumio docker[27917]:     self._transport
Jul 24 18:19:00 volumio docker[27917]:   File "/usr/local/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 62, in _transport
Jul 24 18:19:00 volumio docker[27917]:     self._engineIO_session = self._get_engineIO_session()
Jul 24 18:19:00 volumio docker[27917]:   File "/usr/local/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 76, in _get_engineIO_session
Jul 24 18:19:00 volumio docker[27917]:     transport.recv_packet())
Jul 24 18:19:00 volumio docker[27917]: StopIteration

Hope you can resolve this :)

Cheers

Simon