Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully support Pimoroni Pirate Audio (classic and Spotify edition) #1109

Open
clemsonfire opened this issue Oct 22, 2020 · 10 comments · May be fixed by #1112
Open

Fully support Pimoroni Pirate Audio (classic and Spotify edition) #1109

clemsonfire opened this issue Oct 22, 2020 · 10 comments · May be fixed by #1112

Comments

@clemsonfire
Copy link

clemsonfire commented Oct 22, 2020

Guten Morgen!

Ich habe nun meine Phoniebox schweren Herzens auf USB Reader umgerüstet und mir Pimoroni Audio Hat 3W ausgestattet. Die Grundfunktionen funktionieren, doch leider nicht das Display und die Tasten des Audio HAT.
Ich habe gemäß ~/RPi-Jukebox-RFID/com~/RPi-Jukebox-RFID/components/audio/PirateAudioHAT/README.md installiert, Develop Version ist es auch.

Wo muss ich ansetzen, um das Display Problem zu lösen und die Tasten zum Funktionieren zu bewegen?
Das Display scheint leicht zu leuchten, doch zeigt es nix an, weder Cover-Art noch sonstwas.
Bitte um Eure geschätzte Hilfe!
Im voraus sagt danke
clemsonfire

@s-martin
Copy link
Collaborator

Might be interfering with standard GPIO control.

Please try

sudo systemctl stop phoniebox-gpio-control.service 
sudo systemctl disable phoniebox-gpio-control.service

Maybe you need to reboot the Pi.

@s-martin s-martin added this to the 2.2 milestone Oct 23, 2020
@s-martin s-martin linked a pull request Oct 23, 2020 that will close this issue
7 tasks
@clemsonfire
Copy link
Author

Hi s-martin,
thank you for your answer!
i did your console proposal, but display is still empty - no cover art, no soft-keys butt seems to be backlighted.

any further ideas?

TIA!
Clemsonfire

@s-martin
Copy link
Collaborator

Do you use classic or Spotify edition of Phoniebox?

@clemsonfire
Copy link
Author

Hi, s-martin,
Thanks for your interest!
I'm using

2.2rc1 - caeee32 - develop Edition
Classic edition (barebones)

@s-martin
Copy link
Collaborator

So I had a closer look and the current script just works with Mopidy, which we only use in the Spotify edition.

So as a quick solution you could install the Spotify edition. This one usually starts a little slower, but otherwise the functionality is the same. Sometimes there are difficulties making it run (look for issues here tagged with spotify).

If you want to make it run with classic edition first you need to update the pins of the buttons of the HAT in settings/gpio_settings.ini.
All buttons should be simple buttons and you need to update the pin and pull_down.

Afterwards please restart the service with

sudo systemctl start phoniebox-gpio-control.service 
sudo systemctl enable phoniebox-gpio-control.service

The display won't work with classic edition at the moment. We need to implement a display (probably derived from https://github.com/MiczFlor/RPi-Jukebox-RFID/tree/develop/components/displays/HD44780-i2c).

I've ordered a Private Audio HAT yesterday and want to make it run with classic edition, but that will probably take a couple of weeks (depending how much my normal life interferes ;)).

So bottom line:

  • Quick: use Spotify edition
  • Buttons only: adapt config
  • classic edition: implement yourself or wait a couple of weeks

;)

@s-martin s-martin changed the title Pimoroni Pirate Audio Fully support Pimoroni Pirate Audio (classic and Spotify edition) Oct 26, 2020
@clemsonfire
Copy link
Author

clemsonfire commented Nov 3, 2020

