Posts: 34
Threads: 1
Joined: May 2019
Reputation:
0
Thanks for taking the time to look into this Adrian!
P.S. Changing the i2c baudrate to 800000 fixed my lagging screen, it works beautifully now :-)
Posts: 434
Threads: 10
Joined: Apr 2018
Reputation:
28
Hi Tim
Thanks for the extra information on the current song file, and also for the offer to include track length and progress. In the end, I won't be using the file for detailed song information, and will continue to query MPD as I do now.
Adrian.
Posts: 434
Threads: 10
Joined: Apr 2018
Reputation:
28
Hi JB
I will read the current song file to extract the alternative renderer name and display it, I just won't be using the file for detailed song information. I imagine the logic will be:
Query MPD:
If "play"/"pause"
MPD being used, state is "play"/"pause", display detailled song information
else
read current song file
if file opened and renderer name is read
state is "play", display renderer name
else
state is "stop"
I also need to make sure that the curent song file isn't opened too frequently.
I can't give a time for adding it in, but it seems like a smallish change.
Adrian.
Posts: 34
Threads: 1
Joined: May 2019
Reputation:
0
I see, thanks very much for the update.
I really appreciate your efforts Adrian, huge thanks for that :-)
JB
Posts: 34
Threads: 1
Joined: May 2019
Reputation:
0
Hi Adrian,
I've tested on Moode 6.2.1 and it works perfectly!
I have tested both Spotify and Airplay and both are ok.
Many thanks!
JB
Posts: 434
Threads: 10
Joined: Apr 2018
Reputation:
28
Hi JB
Great! Thanks for letting me know,
Adrian.
Posts: 3
Threads: 0
Joined: Oct 2019
Reputation:
0
pi@moode:~/mpd_oled $ PLAYER=MOODE make
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o main.o main.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o timer.o timer.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o status.o status.c pp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o status_msg.o stat us_msg.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o utils.o utils.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o display.o display .cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o programopts.o pro gramopts.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o ultragetopt.o ult ragetopt.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o ArduiPi_OLED.o Ar duiPi_OLED.cpp
g++ -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o Adafruit_GFX.o Ad afruit_GFX.cpp
cc -W -Wall -Wno-unused-variable -Wno-unused-parameter -Wno-strict-aliasing -Ofast -DMOODE -c -o bcm2835.o bcm2835. c
g++ -o mpd_oled main.o timer.o status.o status_msg.o utils.o display.o programopts.o ultragetopt.o ArduiPi_OLED.o Ad afruit_GFX.o bcm2835.o -lmpdclient -lpthread -li2c
/usr/bin/ld: cannot find -li2c
collect2: error: ld returned 1 exit status
Makefile:30: recipe for target 'mpd_oled' failed
make: *** [mpd_oled] Error 1
I used MoOde 4.3, when i command "PLAYER=MOODE make"
IT's show this error as above.
Please help me to fixed this error.