Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
#21
Hi

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

Adrian
Reply
#22
(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
Reply
#23
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.
Reply
#24
(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
Reply
#25
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.
Reply
#26
(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!
Reply
#27
(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...
Reply
#28
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.
----------
bob
Reply
#29
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.
Reply
#30
(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
Reply


Forum Jump: