Moode Forum

Full Version: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I have just updated the repository, and the screen can now be rotated 180 degrees with "mpd_oled -R".

Adrian
(06-07-2018, 08:30 PM)adrii Wrote: [ -> ]Hi

I have just updated the repository, and the screen can now be rotated 180 degrees with "mpd_oled -R".

Adrian

Hi,

thank you.

What should I do to upgrade? Thanks
Hi

You have local changes, and so the easiest would be to clone the repository again into a new directory


Code:
git clone https://github.com/antiprism/mpd_oled
cd mpd_oled

Then, in the install instructions, skip to "Now build mpd_oled".

Adrian.
(06-08-2018, 04:51 PM)adrii Wrote: [ -> ]Hi

You have local changes, and so the easiest would be to clone the repository again into a new directory


Code:
git clone https://github.com/antiprism/mpd_oled
cd mpd_oled

Then, in the install instructions, skip to "Now build mpd_oled".

Adrian.

Hi,
thank you for your support! I created a new layout, I'll upload it as soon as I can.
Is there a way to retrieve elapsed time / total time of a track?
Thank you
Hi

Seconds:
disp_info.status.get_elapsed_secs()
disp_info.status.get_total_secs()

HH:MM:SS:
disp_info.status.get_elapsed_time()
disp_info.status.get_total_time()

You can see all the currently available status values here: https://github.com/antiprism/mpd_oled/bl...r/status.h

Adrian.
(06-13-2018, 10:28 AM)adrii Wrote: [ -> ]Hi

Seconds:
disp_info.status.get_elapsed_secs()
disp_info.status.get_total_secs()

HH:MM:SS:
disp_info.status.get_elapsed_time()
disp_info.status.get_total_time()

You can see all the currently available status values here: https://github.com/antiprism/mpd_oled/bl...r/status.h

Adrian.

Great! Thank you!
(06-13-2018, 11:21 AM)pelukessss Wrote: [ -> ]
(06-13-2018, 10:28 AM)adrii Wrote: [ -> ]Hi

Seconds:
disp_info.status.get_elapsed_secs()
disp_info.status.get_total_secs()

HH:MM:SS:
disp_info.status.get_elapsed_time()
disp_info.status.get_total_time()

You can see all the currently available status values here: https://github.com/antiprism/mpd_oled/bl...r/status.h

Adrian.

Great! Thank you!

Hi, been busy with work, I hope this weekend I'll post some updates...
Ebay oleds went awol...3 months wait and no-show...:-(

Re-ordered from another supplier and they arrived today...

Tried your set up and no joy...oled does not light up...nothing ... nada...   raspberry... (eat more fruit)...:-(

tried..... https://github.com/naisema/MoodeAudio-OLED    worked first time and oled displays fine.... but breaks Moode... can no longer access any configuration pages in UI and have to ssh in to shutdown...:-(

Sad as this screen would be a perfect fit for a project.
Hi DRONE7

If you would like to troubleshoot the issue then please post the mpd_oled command line that you are trying, and a link to the display that you bought.

Adrian.
(08-15-2018, 09:38 AM)DRONE7 Wrote: [ -> ]Ebay oleds went awol...3 months wait and no-show...:-(

Re-ordered from another supplier and they arrived today...

Tried your set up and no joy...oled does not light up...nothing ... nada...   raspberry... (eat more fruit)...:-(

tried..... https://github.com/naisema/MoodeAudio-OLED    worked first time and oled displays fine.... but breaks Moode... can no longer access any configuration pages in UI and have to ssh in to shutdown...:-(

Sad as this screen would be a perfect fit for a project.

Hi, @DRONE7

I'd say your problem with the MoodeAudio-OLED repo lies in the construction of the Python script moode-oled.py

moOde expects the LCD update script to execute and return. Instead, this script goes into an infinite while-loop.

I don't have any LCD/OLED displays to play with. To test my thought, I followed @naisema's README to install everything (mostly to make sure the presence of the Adafruit libraries weren't the issue). Then I edited moode-oled.py so it won't try to work with the display (through the disp object) but instead writes text messages to a log file. Sure enough, as soon as it was started by moOde, it began logging output to the file every second (the loop sleeps for 1 second) and moOde could no longer process config options. The moode.log file shows the worker process is waiting.

I then edited moode-oled.py to eliminate the while condition (and the now superfluous sleep function). Rebooted. et voilà moOde is happy.

Candidly, this repo looks like the author was trying to explore several directions at once. For its stated purpose, the loop is just plain wrong but there are other curious bits as well. 

It's not complicated but if you aren't a Python aficionado who likes to tinker with other people's code, I suggest you work with @adrii to sort out your OLED display interface. You now know your OLED display is electrically functional. I'll bet he gets you sorted with his code in no time.

Regards,
Kent