Author Topic: Squeeze driver cover art display  (Read 4012 times)

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Squeeze driver cover art display
« on: March 30, 2013, 08:42:02 pm »
Anyone able to get cover art showing for this driver? I tried the cover art media control bound to the squeeze driver, but that didn't work. I see the driver has a cover art property so I could go that route, but am not sure how to convert the byte array to an image and then assign that image to a touch screen control. Ideas? Thanks
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Squeeze driver cover art display
« Reply #1 on: March 31, 2013, 10:05:30 am »
I think it is a limitation of the driver after looking into it. I set my media cover art control with a default image, and a different image was displayed during runtime. This was from Pandora. Coverart worked with my ripped media library.
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Squeeze driver cover art display
« Reply #2 on: April 04, 2013, 04:16:08 pm »
Anyone know how to scrape coverart from the squeeze server player webpage (http://SqueezeServerIp:9000)?
I pulled this html script off another automation website, but it didn't work:
Code: [Select]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">
var parameters = new Array();

function getParameters()
{
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++)
{
var pos = parms[i].indexOf('=');
if (pos > 0)
{
var key = parms[i].substring(0,pos);
var val = parms[i].substring(pos+1);
parameters[key] = val;
}
}
}
parameters['url']='http://SqueezeServerIp:9000';
parameters['width']='200';
parameters['height']='200';
getParameters();
</script>
</head>


<BODY leftMargin="0" topMargin="0" scroll="no" border="0" marginheight="0" marginwidth="0">
<script>document.write('<img src="'+parameters['url']+'" width="'+parameters['width']+'" height="'+parameters['height']+'" border="0">')</script>
</body>
</html>
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Squeeze driver cover art display
« Reply #3 on: April 14, 2013, 01:04:33 pm »
Found out how to scrape where this info hides. Should have this issue fixed shortly. Now on to dynamically obtaining Pandora stations and local internet radio stations...

Sent from my Galaxy Nexus using Tapatalk 2

I always wanted to be somebody. In retrospect, I think I should have been more specific.

michaeltschmidt

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Squeeze driver cover art display
« Reply #4 on: January 30, 2015, 08:54:25 pm »
I know this is a really old thread...

I just recently found Elve, too bad John has stopped development. I am considering using it to replace Openremote, but I am actually seeing the same behavior as this thread describes. Seems that cover art works unless i am playing music from Pandora, in which case i see the radio tower logo instead. seems that the image is viewable using the squeezeserver web interface, but Elve seems to be looking at a specific folder.

I see here that you were looking at somehow scraping the image, can you explain if you were able to resolve this?

Mike

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Squeeze driver cover art display
« Reply #5 on: February 01, 2015, 01:49:17 pm »
I feel your pain.  I did get it to work back in the day after some doing. Unfortunately I eventually switched to Sonos and got rid of that screen set, so I don't have the working code anymore.  Side point I did this exact same thing and got cover art from Pandora in CQC in like 2 minutes.  It was ridiculous. Not that I'd go that route.

Sent from my SCH-I545 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.