• 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 20
Squeezebox for Kodi
Great plug-in.

I'm not sure if this is a bug or I'm an idiot, but every time I start a song it plays back for a couple seconds and then stops.

And when I say stop I don't mean it crashes. Something is actually telling squeezelite/server to stop playback. If I hit play a second time the song starts form the beginning and plays out fine.

This is with the latest version of the plugin on Milhouse's #9xxx RPi2 builds.

Am I missing something simple or is it log time?

-NT
Reply
Just for future reference -

I do not know what is actually causing the issue nor have I really looked or tracked Kodi's messaging, but commenting out:

code:
    def onPlayBackStopped(self):
        '''Kodi event fired when playback is stopped'''
        if self.is_playing:
            self.lmsserver.stop()
            log_msg("playback stopped")
        self.is_playing = False

from the plugin's player_monitor.py corrected my afore mentioned issue of the playback being forced stopped.

Kodi 18 Milhouse #0910, RPi3
Reply
(2017-05-11, 21:25)skarragallagher Wrote: The server is indeed online. The IP address and Port is correct. In Xsqueeze I had to change the CLI port but it is not the default but I think this addon doesn't connect to the CLI?

Also your addon works beautifully on my windows box without doing anything but installing.
 Hi
having a questions. which port do i have to use:
cli port 9090
or http 9000?

thanks
Reply
Hi
looks likOkt 07 09:28:51

journalctl 
                     mediacenter[374]: squeezelite: no process found
 Okt 07 09:28:51 mediacenter[374]: squeezelite-i64: no process found
Okt 07 09:28:51  mediacenter[374]: squeezelite-x86: no process found
Okt 07 09:28:54  mediacenter[374]: Usage: /home/osmc/.kodi/addons/plugin.audio.squeezebox/resources/lib/bin/linux/squeezelite-arm [options]
Okt 07 09:28:54  mediacenter[374]:   -M <modelname>        Set the squeezelite player model name sent to the server (default: SqueezeLite)
Okt 07 09:28:54  mediacenter[374]:   -r <rates>[:<delay>]        Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms
e squeezelite is not starting



kodi log is saying:

09:28:22.432 T:1649406704   DEBUG: onExecutionDone(6, /home/osmc/.kodi/addons/plugin.video.amazon-test/service.py)
09:28:22.517 T:1607201520  NOTICE: plugin.audio.squeezebox --> started webproxy at port 51100
09:28:22.930 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting definitions
09:28:22.930 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: trying to load setting definitions from old format...
09:28:22.933 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values
09:28:22.933 T:1431302896  NOTICE: plugin.audio.squeezebox --> Waiting for mac address...
09:28:27.223 T:1657795312  NOTICE: Previous line repeats 3 times.
..
09:28:27.348 T:1431302896  NOTICE: plugin.audio.squeezebox --> Waiting for mac address...
--


09:28:51.742 T:1431302896  NOTICE: plugin.audio.squeezebox --> discovery: [{'from': ('192.168.0.9', 3483), 'host': '192.168.0.9', 'data': 'EJSON\x049000', 'port': 9000}]
09:28:51.747 T:1431302896   DEBUG: Skin Helper Simplecache --> Initialized
09:28:51.748 T:1431302896  NOTICE: plugin.audio.squeezebox --> LMS server discovered - host: 192.168.0.9 - port: 9000
09:28:51.749 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting definitions
09:28:51.749 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: trying to load setting definitions from old format...
09:28:51.751 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values
09:28:51.779 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting definitions
09:28:51.779 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: trying to load setting definitions from old format...
09:28:51.780 T:1431302896   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values

..

09:28:53.938 T:1431302896  NOTICE: plugin.audio.squeezebox --> Starting Squeezelite binary - Using audio device: iec958:CARD=DAC,DEV=0
09:28:54.007 T:1431302896  NOTICE: plugin.audio.squeezebox --> Start Monitoring events for playerid b8:27:eb:23:a2:e0
09:28:54.017 T:1452405488   DEBUG: CWebServer[8080]: request received for /jsonrpc?JSONRPC.Ping
09:28:54.035 T:1452405488   DEBUG: CWebServer[8080]: request received for /jsonrpc?Application.GetProperties
09:28:54.049 T:1452405488   DEBUG: CWebServer[8080]: request received for /jsonrpc?Player.GetActivePlayers
09:28:54.107 T:1431302896   DEBUG: plugin.audio.squeezebox --> Traceback (most recent call last):
                                              File "/home/osmc/.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 "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 72, in get
                                                return request('get', url, params=params, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 58, in request
                                                return session.request(method=method, url=url, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 512, in request
                                                resp = self.send(prep, **send_kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 622, in send
                                                r = adapter.send(request, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 495, in send
                                                raise ConnectionError(err, request=request)
                                            ConnectionError: ('Connection aborted.', BadStatusLine("''",))
09:28:54.107 T:1431302896 WARNING: plugin.audio.squeezebox --> Exception in lmsserver ! --> Server is offline or connection error...
09:28:54.623 T:1431302896   DEBUG: plugin.audio.squeezebox --> Traceback (most recent call last):
                                              File "/home/osmc/.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 "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 72, in get
                                                return request('get', url, params=params, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 58, in request
                                                return session.request(method=method, url=url, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 512, in request
                                                resp = self.send(prep, **send_kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 622, in send
                                                r = adapter.send(request, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 495, in send
                                                raise ConnectionError(err, request=request)
                                            ConnectionError: ('Connection aborted.', BadStatusLine("''",))
09:28:54.624 T:1431302896 WARNING: plugin.audio.squeezebox --> Exception in lmsserver ! --> Server is offline or connection error...
09:28:54.768 T:1452405488   DEBUG: CWebServer[8080]: request received for /jsonrpc?JSONRPC.Ping
09:28:54.783 T:1452405488   DEBUG: CWebServer[8080]: request received for /jsonrpc?Application.GetProperties
09:28:54.797 T:1452405488   DEBUG: CWebServer[8080]: request received for /jsonrpc?Player.GetActivePlayers
09:28:55.139 T:1431302896   DEBUG: plugin.audio.squeezebox --> Traceback (most recent call last):
                                              File "/home/osmc/.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 "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 72, in get
                                                return request('get', url, params=params, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 58, in request
                                                return session.request(method=method, url=url, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 512, in request
                                                resp = self.send(prep, **send_kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 622, in send
                                                r = adapter.send(request, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 495, in send
                                                raise ConnectionError(err, request=request)
                                            ConnectionError: ('Connection aborted.', BadStatusLine("''",))


any help highly appreciated!!

Thanks
Reply
(2018-10-07, 09:44)[email protected] Wrote: any help highly appreciated!!
After 50+ posts you should be aware that we are not fond of plastering log files/snippets onto the forum.
Read the red text again above the Post Reply button...
Reply
(2018-10-07, 09:47)Klojum Wrote:
(2018-10-07, 09:44)[email protected] Wrote: any help highly appreciated!!
After 50+ posts you should be aware that we are not fond of plastering log files/snippets onto the forum.
Read the red text again above the Post Reply button... 
sorry, ...thought only valid for whole logs....not snippits of respective app....
will update
Reply
Hi

added: https://paste.kodi.tv/avaweticog.kodi

could you please check the squeeze error?

Thanks
Reply
It looks like this plugin is exactly what I was looking for. Unfortunately I have not successfully been able to get it working.

I have a LMS server on 7.9.1 (initially tried at 7.9.0, upgrade did not make a difference). A squeezebox boom and a picoreplayer are working fine on this LMS install. This pi I am trying to deploy with Kodi and squeezebox for Kodi, actually used to be a picoreplayer working great. I have installed Libreelec fresh and set up kodi to work with my Hifiberry. After that I installed the mediatools from the Libreelec repo. I Then installed the zip file from the original post to add the repo. From the repo I installed Squeezebox for Kodi. After checking some logs and packet captures, it looks like the JSON API call goes wrong somehow.

This is what I see on my LMS server continuously:
Code:
[18-10-28 16:01:40.6589] Slim::Web::JSONRPC::requestMethod (455) b8:27:eb:46:37:69: request not dispatchable!
Before upgrading LMS, I actually noticed a different request method, even though the request (I checked in the pcaps) is exactly the same:
Code:
[18-10-28 15:57:39.3551] Slim::Web::JSONRPC::requestMethod (443) b8:27:eb:46:37:69: request not dispatchable!
In the Kodi log it shows:
Code:
16:02:28.040 T:1560458144 WARNING: plugin.audio.squeezebox --> Exception in lmsserver ! --> Server is offline or connection error...
Looking at the packet captures, I see an API request directly after boot with what I assume is a power on notification from Squeezelite to LMS:
Code:
{"params": ["b8:27:eb:46:37:69", ["power", "1"]], "id": 1, "method": "slim.request"}
After that, I continuously see the following API request:
Code:
{"params": ["b8:27:eb:46:37:69", ["status", "-", "1", "tags:u"]], "id": 1, "method": "slim.request"}

Any clues?
Reply
It seems the notification "request not dispatchable" indicated that the plugin was issuing requests regarding a player that was not yet registered.

In order for the player to register correctly, the most important thing I needed to do was to disable audio keep-alive in Kodi. Because Kodi was hogging ALSA, Squeezelite was unable to start properly and did not register. I changed so much around at this point that I am unsure if I have changed anything else at this point. Just wanted to put this here for future reference.

What would also have been very helpful is understanding how all communication is flowing. I believe it to be as follows:

Raspberry Pi                                                        LMS Server

Squeezelite <---------------port 3843-----------------> slimproto api
Squeezebox for kodi plugin <------ port 9000 -----> Web API

There seems to be no direct communication between the squeezebox for Kodi plugin and Squeezelite, other than configuring the startup parameters for Squeezelite (e.g. LMS server IP and auto start)
Reply
thanks to op/marcelveldt, kodi team, and others posting to this thread.

to give hope to others I have this kodi/addon working with the following :

odroid c2  w/32g micro-sd and usb sound dongle w/3.5mm out 
libreElec 8.2.5 w/ kodi 17.6
multimedia tools - 8.2.105; main menu,addons,install from repository,libreelec add-ons,program addons.
squeezebox 1.0.19; main menu,addons,install from repository,marcelveldt's beta repository,music add-ons.
... one needs to add marcelveldt's repo via post #1 before adding 'squeezebox' addon.
configure via, main menu,addons,my add-ons,music add-ons.
I selected my usb device.
rebooted kodi.

notes: I need to stop squeezelite via squeezebox before playing a movie/video I suspect as tolot noted in #133.
restart squeezebox once movie stops.

extra codos that lyrics works.
'picture slideshow screensaver' works while on the main kodi menu screen, even showing 'current playing' album cover and song name even via 'radio paradise' flac stream.
kodi/squeezebox syncs well with my other 3 rpi-squeezelites for whole house music and control ! nice.

nice I can have the 4k tv on, listening to music with artwork being displayed.
Reply
I installed your repo and the addon. Also instaklled multimedia tools but I cant get the squeezelite player to be seen from LMS. Please help. Thanks.

Log here - https://paste.kodi.tv/mejehekedu.kodi
Reply
Did a fresh install. I changed a few settings in kodi system settings / audio output. Like setting 'keep audio device alive' to off and finally got it visible as a player. But audio just plays briefly on starting playback and then audio drops. Playback is on.

Debug log here - https://paste.kodi.tv/avecenibis.kodi
Reply
Its an awesome plugin. Would be great to have this to work. Any help possible?
Reply
Hi extremaudio,

do you find new infos about this issue? I have the same promlem. Researched a little bit
and it seems like its a problem with the same use of kodi an squeezelight over hdmi.
Most people where the combination kodi/squeezelight is working are user of a seperate sound device
beside hdmi e.g. usb or i2s.

But I have the same problems that I only have a TV in my bedroom and want to use kodi and sueezelight both over the TV speaker
and use both over hdmi.

What is your stae of things?

Greetings Elluminatus
Reply
There seems to be some info on how to setup hdmi out here but I'm not savvy enough to mess with libreelec to this point.
https://forums.plex.tv/t/howto-running-l...lec/101063
Seems like hdmi is not available when using default.
Reply
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 20

Logout Mark Read Team Forum Stats Members Help
Squeezebox for Kodi2