Good evening!
Sorry for my late response, had some other work to do :-(

Thank you for your massive effort to get Pimoroni running with phoniebox!

I've now reinstalled Phoniebox. Now I've chosen the spotify version.
After successful install I did the pimoroni audio installation without any errors. After this I did the display installation.
Here I had to install PIP which seemed to be missing.

After this command sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f [...] I get this strange pattern. What does this mean? How shall I use this information? Am I right assuming that my Pimoroni Audio HAT display isn'recognized by the system?
The last commands above were totally wrong, due to the fact that Pimoroni has an integradet SPI display and I did the installation for an I²C device.

After doing this https://github.com/pimoroni/st7789-python the display is now on and showing some information. The buttons of the Pimoroni seem to work - but IMHO a bit slowly.

With mpg123 testfile.mp3 I can play at the console. Using the webinterface :80 I can't start playing music, in the webinterface of mopidy :6680/iris I can't neither. And when I edit /etc/mopidy/mopidy.conf the changed settings do not appear in the mopidy webif. Is there an other place of mopidy.conf file? For example I changed the audio file dir in mopidy.conf but I don't see the files in the webIf.

Now I've changed ./usr/share/mopidy/conf.d/mopidy.conf and changed in this file the media directory. No changing in the webIf concerning the media paths.

Thank you for reading and your patience with me as a Linux Newbie.

best regards, clemsonfire

@clemsonfire
Copy link
Author

Hi!
Thank you for your incredible help and that you've even bought a Pimoroni Audio HAT!

What I've done meanwhile and what's now working and what's beeing not working in a chaotic listing:

  • Display of Pimoroni works - the display shows the name of the played file but no cover art. A file called cover.jpg ist situated in the same dir as the mp3 file. At githib there is a *.shh fscript for cover art; I've no idea where this should be placed.

  • The buttons of Pimoroni work.

  • In /var/log/syylog there are masses of lines... coming up every second. Not so good for the sd card, isn'it? shortend output:

Nov 16 17:29:27 phoniebox mopidy[1211]: INFO [MpdSession-435] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39626 Nov 16 17:29:27 phoniebox mopidy[1211]: INFO [MpdSession-436] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39630 Nov 16 17:29:27 phoniebox mopidy[1211]: INFO [MpdSession-437] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39634 Nov 16 17:29:28 phoniebox mopidy[1211]: INFO [MpdSession-438] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39638 Nov 16 17:29:28 phoniebox mopidy[1211]: INFO [MpdSession-439] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39642 Nov 16 17:29:28 phoniebox mopidy[1211]: INFO [MpdSession-440] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39646 Nov 16 17:29:28 phoniebox mopidy[1211]: INFO [MpdSession-441] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39652 Nov 16 17:29:28 phoniebox mopidy[1211]: INFO [MpdSession-442] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39654 Nov 16 17:29:29 phoniebox mopidy[1211]: INFO [MpdSession-443] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39658 Nov 16 17:29:29 phoniebox mopidy[1211]: INFO [MpdSession-444] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39662 Nov 16 17:29:29 phoniebox mopidy[1211]: INFO [MpdSession-445] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39666 Nov 16 17:29:29 phoniebox mopidy[1211]: INFO [MpdSession-446] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39670 Nov 16 17:29:29 phoniebox mopidy[1211]: INFO [MpdSession-447] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39674 Nov 16 17:29:29 phoniebox mopidy[1211]: INFO [MpdSession-448] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39678 Nov 16 17:29:33 phoniebox systemd[1]: [email protected]: Succeeded. Nov 16 17:29:33 phoniebox systemd[1]: [email protected]: Service has no hold-off time (RestartSec=0), scheduling restart. Nov 16 17:29:33 phoniebox systemd[1]: [email protected]: Scheduled restart job, restart counter is at 2. Nov 16 17:29:33 phoniebox systemd[1]: Stopped Getty on tty1. Nov 16 17:29:33 phoniebox systemd[1]: Started Getty on tty1. Nov 16 17:29:34 phoniebox daemon_rfid_reader.py[1193]: 2020-11-16 17:29:34,285 - root - INFO - Trigger Play Cardid=0006642271 Nov 16 17:29:34 phoniebox mopidy[1211]: INFO [MpdSession-449] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39682 Nov 16 17:29:35 phoniebox mopidy[1211]: INFO [MpdSession-450] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39686 Nov 16 17:29:35 phoniebox mopidy[1211]: INFO [MpdSession-451] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39690 Nov 16 17:29:35 phoniebox mopidy[1211]: INFO [MpdSession-452] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39694 Nov 16 17:29:35 phoniebox mopidy[1211]: INFO [MpdSession-453] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39698 Nov 16 17:29:35 phoniebox mopidy[1211]: INFO [MpdSession-454] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39702 Nov 16 17:29:36 phoniebox mopidy[1211]: INFO [MpdSession-455] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39706 Nov 16 17:29:36 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:36 phoniebox mopidy[1211]: INFO [MpdSession-456] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39710 Nov 16 17:29:36 phoniebox mopidy[1211]: INFO [MpdSession-457] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39714 Nov 16 17:29:36 phoniebox mopidy[1211]: INFO [MpdSession-458] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39718 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-459] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39722 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-460] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39726 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-461] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39730 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-462] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39734 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-463] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39738 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-464] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39742 Nov 16 17:29:37 phoniebox mopidy[1211]: INFO [MpdSession-465] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39746 Nov 16 17:29:37 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:38 phoniebox mopidy[1211]: INFO [MpdSession-466] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39750 Nov 16 17:29:38 phoniebox daemon_rfid_reader.py[1193]: loading: Test Nov 16 17:29:38 phoniebox mopidy[1211]: INFO [MpdSession-467] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39754 Nov 16 17:29:38 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:38 phoniebox mopidy[1211]: INFO [MpdSession-468] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39758 Nov 16 17:29:38 phoniebox mopidy[1211]: INFO [MpdSession-469] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39762 Nov 16 17:29:38 phoniebox mopidy[1211]: INFO [MpdSession-470] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39766 Nov 16 17:29:39 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:39 phoniebox mopidy[1211]: INFO [MpdSession-471] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39770 Nov 16 17:29:39 phoniebox daemon_rfid_reader.py[1193]: OK MPD 0.19.0 Nov 16 17:29:39 phoniebox daemon_rfid_reader.py[1193]: OK [...] Nov 16 17:29:48 phoniebox mopidy[1211]: INFO [MpdSession-490] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39846 Nov 16 17:29:48 phoniebox mopidy[1211]: INFO [MpdSession-491] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39850 Nov 16 17:29:48 phoniebox mopidy[1211]: INFO [MpdSession-492] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39854 Nov 16 17:29:49 phoniebox mopidy[1211]: INFO [MpdSession-493] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39858 Nov 16 17:29:49 phoniebox mopidy[1211]: INFO [MpdSession-494] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39862 Nov 16 17:29:49 phoniebox mopidy[1211]: INFO [MpdSession-495] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39866 Nov 16 17:29:49 phoniebox daemon_rfid_reader.py[1193]: 2020-11-16 17:29:49,977 - root - INFO - Trigger Play Cardid=0006642271 Nov 16 17:29:50 phoniebox mopidy[1211]: INFO [MpdSession-496] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39870 Nov 16 17:29:50 phoniebox mopidy[1211]: INFO [MpdSession-497] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39874 Nov 16 17:29:50 phoniebox mopidy[1211]: INFO [MpdSession-498] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39878 Nov 16 17:29:50 phoniebox mopidy[1211]: INFO [MpdSession-499] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39882 Nov 16 17:29:51 phoniebox mopidy[1211]: INFO [MpdSession-500] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39886 Nov 16 17:29:51 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:51 phoniebox mopidy[1211]: INFO [MpdSession-501] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39890 Nov 16 17:29:51 phoniebox mopidy[1211]: INFO [MpdSession-502] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39894 Nov 16 17:29:51 phoniebox mopidy[1211]: INFO [MpdSession-503] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39898 Nov 16 17:29:51 phoniebox mopidy[1211]: INFO [MpdSession-504] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39902 Nov 16 17:29:52 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:52 phoniebox mopidy[1211]: INFO [MpdSession-505] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39906 Nov 16 17:29:52 phoniebox daemon_rfid_reader.py[1193]: loading: Test Nov 16 17:29:52 phoniebox mopidy[1211]: INFO [MpdSession-506] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39910 Nov 16 17:29:52 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:52 phoniebox mopidy[1211]: INFO [MpdSession-507] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39914 Nov 16 17:29:52 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:29:52 phoniebox mopidy[1211]: INFO [MpdSession-508] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39918 Nov 16 17:29:52 phoniebox daemon_rfid_reader.py[1193]: OK MPD 0.19.0 Nov 16 17:29:52 phoniebox daemon_rfid_reader.py[1193]: OK Nov 16 17:29:54 phoniebox mopidy[1211]: INFO [MpdSession-509] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39922 Nov 16 17:29:54 phoniebox mopidy[1211]: INFO [MpdSession-510] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39926 Nov 16 17:29:55 phoniebox mopidy[1211]: INFO [MpdSession-511] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39930 Nov 16 17:29:55 phoniebox mopidy[1211]: INFO [MpdSession-512] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39934 Nov 16 17:29:55 phoniebox mopidy[1211]: INFO [MpdSession-513] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39938 Nov 16 17:29:55 phoniebox mopidy[1211]: INFO [MpdSession-514] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39942 Nov 16 17:29:55 phoniebox mopidy[1211]: INFO [MpdSession-515] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39946 Nov 16 17:29:55 phoniebox mopidy[1211]: INFO [MpdSession-516] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39950 Nov 16 17:29:56 phoniebox mopidy[1211]: INFO [MpdSession-517] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39954 Nov 16 17:29:56 phoniebox mopidy[1211]: INFO [MpdSession-518] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39958 Nov 16 17:29:56 phoniebox mopidy[1211]: INFO [MpdSession-519] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39962 Nov 16 17:29:56 phoniebox mopidy[1211]: INFO [MpdSession-520] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39966 Nov 16 17:29:57 phoniebox mopidy[1211]: INFO [MpdSession-521] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39970 Nov 16 17:29:57 phoniebox mopidy[1211]: INFO [MpdSession-522] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39974 Nov 16 17:29:57 phoniebox mopidy[1211]: INFO [MpdSession-523] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39978 Nov 16 17:29:57 phoniebox mopidy[1211]: INFO [MpdSession-524] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39982 Nov 16 17:29:57 phoniebox mopidy[1211]: INFO [MpdSession-525] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39986 Nov 16 17:29:57 phoniebox mopidy[1211]: INFO [MpdSession-526] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39990 Nov 16 17:29:59 phoniebox daemon_rfid_reader.py[1193]: 2020-11-16 17:29:59,246 - root - INFO - Trigger Play Cardid=0006642271 Nov 16 17:29:59 phoniebox mopidy[1211]: INFO [MpdSession-527] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39994 Nov 16 17:29:59 phoniebox mopidy[1211]: INFO [MpdSession-528] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:39998 Nov 16 17:30:00 phoniebox mopidy[1211]: INFO [MpdSession-529] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40002 Nov 16 17:30:00 phoniebox mopidy[1211]: INFO [MpdSession-530] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40006 Nov 16 17:30:00 phoniebox mopidy[1211]: INFO [MpdSession-531] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40010 Nov 16 17:30:00 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:30:00 phoniebox mopidy[1211]: INFO [MpdSession-532] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40014 Nov 16 17:30:00 phoniebox mopidy[1211]: INFO [MpdSession-533] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40018 Nov 16 17:30:01 phoniebox mopidy[1211]: INFO [MpdSession-534] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40022 Nov 16 17:30:01 phoniebox mopidy[1211]: INFO [MpdSession-535] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40026 Nov 16 17:30:01 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:30:01 phoniebox mopidy[1211]: INFO [MpdSession-536] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40030 Nov 16 17:30:01 phoniebox daemon_rfid_reader.py[1193]: loading: Test Nov 16 17:30:01 phoniebox mopidy[1211]: INFO [MpdSession-537] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40034 Nov 16 17:30:01 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:30:01 phoniebox mopidy[1211]: INFO [MpdSession-538] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40038 Nov 16 17:30:01 phoniebox daemon_rfid_reader.py[1193]: volume: 90% repeat: off random: off single: off consume: off Nov 16 17:30:02 phoniebox mopidy[1211]: INFO [MpdSession-539] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40042 Nov 16 17:30:02 phoniebox daemon_rfid_reader.py[1193]: OK MPD 0.19.0 Nov 16 17:30:02 phoniebox daemon_rfid_reader.py[1193]: OK Nov 16 17:30:02 phoniebox mopidy[1211]: INFO [MpdSession-540] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40046 Nov 16 17:30:02 phoniebox mopidy[1211]: INFO [MpdSession-541] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40050 [...] Nov 16 17:30:06 phoniebox mopidy[1211]: INFO [MpdSession-556] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40110 Nov 16 17:30:06 phoniebox mopidy[1211]: INFO [MpdSession-557] mopidy_mpd.session New MPD connection from [::ffff:127.0.0.1]:40114

  • Now there is mopidy and mpd installed. These both player seem to interfear with each other. When I use android app to remotely control mopidy or mpd, the system will crash very often.

  • moving the cursor position within a playing track doesn't work

  • registering a rfid token works fine in phoniebox webif; but playing the linked mp3 file doesn't work. The phoniebox webif says that mp3 file xy is now running:

