03-27-2019, 04:05 PM
Hi guys, thanks a lot for the excellent tutorial. My OLED works in proper right now.
I still have two questions:
1. how can I add truetype font for pydPiper, I tried different ways (usr/share/**, pydPiper/display/fonts/*** …)and always says font not found. So I have to use the customized fnt instead.
2.how to display the filename when there is no title. I try to edit the musicdata_mpd.py
self.musicdata[u'title'] = current_song[u'title'] if u'title' in current_song else current_song[u'file']
and it works but display the whole url not the filename. which parameter should I use?
Thank you again for your wonderful works.
I still have two questions:
1. how can I add truetype font for pydPiper, I tried different ways (usr/share/**, pydPiper/display/fonts/*** …)and always says font not found. So I have to use the customized fnt instead.
2.how to display the filename when there is no title. I try to edit the musicdata_mpd.py
self.musicdata[u'title'] = current_song[u'title'] if u'title' in current_song else current_song[u'file']
and it works but display the whole url not the filename. which parameter should I use?
Thank you again for your wonderful works.