I am building a preview version for LE7 on WeTek Play, and I will post it in my next reply.
Thanks, that's great to hear that! Happy to volunteer for testing
I am building a preview version for LE7 on WeTek Play, and I will post it in my next reply.
Thanks, that's great to hear that! Happy to volunteer for testing
Here is a preview of release 104 of the addon for LE7 on WeTek Play.
Please report if it makes or breaks.
whats the reason this is only for rpi at the moment? any hope of other platforms?
I know upstream only has rpi2/3 but anyone know their reason? is it based on any closed sourced thing spotify onced released or?
marantz
The underlying shared library is not available for x86_64 and aarch64, see eg the spotify-connect-web github
Here is a preview of release 104 of the addon for LE7 on WeTek Play.Please report if it makes or breaks.
Thanks for the update. Unfortunately, it breakes
1) Kodi needs to use other audio in order to hear anything through the add-on
2) Sound still scratches
3) Port 4000 just shows "Loading..." (OK, that is not really an issue but still worth mentioning)
Do you need any logfiles or something?
Hi,
Great addon!
Works nicely, only thing is the volume control is moving from louder to loud when adjusting the volume slider in the Spotify Client (e.g. via port 4000 or mobile phone). Sound in Kodi moves from off/muted/0% to 100%.
I'm using a Hifiberry, could that be the reason?
On the Hifiberry site I found this thread:
201863051-hifiberry-digi-spotify-connect
The last reply says:
In console_callbacks.py I changed the volume setting in playback_volume function definition to mixer.setvolume(0 if volume == 0 else int(round(19.5 * log(volume)-116)))
How can I modify that file in LibreElec?
Thanks,
Robert
Hi this has probably been brought up before but I simply don't have time to read up on the forum. So apologies in advance if I upset anyone.
In the addon settings, changing "initial volume" does not accurately set the volume in ASAP itself.
Changing the settings to 90% actually changes the volume to 65% in alsa as seen in the image below
Hey there,
very nice addon.
Is there a way to use it with a phatDAC on my Raspberry Pi 2 ? It uses the same device-tree-overlay as the hifiberry-dac and the configuration wizard recognizes the card as 'sndrpihifiberry'.
Kodi detects the card and uses it for sound output with no problem. The addon however fails.
If you need special error-messages or log-files, let me know!
fuenfzigccm
Hey there,very nice addon.
Is there a way to use it with a phatDAC on my Raspberry Pi 2 ? It uses the same device-tree-overlay as the hifiberry-dac and the configuration wizard recognizes the card as 'sndrpihifiberry'.
Kodi detects the card and uses it for sound output with no problem. The addon however fails.
If you need special error-messages or log-files, let me know!fuenfzigccm
Hello 50ccm,
I am not sure that Kodi and the addon can share the phatDAC.
A log would be useful
[hr]
Hi this has probably been brought up before but I simply don't have time to read up on the forum. So apologies in advance if I upset anyone.In the addon settings, changing "initial volume" does not accurately set the volume in ASAP itself.
Changing the settings to 90% actually changes the volume to 65% in alsa as seen in the image below
Hello Loggio,
This issue appears to lie with spotify-connect-web and/or the hardware, see here and here.
[hr]
Display More
Hi,Great addon!
Works nicely, only thing is the volume control is moving from louder to loud when adjusting the volume slider in the Spotify Client (e.g. via port 4000 or mobile phone). Sound in Kodi moves from off/muted/0% to 100%.I'm using a Hifiberry, could that be the reason?
On the Hifiberry site I found this thread:
hifiberry digi + spotify connect – HiFiBerry
The last reply says:
In console_callbacks.py I changed the volume setting in playback_volume function definition to mixer.setvolume(0 if volume == 0 else int(round(19.5 * log(volume)-116)))How can I modify that file in LibreElec?
Thanks,
Robert
Hello Robert,
console_callbacks.py lives somewhere in the /storage/.kodi/addons/service.spotify-connect-web/ folder.
You can update it there, and restart the addon to pick up your changes
[hr]
Thanks for the update. Unfortunately, it breakes
1) Kodi needs to use other audio in order to hear anything through the add-on
2) Sound still scratches
3) Port 4000 just shows "Loading..." (OK, that is not really an issue but still worth mentioning)Do you need any logfiles or something?
Thank you for your feedback.
I am having a look at the web server issue.
Assessing WeTeK issues without WeTek hardware will be very complicated for me
Thank you for your feedback.
I am having a look at the web server issue.
Assessing WeTeK issues without WeTek hardware will be very complicated for me
Thx. for your reply. Sure, I understand that this is complicated. Do you have any advice where I should start searching, i.e. log-files or tweaking some settings?
Just tried this addon on my RPi2. Absolutely great Thank you very much!
Do you happen to know whether it will be possible somehow to integrate this addon as some kind of music player? I mean.. that it displays the cover and the controls (which I can see in Webinterface IP:4000) in LibreELEC GUI? So that perhaps even music visualization would be possible, just like as if it is with the kodi music player?
Also I tested it with Yatse remote, and here it's the same: Media controls are not visible, so Yatse and Kodi doesn't seem to notice that music is running actually.
This is not some kind of demand ;). Just want to know if it is/will be possible in the future :).
Also... On my Odroid C2 it is not working, although the Odroid C2 has similar hardware as the Wetek Core/Play. I tried it with this preview release: LibreELEC
Anyways, thank you very much for bringing spotify finally to kodi
Hi infinity85,
I have no plan to implement the feature you request (neither time, nor skills). Improvements are however welcome, especially as github pull requests.
Odroid C2 is aarch64, and the addon only runs on armhf, eg RPi2.
Enjoy!
Thanks for the infos
(just now noticed wetek play is not a S905 aarch64 device )
Best regards!
So I got the spotify_appkey.key and copied it to /storage/.kodi/addons/service.spotify-connect-web then I selected the right ALSA. I am on RPi 2, rebooted it. Nothing happens on port 4000, also it does not show up between devices. What did I miss?
Hello hoppy,
To see what went wrong, type the following command at the console:
journalctl -u service.spotify-connect-web
Hey Awiouy
I'm trying and failing to get this working with my Raspberry Pi 3 + libreelec + kodi
I installed addon using repo but 'Run' option greyed out. I assume because ALSA is not selected? ALSA means nothing to me and there isn't one for me to select
I also tried running the script via SSH and got the following
Loading Spotify library...
Traceback (most recent call last):
File "loader.py", line 3, in <module>
File "runpy.py", line 180, in run_module
File "runpy.py", line 72, in _run_code
File "/storage/spotify-connect-web/main.py", line 14, in <module>
from connect import Connect
File "/storage/spotify-connect-web/connect.py", line 9, in <module>
from console_callbacks import audio_arg_parser, mixer, error_callback, connection_callbacks, debug_callbacks, playback_callbacks, playback_setup
File "/storage/spotify-connect-web/console_callbacks.py", line 24, in <module>
audio_arg_parser.add_argument('--mixer', '-m', help='alsa mixer name for volume control', default=alsa.mixers()[0])
alsaaudio.ALSAAudioError: No such file or directory [default]
Failed to execute script loader
Display More
I'm trying to connect via my premium spotify account from my phone to raspberry pi running libreelec with kodi
Please do let me know what I have done wrong
Cheers
Have you used the configuration wizard in the settings of the addon?
Thanks for the quick reply.
Configure wizard shows "could not find a playback device" if this is an obvious problem which I should know then I do apologies
Here is the journalctl output
Oct 27 20:48:01 olaaaaaaaaaaa systemd[1]: Started spotify-connect-web.
Oct 27 20:48:01 olaaaaaaaaaaa sh[2479]: /storage/.kodi/addons/service.spotify-connect-web/bin/spotify-connect-web.start: line 51: dtparam: not found
Oct 27 20:48:02 olaaaaaaaaaaa sh[2479]: Playback device not set
[hr]
OK I found a sound blaster USB soundcard, which I connected and can see via aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: S51 [SB Omni Surround 5.1], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: S51 [SB Omni Surround 5.1], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: S51 [SB Omni Surround 5.1], device 2: USB Audio [USB Audio #2]
Subdevices: 1/1
Subdevice #0: subdevice #0
I then selected the first option in the wizard, but little notification shows "add-on error"
I check the kodi.log
21:18:06 40565.976562 T:1574949792 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'alsaaudio.ALSAAudioError'>
Error Contents: No such file or directory [hw:0]
Traceback (most recent call last):
File "/storage/.kodi/addons/service.spotify-connect-web/wizard.py", line 42, in <module>
mixers = [mixer for mixer in alsa.mixers(cardindex=cardx, device=device)
ALSAAudioError: No such file or directory [hw:0]
-->End of Python script error report<--