Nov 19 23:54:40 phoniebox daemon_rfid_reader.py[1193]: 2020-11-19 23:54:40,142 - root - INFO - Trigger Play Cardid=0006642271

  • After uploading new files to the system the buttons are dead, mopidy plays the songs 4 seconds and restarts, phoniebox webif doesn't play music

There is one thing for me which could be reason for many problems:
I think that there is something wrong with the music directory. It looks like that mopidy wants the music in an different directory than phoniebox does it expect. I didn't find out how to tell phoniebox and/ or mopidy the corect and unique music directory.

Now I saw this in /var/log/syslog

:ffff:127.0.0.1]:33258
Nov 19 23:54:37 phoniebox mpd: exception: bind to '0.0.0.0:6610' failed (continuing anyway, because binding to '[::]:6610' succeeded): Failed to bind socket: Address already in use
Nov 19 23:54:37 phoniebox mpd: exception: Failed to set group 0: Operation not permitted
Nov 19 23:54:37 phoniebox systemd[26104]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Nov 19 23:54:37 phoniebox systemd[26104]: mpd.service: Failed with result 'exit-code'.
Nov 19 23:54:37 phoniebox systemd[26104]: Failed to start Music Player Daemon.
Nov 19 23:54:37 phoniebox systemd[26104]: Reached target Default.
Nov 19 23:54:37 phoniebox systemd[26104]: Startup finished in 9.015s.

Sorry for this chaotic listing of my troubles. Please tell me which informtion could be usefull for your development of the cool phoniebox system!
Kind regards from locked down Austria :-(

Clemsonfire

@s-martin
Copy link
Collaborator

Do you intend to use Spotify edition or classic?

Mopidy requires the music directory in
/etc/mopidy/mopidy.conf
${HOME_DIR}/.config/mopidy/mopidy.conf

Phoniebox configures the music path in both, not sure, if that’s really necessary.

@clemsonfire
Copy link
Author

Good morning,

I'd prefer the classic edition due to quicker starting and lacking spotify account.
Now I've installed the spotify edition because you've told me to do so, if I remember correctly.

Kind regards, clemsonfire

@s-martin
Copy link
Collaborator

Yeah, at the moment it works only with the Spotify edition.
I started working on a PR #1112 to implement this for classic edition, but right now normal life gets in the way very often ;)

@s-martin s-martin modified the milestones: 2.2, 2.3 Nov 23, 2020
@s-martin s-martin modified the milestones: 2.3, 2.4 Feb 28, 2021
@s-martin s-martin removed this from the 2.4 milestone Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants