View unanswered posts | View active topics It is currently Sun May 19, 2013 9:15 pm



Reply to topic  [ 33 posts ]  Go to page: 1, 2, 3  Next
 Real time update of image files in Control Pages? 
Author Message

Joined: May 06, 2008
Posts: 133
Post Real time update of image files in Control Pages?
Looking for a little help here....

I've written an applescript that extracts the artwork from the currently playing iTunes track, updates an Indigo variable with some value, and creates a "png" image file. (I use the same file name each time)

Within the control pages I'd like to display that image and I'd like to have it dynamically update/refresh when the song changes.

I tried to be clever (and failed) by storing the image file in the "Variables" folder with both a 'standard' and '+true' file name. In the Control Pages, I added the widget for my Indigo variable created above. When I display the variable as text, it changes with the song, but if I display as my image file, it shows the correct image but I still have to manually refresh the browser each time the song changes.

Is there any way to get the image to refresh real time the same way as the variable text does, and if so, how?

Thanks


Fri Jun 06, 2008 2:18 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11683
Location: Texas
Post Re: Real time update of image files in Control Pages?
I'm looking into this now as a feature for Indigo. It is a bit more involved than I originally hoped, but I'm optimistic it will be in the next major rev of Indigo.

Regards,
Matt


Mon Jun 16, 2008 11:27 am
Profile WWW
User avatar

Joined: Nov 18, 2008
Posts: 1720
Location: Berkeley, CA
Post Re: Real time update of image files in Control Pages?
support wrote:I'm looking into this now as a feature for Indigo. It is a bit more involved than I originally hoped, but I'm optimistic it will be in the next major rev of Indigo.

Hmmm, that next major release would be 4.0. Did this ever happen?


Sat Feb 28, 2009 4:42 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6642
Location: Austin, Texas
Post 
Unfortunately, no. Indigo Touch and everything else in 4.0 took priority. It's still high on the priority list, but most likely POST 4.0. ;)

_________________
Jay (Indigo Support)
Image


Sat Feb 28, 2009 5:29 pm
Profile WWW

Joined: May 06, 2008
Posts: 133
Post 
Good to know it's still on the list. I tried my code with the latest beta but saw that it wasn't there yet. I can certainly wait as the job you guys have done on Version 4 and Indigo Touch is above and beyond my expectation. Well done guys!!!


Sat Feb 28, 2009 5:50 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11683
Location: Texas
Post 
Definitely still high on the list. I really want this one as well. :-)

_________________
Image


Sat Feb 28, 2009 6:32 pm
Profile WWW
User avatar

Joined: Dec 29, 2005
Posts: 585
Location: Third byte on the right
Post Re: Real time update of image files in Control Pages?
Skiddy wrote:Is there any way to get the image to refresh real time the same way as the variable text does, and if so, how?

Maybe you could try this:
Make a dummy device that can be switched on and off.
Save the artwork from iTunes as an image that's used for the device state of that dummy device.
Then flip the device from on to off or off to on when the artwork changes.
If Indigo doesn't cache the image, you might get an instant update in your control page.

_________________
"I tawt I taw a puddy tat!" Tweety


Sun Mar 01, 2009 1:40 am
Profile WWW

Joined: May 06, 2008
Posts: 133
Post 
Strangely enough, after seeing this post resurrected, that was the idea I came up with when I walked myself through the scenario again. Thanks for validating! :wink:

I might play around with that idea and see what happens.


Sun Mar 01, 2009 11:38 am
Profile

Joined: Dec 20, 2010
Posts: 393
Post Re: Real time update of image files in Control Pages?
Any successful implementation of a dynamic png file? I am in the same boat with my Russound SMS media player. I am pulling current song data as well as album cover art. It would be create if I could get the image to refresh.


Mon Jan 03, 2011 8:22 pm
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11683
Location: Texas
Post Re: Real time update of image files in Control Pages?
It still is not possible, but it is something we are looking into improving for the next major release.

_________________
Image


Tue Jan 04, 2011 7:38 am
Profile WWW

Joined: Mar 31, 2008
Posts: 738
Post Re:
Skiddy wrote:Strangely enough, after seeing this post resurrected, that was the idea I came up with when I walked myself through the scenario again. Thanks for validating! :wink:

I might play around with that idea and see what happens.


did this idea work?


Fri Jan 07, 2011 4:43 pm
Profile

Joined: Dec 20, 2010
Posts: 393
Post Re: Real time update of image files in Control Pages?
So I tried this out by creating a dummy X10 device that toggles when a custom variable changes value. I do this via a trigger. Everything is reporting well in the logs, but I am a victim to the Safari cache on my desktop and the browser cache on the iPad. I do see some refreshes, but it is not consistent. I'm not willing to give up on this yet, because I think I'm close. Is there a way to change the style sheets to always reload images?


Sat Jan 08, 2011 1:26 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 923
Location: Kalispell, MT
Post Re: Real time update of image files in Control Pages?
Have there been any changes on this issue?
I would love to have iTunes artwork displayed
on a control page.

Thanks,

Carl


Sun Jan 22, 2012 11:04 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11683
Location: Texas
Post Re: Real time update of image files in Control Pages?
Indigo 5 has a new Refreshing Image URL Control Page control type. You can specify a URL that points to an HTTP served page (ex: http://...) or you can specify a local image file (ex: file:///Users/george/Desktop/blah.png).

_________________
Image


Sun Jan 22, 2012 11:08 am
Profile WWW

Joined: Nov 26, 2009
Posts: 923
Location: Kalispell, MT
Post Re: Real time update of image files in Control Pages?
Seems there must be a better way but what I'm working on now
is simply gathering the best quality artwork I can find, sizing and saving
as artwork+Beatles.png etc. and triggering the images from an iTunesAlbum
variable.

Yikes, not the most fun project with hundreds of albums to process but
it does look and work well, especially on a large screen.

Curious to see any AppleScripts anyone might have that processes artwork
from iTunes directly.

Carl


Sun Jan 22, 2012 11:28 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page: 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.