Friends, there appears to be an issue with the newer versions of the PIP packages installed with recent installations (due to newer pip versions appearing, nothing to do with MoOde itself!).
Please, log in via ssh to the moode RPi and type:
Take a look if there is a python command that is hogging around 80 ~ 90% of the processor.
For me the python command run by the spotify-connect-web.service crept to around that value over a few hours.
I am not sure if it is the gevent package that got some of its functionality deprecated, or the pylast package that is reported no longer working with python 2.7.
At any rate, if you are seeing this issue, here are instructions to fixing this:
What I have done is downgraded the requirements to the packages that the original spotify-connect-web repo depended upon, and reverted the pywsgi to the wsgi package in the main.py.
With this, I exhibit no CPU usage creep, and everything is, apparently, working as expected. Obviously, your mileage may vary, so please report any issues.
For new users, there is no need to worry, I have changed the instructions to point to the new corrected repositories, so for new installations just following the instructions should be enough.
Hope this helps, best regards,
Rafa.
Please, log in via ssh to the moode RPi and type:
Code:
$ top
For me the python command run by the spotify-connect-web.service crept to around that value over a few hours.
I am not sure if it is the gevent package that got some of its functionality deprecated, or the pylast package that is reported no longer working with python 2.7.
At any rate, if you are seeing this issue, here are instructions to fixing this:
Code:
$ sudo systemctl disable spotify-connect-web.service
$ sudo systemctl stop spotify-connect-web.service
$ pip uninstall gevent
$ pip uninstall pylast
$ cd /home/pi/spotify/spotify-connect-web/
$ rm requirements.txt
$ rm main.py
$ wget https://github.com/RafaPolit/spotify-connect-web/raw/master/requirements.txt
$ wget https://github.com/RafaPolit/spotify-connect-web/raw/master/main.py
$ pip install -r requirements.txt
...(this may take a while)
$ sudo systemctl start spotify-connect-web.service
$ sudo systemctl enable spotify-connect-web.service
What I have done is downgraded the requirements to the packages that the original spotify-connect-web repo depended upon, and reverted the pywsgi to the wsgi package in the main.py.
With this, I exhibit no CPU usage creep, and everything is, apparently, working as expected. Obviously, your mileage may vary, so please report any issues.
For new users, there is no need to worry, I have changed the instructions to point to the new corrected repositories, so for new installations just following the instructions should be enough.
Hope this helps, best regards,
Rafa.