balbuze / volumio-plugins

volumio's plugins from balbuze
190 stars 60 forks source link

ODROID C2 #17

Closed chsims1 closed 7 years ago

chsims1 commented 7 years ago

Hi Balbuze,

no idea what's involved here, but what would need modifying to make your excellent plugin work on an ODROID ?

Regards

balbuze commented 7 years ago

hi! I suppose that if you ask, it's because it doesn't work.... In fact I don't know the C2. But I suppose this due to cpu problem ? What have you tried? And a "flash info" : I'm working on new plugin (volspotconnect2) that use a different lib (librespot). Search my repo, I just post a early dev version.... not finished yet of course - appears as incative and just test on one device. But it works !

chsims1 commented 7 years ago

Well, I half expectd it just to work (same processor as Pi3 I thought??). I'll have a closer look at the errors, and get back to you.

Downloading plugin at http://127.0.0.1:3000/plugin-serve/volspotconnect.zip END DOWNLOAD: http://127.0.0.1:3000/plugin-serve/volspotconnect.zip Creating folder on disk Unpacking plugin Checking for duplicate plugin Copying Plugin into location Installing dependencies Installing spotify-connect-web dependencies Ign http://httpredir.debian.org jessie InRelease Get:1 http://httpredir.debian.org jessie Release.gpg [2373 B] Hit http://httpredir.debian.org jessie Release Hit http://httpredir.debian.org jessie/main Sources Hit http://httpredir.debian.org jessie/contrib Sources Hit http://httpredir.debian.org jessie/non-free Sources Hit http://httpredir.debian.org jessie/contrib Translation-en Hit http://httpredir.debian.org jessie/main armhf Packages Hit http://httpredir.debian.org jessie/contrib armhf Packages Hit http://httpredir.debian.org jessie/non-free armhf Packages Hit http://httpredir.debian.org jessie/main Translation-en Hit http://httpredir.debian.org jessie/non-free Translation-en Hit http://httpredir.debian.org jessie/main Sources Hit http://httpredir.debian.org jessie/contrib Sources Hit http://httpredir.debian.org jessie/non-free Sources Ign http://httpredir.debian.org jessie/contrib Translation-en Hit http://httpredir.debian.org jessie/main armhf Packages Hit http://httpredir.debian.org jessie/contrib armhf Packages Hit http://httpredir.debian.org jessie/non-free armhf Packages Ign http://httpredir.debian.org jessie/main Translation-en Ign http://httpredir.debian.org jessie/non-free Translation-en Err http://httpredir.debian.org jessie/main Sources 404 Not Found Err http://httpredir.debian.org jessie/contrib Sources 404 Not Found Err http://httpredir.debian.org jessie/non-free Sources 404 Not Found Err http://httpredir.debian.org jessie/main armhf Packages 404 Not Found [IP: 128.31.0.66 80] Err http://httpredir.debian.org jessie/contrib armhf Packages 404 Not Found [IP: 128.31.0.66 80] Err http://httpredir.debian.org jessie/non-free armhf Packages 404 Not Found [IP: 128.31.0.66 80] Fetched 2373 B in 4s (534 B/s) Reading package lists... Building dependency tree... Reading state information... avahi-utils is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 74 not upgraded. Detecting cpu The following error occurred when installing the plugin: Error Sorry, your device is not yet supported ! exit now...

balbuze commented 7 years ago

Maybe it could works. But the value detected by the install script does not match with what is expected. You can try to disable detection in install or change the name so that it works... Sorry I can't have a look now. I'm not at home until several hours.

chsims1 commented 7 years ago

Most of those 404 errors are because the redirect mirror is not working for some reason. The Odroid uses Debian sources rather than Raspbian.

Reported architecture is 'aarch64' rather than 'armv7l' as given by the Pi 3 (don't know why it does this if it is the same set of CPU cores), and if I change the install script accordingly, then it does it's thing and reports that the plugin is successfully installed. However, plugin remains inactive, even after a reboot, and I can't see the device from Spotify on my phone. Does the plugin produce error logs anywhere?

balbuze commented 7 years ago

Due to problems with dependencies try to disable. Shared device and save.

chsims1 commented 7 years ago

volspotconnect2 works! Much faster installation. Well done Balbuze. As you say, the inactive label is shown.

What are the advantages of using this library?

BTW just noticed this in system log

volumio systemd[1]: Configuration file /etc/systemd/system/volspotconnect2.service is marked executable. Please remove exec utable permission bits. Proceeding anyway.

balbuze commented 7 years ago

Yes I know for the error message. I'm going to correct it. Librespot is Open source. It works on miscellaneous device (as you saw). The downloaded file is rather small. 3Mo. No other dependecies needed.. No Spotify_app_key needed And in discovery mode, no credentials needed. But I didn't test with several account. And I will add a setting to use it with a single user ( some user don't want to share the device) And it it supposed to work with 320kps stream. more info : https://github.com/plietar/librespot The previous version of volspotconnect uses a full system, with web server etc (reachable on port 4000). It works well but a big part is not use in the plugin. It uses a close lib from Spotify and for amrv6 it require a chroot version with vm (qemu). I'm really interested by the test you have done. What is your dac ? What is your mixer setting inVolumio? etc and any info that may help to debug.

chsims1 commented 7 years ago

DAC: Odroid hifi shield+ Output Device: Odroiddac Mixer type: software Mixer Control Name: Software Volume Control

I have some Pis around with various DACs .... I'll try them tomorrow

balbuze commented 7 years ago

great thank you. I suspect a problem in volume setting with hardware volume...

balbuze commented 7 years ago

I uploaded a new version that appears activated. And it stop when desactivated!

balbuze commented 7 years ago

@chsims1 I have added support aarch64 in install script. But I don't own a odroid C2... I can't test it, but maybe could you ? thanks !