| Author |
Message |
|
Skiddy
Joined: May 06, 2008 Posts: 133
|
 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 |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11689 Location: Texas
|
 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 |
|
 |
|
berkinet
Joined: Nov 18, 2008 Posts: 1720 Location: Berkeley, CA
|
 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 |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6648 Location: Austin, Texas
|
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)
|
| Sat Feb 28, 2009 5:29 pm |
|
 |
|
Skiddy
Joined: May 06, 2008 Posts: 133
|
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 |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11689 Location: Texas
|
Definitely still high on the list. I really want this one as well. 
_________________
|
| Sat Feb 28, 2009 6:32 pm |
|
 |
|
macpro
Joined: Dec 29, 2005 Posts: 585 Location: Third byte on the right
|
 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 |
|
 |
|
Skiddy
Joined: May 06, 2008 Posts: 133
|
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!
I might play around with that idea and see what happens.
|
| Sun Mar 01, 2009 11:38 am |
|
 |
|
nlagaros
Joined: Dec 20, 2010 Posts: 393
|
 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 |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11689 Location: Texas
|
 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.
_________________
|
| Tue Jan 04, 2011 7:38 am |
|
 |
|
hamw
Joined: Mar 31, 2008 Posts: 738
|
 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!  I might play around with that idea and see what happens.
did this idea work?
|
| Fri Jan 07, 2011 4:43 pm |
|
 |
|
nlagaros
Joined: Dec 20, 2010 Posts: 393
|
 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 |
|
 |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 923 Location: Kalispell, MT
|
 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 |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11689 Location: Texas
|
 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).
_________________
|
| Sun Jan 22, 2012 11:08 am |
|
 |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 923 Location: Kalispell, MT
|
 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 |
|
|