[SOLVED]display a PNG file (not static) in indigo touch

Posted on
Thu Feb 06, 2014 3:35 pm
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

[SOLVED]display a PNG file (not static) in indigo touch

tried to find this in the wiki and the discussion forum...

how do I display a png image that changes every other minute in indigo touch? Do I have to setup/use a web server?

If I put it into the background folder it does not update ?!

any pointer appreciated..

Karl

Posted on
Thu Feb 06, 2014 4:39 pm
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

Re: display a PNG file (not static) in indigo touch

starting a simple web server in the directory where the docs are located seems to work, but I would like to understand if there is a preferred method..

opening terminal
cd /Users/yourid/mydocs/ --- cd to the directory where the files are, then issuing the following command:
python -m SimpleHTTPServer 8000

enable in itouch to display the png file:
http://youruserid:yourpassword@192.168.x.y:8000/thefile.png
--- x.y the ipnumber of your mac


is there a better way? i.e. apache or the IWS solution in indigo, but I recall that it is "out of support"..
Thanks

Karl

Posted on
Thu Feb 06, 2014 4:49 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: display a PNG file (not static) in indigo touch

I am not sure of the best method, but I have iTunes artwork dump the currently-playing album art to the IndigoWebServer/images directory and it reloads every 20 seconds or so. I ended up changing the URL in my refreshing image to use a file:// URL pointing to the location on disk (can't remember if I did that because it was causing an issue or just figured not going through an HTTP call would be more efficient).

Adam

Posted on
Thu Feb 06, 2014 5:19 pm
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

Re: display a PNG file (not static) in indigo touch

tried:
Code: Select all
file:///Library/Application\ Support/Perceptive\ Automation/Indigo\ 6/IndigoWebServer/images/plotDaysize1.png


does not work.. the \ before the space should be correct!?..

sorry for the dumb questions..


Karl

Posted on
Thu Feb 06, 2014 5:25 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: display a PNG file (not static) in indigo touch

does not work.. the \ before the space should be correct!?..

Try URL-encoding of a space (that is what I use)... %20:
Code: Select all
file://Library/Application%20Support/Perceptive%20Automation/Indigo%206/IndigoWebServer/images/plotDaysize1.png


Obviously untested, but that should work...

Posted on
Thu Feb 06, 2014 6:24 pm
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

Re: display a PNG file (not static) in indigo touch

yes I remember %20 \\ \" .... to many escape's


but it still does not work: no display, no error message..

Posted on
Thu Feb 06, 2014 7:10 pm
kw123 offline
User avatar
Posts: 8382
Joined: May 12, 2013
Location: Dallas, TX

Re: display a PNG file (not static) in indigo touch

it is
file:/directory

not file://directory

works now, thanks..

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron