Newbie guidance with Control Pages Heuristics.

Posted on
Fri Jul 17, 2020 11:12 am
ppespepe offline
Posts: 49
Joined: May 27, 2020

Newbie guidance with Control Pages Heuristics.

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 4847 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 4847 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

Posted on
Fri Jul 17, 2020 2:17 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Newbie guidance with Control Pages Heuristics.

Did you restart the server (not just the client) after adding the files? You'll need to do that.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Jul 17, 2020 4:02 pm
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Newbie guidance with Control Pages Heuristics.

I *think* you might also need to rename:

Presence2x.png

to

Presence2x+.png

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Jul 17, 2020 4:04 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Newbie guidance with Control Pages Heuristics.

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."

Image

Posted on
Fri Jul 17, 2020 6:08 pm
ppespepe offline
Posts: 49
Joined: May 27, 2020

Re: Newbie guidance with Control Pages Heuristics.

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 4782 times

Posted on
Sat Jul 18, 2020 4:55 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Newbie guidance with Control Pages Heuristics.

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...

Posted on
Mon Jul 27, 2020 2:20 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Newbie guidance with Control Pages Heuristics.

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

Posted on
Mon Jul 27, 2020 9:11 am
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Newbie guidance with Control Pages Heuristics.

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 12, 2020 2:07 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Newbie guidance with Control Pages Heuristics.

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.

Posted on
Wed Aug 12, 2020 6:06 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Newbie guidance with Control Pages Heuristics.

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.

Posted on
Thu Aug 13, 2020 10:48 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Newbie guidance with Control Pages Heuristics.

agame, thanks.

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

Posted on
Thu Aug 13, 2020 11:16 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Newbie guidance with Control Pages Heuristics.

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?

Posted on
Thu Aug 13, 2020 4:09 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Newbie guidance with Control Pages Heuristics.

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.

Image

Posted on
Fri Aug 14, 2020 8:12 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Newbie guidance with Control Pages Heuristics.

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

Posted on
Fri Aug 14, 2020 9:21 am
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Newbie guidance with Control Pages Heuristics.

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?

Image

Who is online

Users browsing this forum: No registered users and 3 guests