Newbie guidance with Control Pages Heuristics.

Posted on
Fri Jul 17, 2020 11:12 am
ppespepe offline
Posts: 21
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 298 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 298 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: 16302
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: 5520
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: 20075
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: 21
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 233 times

Posted on
Sat Jul 18, 2020 4:55 pm
agame offline
Posts: 334
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: 4127
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: 16302
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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests