legrosmanu / rest-api-squeezebox

This REST API is a translation of the slimserver / Logitech squeezebox server JSON RPC API.
Apache License 2.0
7 stars 1 forks source link

UUID empty for squeezelite-based player #2

Open Tedall opened 5 years ago

Tedall commented 5 years ago

In a mixed environment with several squeezebox radios and two squeezelite-players (based on max2play), the UUIDs of the squeezelite-players are always NULL and the very first player is returned in the JSON package multiple times (i.e. two times as for each active squeezelite-player).

Output of /players (excerpt). Please not the difference in seconds_played. Maybe it would be a workaround to use the MAC address instead of the UUID as identifier for api-calls (similar to the squeezebox CLI)?

{"uuid":null,"name":"LivingRoom","id":"b8:27:eb:XX:XX:XX","ip":"192.168.188.64:40156","model":"SqueezeLite","firmware_version":"Max2Play v1.0.2 based on v1.8.4-726","signal_strength":0,"play_state":"play","mixer":{"power":"on","volume":"10","bass":"50","treble":"50"},"song_currently_played":{"index_in_playlist":"24","seconds_played":9.3465001449585,"duration":226.25,"artist":"***","album":"***","title":"***","is_remote":false,"path":"***.mp3"}},{"uuid":null,"name":"LivingRoom","id":"b8:27:eb:XX:XX:XX","ip":"192.168.188.64:40156","model":"SqueezeLite","firmware_version":"Max2Play v1.0.2 based on v1.8.4-726","signal_strength":0,"play_state":"play","mixer":{"power":"on","volume":"10","bass":"50","treble":"50"},"song_currently_played":{"index_in_playlist":"24","seconds_played":9.40960620498657,"duration":226.25,"artist":"***","album":"***","title":"***","is_remote":false,"path":"***.mp3"}}]

ddurieux commented 5 years ago

Same problem with squeezelite

ddurieux commented 5 years ago

And with stream player (http://ip:9000/stream.mp3)

legrosmanu commented 5 years ago

Hello,

I am not available to continue this project currently. Feel free to do a pull request 😉

If I had time I would start to investigate to call these cases with the official RPC API just to check if a fix can be done, because finally my API is only an over layer of the official API.

Best regards,

Emmanuel