Hi Andrew,
What informations pydPiper collect you can see in the file pydPiper\sources\musicdata_volumio2.py
in line 128 for example you can see
….
self.musicdata[u’artist’] = status[u’artist’] if u’artist’ in status else u""
self.musicdata[u’title’] = status[u’title’] if u’title’ in status else u""
self.musicdata[u’uri’] = status[u’uri’] if u’uri’ in status else u""
self.musicdata[u’bitdepth’] = status[u’bitdepth’] if u’bitdepth’ in status else u""
self.musicdata[u’tracktype’] = status[u’trackType’] if u’trackType’ in status else u""
self.musicdata[u’samplerate’] = status[u’samplerate’] if u’samplerate’ in status else u""
self.musicdata[u’bitrate’] = status[u’bitrate’] if u’bitrate’ in status else u""
…
to look, how the information will loo like, you can use
http://volumio.local/api/v1/getState
to display the informations you have to modify the pages_lcd_20x4.py file
1st in the Widget section, for example:
WIDGETS = {
….
‘samplerate’: { ‘type’:‘text’, ‘format’:‘{0}’, ‘variables’:[‘samplerate’], ‘font’:‘small’, ‘just’:‘center’,‘varwidth’:True},
‘bitdepth’: { ‘type’:‘text’, ‘format’:‘{0}’, ‘variables’:[‘bitdepth’], ‘font’:‘small’, ‘just’:‘center’,‘varwidth’:True},
‘stream’: { ‘type’:‘text’, ‘format’:‘{0}’, ‘variables’:[‘stream’], ‘font’:‘small’, ‘just’:‘left’,‘varwidth’:True},
‘bitrate’: { ‘type’:‘text’, ‘format’:‘{0}’, ‘variables’:[‘bitrate’], ‘font’:‘small’, ‘just’:‘left’,‘varwidth’:True},
….
}
2nd you have to modify the Canvases section, for example (this example is to a 16x2 display) :
CANVASES = {
….
‘playartist_flac’: { ‘widgets’: [ (‘artist’,0,8), (‘samplerate’,0,0), (‘bitdepth’,50,0) ], ‘size’:(80,16) },
‘playalbum_flac’: { ‘widgets’: [ (‘album’,0,8), (‘samplerate’,0,0), (‘bitdepth’,50,0) ], ‘size’:(80,16) },
‘playtitle_flac’: { ‘widgets’: [ (‘title’,0,8), (‘samplerate’,0,0), (‘bitdepth’,50,0) ], ‘size’:(80,16) },
‘playartist_radio’: { ‘widgets’: [ (‘artist’,0,8), (‘nowplaying’,40,0), (‘bitrate’,0,0) ], ‘size’:(80,16) },
‘playalbum_radio’: { ‘widgets’: [ (‘album’,0,8), (‘nowplaying’,40,0), (‘bitrate’,0,0) ], ‘size’:(80,16) },
‘playtitle_radio’: { ‘widgets’: [ (‘title’,0,8), (‘nowplaying’,40,0), (‘bitrate’,0,0) ], ‘size’:(80,16) },
…
}
3rd you have to modify the Sequences section, here you can configure different informations depending what format is playing (eg. Webradio, …)
SEQUENCES = [
{ ‘name’: ‘seqSplash’, ‘canvases’: [ { ‘name’:‘splash’, ‘duration’:4 } ], ‘conditional’:“db[‘state’]==‘starting’” },
{
‘name’: ‘seqPlay’,
‘canvases’: [
{ ‘name’:‘playartist’, ‘duration’:8, ‘conditional’:“not db[‘stream’]==‘webradio’ and not db[‘stream’]==‘flac’” },
{ ‘name’:‘playalbum’, ‘duration’:8, ‘conditional’:“not db[‘stream’]==‘webradio’ and not db[‘stream’]==‘flac’” },
{ ‘name’:‘playtitle’, ‘duration’:8, ‘conditional’:“not db[‘stream’]==‘webradio’ and not db[‘stream’]==‘flac’” },
{ ‘name’:‘playartist_flac’, ‘duration’:8, ‘conditional’:“db[‘stream’]==‘flac’” },
{ ‘name’:‘playalbum_flac’, ‘duration’:8, ‘conditional’:“db[‘stream’]==‘flac’” },
{ ‘name’:‘playtitle_flac’, ‘duration’:8, ‘conditional’:“db[‘stream’]==‘flac’” },
{ ‘name’:‘playartist_radio’, ‘duration’:8, ‘conditional’:“db[‘stream’]==‘webradio’” },
{ ‘name’:‘playalbum_radio’, ‘duration’:8, ‘conditional’:“db[‘stream’]==‘webradio’ and db[‘album’]” },
{ ‘name’:‘playtitle_radio’, ‘duration’:8, ‘conditional’:“db[‘stream’]==‘webradio’” },
],
‘conditional’: “db[‘state’]==‘play’”
},
….
Jens