Page 1 of 2

Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Jul 17, 2020 11:12 am
by ppespepe
Hello there!

Just a quick line looking for help trying to understand the graphic heuristics naming convention for control pages.

I'm trying to show presence status when the variable or device (ghost xml) will give me "present" or "not present) values. I tried with the following graphics either on variables or devices since I'm testing both. I'm using the following file names:

Presence2x.png
Presence2x+not present.png
Presence2x+present.png

This is how it looks in the designer:

Screen Shot 2020-07-17 at 12.10.52 PM.png
Screen Shot 2020-07-17 at 12.10.52 PM.png (164.42 KiB) Viewed 4930 times


And on the webpage:

Screen Shot 2020-07-17 at 12.11.21 PM.png
Screen Shot 2020-07-17 at 12.11.21 PM.png (36.17 KiB) Viewed 4930 times


But it always look for +on.png regardless of the variable or state being present or not present. Is there a way to make it work?

Thanks in advance!

PP

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Jul 17, 2020 2:17 pm
by jay (support)
Did you restart the server (not just the client) after adding the files? You'll need to do that.

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Jul 17, 2020 4:02 pm
by DaveL17
I *think* you might also need to rename:

Presence2x.png

to

Presence2x+.png

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Jul 17, 2020 4:04 pm
by matt (support)
Dave beat me to it 8) , but change this one from:

Presence2x.png

to:

Presence2x+.png

before restarting the Indigo Server. From the article about custom images:

"We've expanded the image selection criteria so that it can find much more interesting images based on values. To signify that an image should use these more complex image heuristics (described below), end the base file name with a “+”: ImageName+.png. The “+” at the end is a hint to the Indigo Web Server and Indigo Touch that it may need to contact the server for the right image."

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Jul 17, 2020 6:08 pm
by ppespepe
Thanks Jay, Dave and Matt!!!

It did the trick. Actually I did restarted the server and everything but that + sign was missing.

Cool... :)

Screen Shot 2020-07-17 at 19.07.07.png
Screen Shot 2020-07-17 at 19.07.07.png (77.14 KiB) Viewed 4865 times

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Sat Jul 18, 2020 4:55 pm
by agame
hmm...I've never realised restarting the server was recommended when adding icons, just closing/reopening the control page editor has always worked for me...

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Mon Jul 27, 2020 2:20 am
by howartp
agame wrote:
hmm...I've never realised restarting the server was recommended when adding icons, just closing/reopening the control page editor has always worked for me...

Ditto....

Matt/Jay, since when has restarting the server been stock response for adding images?

Fixing issues when you’ve renamed an image and confused Indigo, yes, but not just adding images afresh surely?


Sent from my iPhone using Tapatalk Pro

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Mon Jul 27, 2020 9:11 am
by jay (support)
There are circumstances where it might be needed. The "you'll need to do that" statement could have been more accurately stated as "you should try that" as part of debugging. In this case it was a naming issue so a server restart wouldn't have helped, but when running through all the potential debugging steps this should be one.

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Wed Aug 12, 2020 2:07 pm
by jroach
Should user created images that use the +on (ie: Hall Light and Hall Light+on) work differently on iOS vs a Browser? I've created a button, works in preview while editing the control page but doesn't on the iPhone. The action executes but no image.

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Wed Aug 12, 2020 6:06 pm
by agame
certainly works for me.
but a better cross-check if something weird is happening is using the 'show in browser' button rather than control page preview, then you can be sure you're viewing the same version of the page.

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Thu Aug 13, 2020 10:48 am
by jroach
agame, thanks.

I only see the "Browser Preview" when editing a control page.

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Thu Aug 13, 2020 11:16 am
by jroach
agame, found it. Show in Browser is an option prior to editing the Control Page.

Both Show in Browser and Browser Preview work (graphic changes when touched) while the iOS (iPhones or iPads) don't.

I'm new to Control Pages but is that the way it suppose to work?

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Thu Aug 13, 2020 4:09 pm
by matt (support)
If you want live updates as you edit the Control Page (Brower Preview button) on iOS you'll need to navigate to the "preview" version of the Control Page which will be named _preview_Original Control Page Name. If the problem is you've changed the image but are still seeing the old image in Indigo Touch, then go to the Setting screen (gear icon) and there is an option to clear the image cache.

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Aug 14, 2020 8:12 am
by jroach
Thanks Matt.

The problem is that the browser view works and my iOS device don't. When viewing via browser the icon I created changes (from Hall to Hall+on)
On my iOS device the icon doesn't change.

Thanks

Re: Newbie guidance with Control Pages Heuristics.

PostPosted: Fri Aug 14, 2020 9:21 am
by matt (support)
Did you try the option to clear the image cache in Indigo Touch (mentioned above)? Also try force quitting Indigo Touch and relaunching it. Does it then work?