OLED spectrum display on Volumio on Raspberry Pi Zero W

Hi Adrian

When webradio starts the next song the spectrum is shown but after 2 seconds it is stopped and watch is displayed. The spectrum is started after 10 seconds .
The code gives me a return only when spectrum is shown . When the music is playing and watch is shown no results for the code. The behaviour is reprodicible on every song switch

Blockquote
{“status”:“play”,“position”:0,“title”:“ARTHUR BAKER - THE MESSAGE IS LOVE”,“artist”:“Absolut Radio Relax”,“album”:null,“albumart”:“https://radio-directory.firebaseapp.com/volumio/src/images/radio-thumbnails/Absolut Relax.jpg”,“uri”:“http://stream.absolutradio.de/relax/mp3-160/radioplayer/",“trackType”:“webradio”,“seek”:3613533,“duration”:0,“samplerate”:"",“bitdepth”:"",“channels”:2,“bitrate”:"192 Kbps”,“random”:null,“repeat”:null,“repeatSingle”:false,“consume”:true,“volume”:"",“mute”:false,“disableVolumeControl”:false,“stream”:true,“updatedb”:false,“volatile”:false,“service”:“webradio”}volumio

When I stop the music the status when running curl command is stop :

Thanks

Hi Florin

Thanks for the extra details. That is the problem then. If mpd_oled can’t get the status values from Volumio then it doesn’t have any values to show, and so it displays the stop screen,

Adrian.

Hi Adrian,
Thanks. I can live with that but until now and on other version it was OK. Maybe volumio will improve… I will switch to buster in nearly future.
Regards.

Hi Adrian,

some time I ago you reported in the changelog that the bug of the screen divided in two part, shown with wrong order, was solved.

From time to time I still have it, using your latest version. Unfortunately I did not find a way to reproduce it, and also not a way to get rid of it without rebooting.

Hi Darmur

Thanks for reporting this.

It was previously reported as an issue (assuming this is the same problem), but I never fixed it as it did not seem to be affecting anyone else. Now that it is, I have reopened the issue and will see if I can fix it. I will post followups on the issue tracker.

Adrian.

1 Like

many thanks!

I can add some more information:

  • Issue pops up mostly on Raspberry Pi Zero
  • I2C Bus speed 1MHz
  • Display with SSD1306 controller

I am available for testing eventual fixes, one of the systems I have shows this issue quite often

Hi Darmur

Could you please test a potential fix. It is included in a branch, which can be cloned with

git clone -b offset_fix https://github.com/antiprism/mpd_oled.git

[Check it is the right branch, main.cpp should include a call to reset_offset

grep reset_offset main.cpp
]

EDIT: I forgot to say, the display is corrected when the play state changes between play, pause, stop.

Adrian.

1 Like

Sure, I will build this evening and test in the coming days, many thanks for your proposed fix!

I am testing right now the new version with the reset offset fix, so far so good.

Hello Adrian,
I am using the plugin with spotify volumio plugin. When listen to spotify the spectrum is not shown. Only the the Metadata is shown and when the song is stopped the plugin switch to watch.
With qobuz and webradio it is ok.
Thanks.

Hi Florin

mpd_oled requires a copy of the audio that is playing in order to show the spectrum bars. The installation instructions set up a copy using MPD, which means that the spectrum can only be seen when MPD is the player. It is possible to set up a copy of the audio for all sources by using a custom ALSA configuration file, but I can’t give specific instructions for this. See the following thread for more details:

Adrian.

Hello Adrian,
Thanks for tbe fast answer.
Spotify does not use mpd for playing? Also qobuz tidal webradio is working… Volumio team could also fix this? Is there something that will help?
I want to have only spotify because I do not see much differences from qobuz hi res… With my e30 dac.
Thanks

Hi Florin

I believe it will be easier to make a copy of the audio from all sources in the next major update of Volumio

Adrian.

Hi Adrian,
OK, then I will wait :). Everything comes with a price. In my case no cava with spotify.
Regards
Florin

Nope, Spotify uses a custom daemon (spop/vollibrespot) to fetch encrypted audio directly from Spotify’s servers, and the proceeds to decrypt and play it. This wouldn’t be possible to do via mpd as it would go against Spotify’s Terms Of Service…

I have just pushed a major update to the mpd_oled repository to make the installation process easier.

https://github.com/antiprism/mpd_oled/bl.../README.md

Please let me know about about any issues.

There is no need to update an existing mpd_oled install as there are no new program features.

Adrian.

1 Like

@Adrii
Been following this thread for a little while. Thanks for creating this and troubleshooting for everyone. Despite my limited technical knowledge, I’m going to give this screen a shot soon, but it appears your most recently posted github link is a dead end. Do you have an updated one?

Hi FradSevage

Thanks, I didn’t know the link wasn’t working. The main repository link (which also displays the README) is

https://github.com/antiprism/mpd_oled

Adrian.

1 Like

You might wanna try my unofficial plugin which will installs Adrian’s software (from a slightly older but stable repository) and lets you configure the screen from within the volumio UI.

https://community.volumio.com/t/plugin-mpd-oled-installation-configuration-plugin

1 Like

Awesome. Huge thanks to you, @supercrab, and @adrii both for creating this fun stuff, sharing it, and keeping it up to date and usable for all.

1 Like