[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby totyc » Mon Dec 24 2018 20:55

Hi,

i have some founding ...

1. When changing output device in volumio UI ( Playback Option / Output Device),
there is a need to "restart" VSC2, eg. ON->OFF->ON. In this case startconnect.sh will be correctly updated. If it is not correctly updated,
volspotconnect2 daemon will hang up in never ending loop ....
2. The most safety way to have running VSC2 is next :
- STOP VSC2 plugin
- CHANGE OUTPUT device
- REBOOT
- START VSC2 plugin
3. Topping D30 USB DAC issue is probably related to "BAD" mixer-name 'XMOS Clock Selector,1'. If i choose in output device 'XMOS Clock Selector' instead of 'XMOS Clock Selector,1' daemon works as expected.
4. Change plugin settings in UI ( volume level from 100% to 50%), after pressing SAVE, generate message "Configuration has been sucessfully updated", but the volume level is still 100%.

here is : /data/plugins/music_service/volspotconnect2/startconnect.sh :

#this file is generated by the plugin. You should not edit it unless you know what you do. It will be overwrite by the plugin each time a change in config is detected
cd /data/plugins/music_service/volspotconnect2
./vollibrespot -b 320 -c /tmp \
--disable-audio-cache \
--name 'vu7Volumio' --initial-volume 100\
--device plughw:2 \
--mixer alsa \
--mixer-name 'XMOS Clock Selector' --mixer-card 'hw:2' \
--verbose


and here is the log sudo journalctl -f -o cat -u volspotconnect2.service :

[Vollibrespot] : Connecting to AP "gew1-accesspoint-b-d4sn.ap.spotify.com:4070"
[Vollibrespot] : Authenticated as "totyc" !
[Vollibrespot] : Setting up new mixer: card:hw:2 mixer:XMOS Clock Selector index:0
[Vollibrespot] : Alsa min: 0 (MilliBel(-12700)[dB]) -- max: 127 (MilliBel(0)[dB]) HW: true
[Vollibrespot] : Alsa min-db is not SND_CTL_TLV_DB_GAIN_MUTE!!
[Vollibrespot] : Using alsa sink
[Vollibrespot] : Current alsa volume: 127[i64] MilliBel(0)
[Vollibrespot] : Mapping volume [100.000%] 65535 [u16] ->> Alsa [0.000%] 0 [dB]
[Vollibrespot] : Metadata pipe established
[Vollibrespot] : Country: "HU"
[Vollibrespot] : SessionActive!
[Vollibrespot] : Loading track "London Calling - Remastered" with Spotify URI "spotify:track:5jzma6gCzYtKB1DbEwFZKH"
[Vollibrespot] : Track "London Calling - Remastered" loaded


Merry Christmas !
Config : VOLUMIO 2.513 / ODROID-C2 with VU7

Best Regards,

totyc
Random avatar
totyc
Serious Listener
Serious Listener
 
Posts: 68
Joined: Wed Oct 05 2016 17:08
Location: Budapest, Hungary

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby ashthespy » Tue Dec 25 2018 13:21

totyc wrote:Hi,

i have some founding ...

1. When changing output device in volumio UI ( Playback Option / Output Device),
there is a need to "restart" VSC2, eg. ON->OFF->ON. In this case startconnect.sh will be correctly updated. If it is not correctly updated,
volspotconnect2 daemon will hang up in never ending loop ....

I believe this is due to a current limitation with the way Volumio handles output devices, and keeping compatibility with balbuze other equaliser plugins. There is a manual timer. But yeah, it should trigger on an event, and not need manual intervention - will fix this!


2. The most safety way to have running VSC2 is next :
- STOP VSC2 plugin
- CHANGE OUTPUT device
- REBOOT
- START VSC2 plugin
3. Topping D30 USB DAC issue is probably related to "BAD" mixer-name 'XMOS Clock Selector,1'. If i choose in output device 'XMOS Clock Selector' instead of 'XMOS Clock Selector,1' daemon works as expected.

Has this always been the case - or did this behaviour start only from the 2.513? While it would be easy to strip out the `,1` from the plugin, don't want to add more spaghetti code, if its an error from elsewhere!

4. Change plugin settings in UI ( volume level from 100% to 50%), after pressing SAVE, generate message "Configuration has been sucessfully updated", but the volume level is still 100%.


My mistake here :shock:


Merry Christmas !
User avatar
ashthespy
Objectivist
Objectivist
 
Posts: 288
Joined: Fri Jul 22 2016 08:16


[PLUGIN] Volspotconnect2 - SpotifyConnect for Volumio2

Postby exiton » Thu Mar 14 2019 21:25

Had donated to volumio a long time ago and shelved it. Heard about your plugin when searching for a way to get spotify out of my windows machine via ASIO or similar. Fired up a raspberry pi again with the new volumio and installed your dev plugin. It works great! For Spotify premium subscribers, this is the killer app! Thank you so much!
Random avatar
exiton
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Thu Mar 14 2019 21:21

Previous

Return to Development talks

Who is online

Users browsing this forum: No registered users and 0 guests