antiprism / mpd_oled

MPD, Volumio, RuneAudio and Moode OLED status and spectrum display for Raspberry Pi (and similar)
Other
168 stars 45 forks source link

MPD_oled over MoOde audio rel 8.3.2 #84

Open andromeda2791 opened 1 year ago

andromeda2791 commented 1 year ago

Hi Adrian with the new rel. of MoOde 8.3.2 the your magnificent code 4 oled displays don't work, can you have some suggestion? the oled remain freezed and no spectral bars is displayed... tnks 4 Ur work

antiprism commented 1 year ago

Hi

Thanks for reporting the issue. There was a change to the Moode startup code in 8.3.2 which affects the mpd_oled startup (and vice versa). It is discussed here

https://moodeaudio.org/forum/showthread.php?tid=5556

I hope to find some time to update mpd_oled over the weekend.

Adrian.

andromeda2791 commented 1 year ago

Tnks Adrian just 2 word I'm a moderator of a little community in FB (now with over 1150 people...) where I've proposed your solution for make the architecture of HiFi RPi based DAC more interesting and aesthetic... On Old MoOde revs ...work very well and was very appreciated with a lot of positive feedback over the appearance that your code gave to the final product ... Eventually could be more fascinating if do possible to insert a start jingle Logo/animation and if can be modified the char typology ... If can be updated with new features.. you must have much fans! Thank 4 your work Eug.

Il ven 12 mag 2023, 07:30 Adrian Rossiter @.***> ha scritto:

Hi

Thanks for reporting the issue. There was a change to the Moode startup code in 8.3.2 which affects the mpd_oled startup (and vice versa). It is discussed here

https://moodeaudio.org/forum/showthread.php?tid=5556

I hope to find some time to update mpd_oled over the weekend.

Adrian.

— Reply to this email directly, view it on GitHub https://github.com/antiprism/mpd_oled/issues/84#issuecomment-1545189566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYHGJNF5BLN2VIE4FYHUMMTXFXDGPANCNFSM6AAAAAAX6UHDRE . You are receiving this because you authored the thread.Message ID: @.***>

antiprism commented 1 year ago

Hi Eug.

Thank you for your comments and suggestions!

I have updated the repository and the binary packages with a fix for this issue.

This version of mpd_oled is in maintenance mode, and I do not plan to add any new features. I did, however, start a new version of mpd_oled for implementing new features

https://github.com/antiprism/mpd_oled_dev

It uses a different library for controllers and graphics, and supports more types of screen. I also made a font with international languages to use for display, although have not yet added this into the program. However, as I cannot easily buy a Pi at the moment I have put development of this new version on hold for now.

Adrian.

andromeda2791 commented 1 year ago

Great Adrian! go to TRY immediately!!

Il giorno dom 14 mag 2023 alle ore 12:40 Adrian Rossiter < @.***> ha scritto:

Hi Eug.

Thank you for your comments and suggestions!

I have updated the repository and the binary packages with a fix for this issue.

This version of mpd_oled is in maintenance mode, and I do not plan to add any new features. I did, however, start a new version of mpd_oled for implementing new features

https://github.com/antiprism/mpd_oled_dev

It uses a different library for controllers and graphics, and supports more types of screen. I also made a font with international languages to use for display, although have not yet added this into the program. However, as I cannot easily buy a Pi at the moment I have put development of this new version on hold for now.

Adrian.

— Reply to this email directly, view it on GitHub https://github.com/antiprism/mpd_oled/issues/84#issuecomment-1546867455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYHGJNHOWBGGGFII65LEI5TXGCZBPANCNFSM6AAAAAAX6UHDRE . You are receiving this because you authored the thread.Message ID: @.***>

andromeda2791 commented 1 year ago

unfortunately on my installation not work propely during reproduction remain lighted ononly time label volume , tx-rx icone and the base line of speactrum graph... no other info or moving over oled

antiprism commented 1 year ago

Are you installing mpd_oled from source, or using the deb package?

Was there previously a version of mpd_oled on this machine, and was it installed the same way?

Please run the following command while playing music, and post the output

sudo systemctl status mpd_oled | cat

Also, post the contents of the file /etc/systemd/system/mpd_oled.service

Adrian.

andromeda2791 commented 1 year ago

Hi Adrian tnks the installation used was by source the status mpd_oled done the result ...

● mpd_oled.service - MPD OLED Display Loaded: loaded (/etc/systemd/system/mpd_oled.service; enabled; vendor prese t: enabled) Active: active (running) since Tue 2023-05-16 00:19:46 CEST; 1 day 17h ago Main PID: 449 (mpd_oled) Tasks: 2 (limit: 9293) CPU: 4.198s CGroup: /system.slice/mpd_oled.service └─449 /usr/local/bin/mpd_oled -o 7 -b 32 -g 1 -f 25 -s 25.0 5.0 -c alsa,plughw:Loopback,1

May 16 00:19:46 MyRASpiDAC systemd[1]: Started MPD OLED Display.

(that mean ..all appear to be ok...) and the mpd_oled.service is configured as

[Unit] Description=MPD OLED Display

[Service] ExecStart=/usr/local/bin/mpd_oled -o 7 -b 32 -g 1 -f 25 -s 25.0,5.0 -c alsa,plughw:Loopback,1 [Install] WantedBy=multi-user.target

antiprism commented 1 year ago

Thanks. There is an issue with the service file, as it has not been updated by the new install (which will not overwrite a current service file). Try running

sudo mpd_oled_service_uninstall
sudo mpd_oled_service_install
sudo mpd_oled_service_edit -o 7 -b 32 -g 1 -f 25 -s 25.0,5.0 -c alsa,plughw:Loopback,1

This should remove the service file, reinstall it, then add back in the options from your current service file.

If mpd_oled is not running with a working spectrum after this, please post the output of of the status command and the contents of the service file again.

Adrian.

andromeda2791 commented 1 year ago

great! .... workin now and evrithing is dinamically updated

antiprism commented 1 year ago

Great. I'll post to the Moode forum about updating. Thanks for the feedback!

andromeda2791 commented 1 year ago

my pleasure for debugging your work ... You update all code in github surce and also for deb package?

andromeda2791 commented 1 year ago

for char customize can do somethink?...

antiprism commented 1 year ago

Yes. I made deb package iwith the current source.

Changing the font or what is displayed involves modifying the C++ code.

andromeda2791 commented 1 year ago

can give some indication how to that feature is implemented and where is defined in the code I'm courious if can see some in the code

antiprism commented 1 year ago

In main.cpp there are two simple functions that draw the layout

draw_clock(): draws the stop screen draw_spect_display(): draws the play/pause screen

They run the component display functions, so you can see the names of the functions you want to change.

andromeda2791 commented 1 year ago

I've rate U (+1) over moode forum (my nick is AndromedaStrain)

antiprism commented 1 year ago

Thanks!