View unanswered posts | View active topics It is currently Wed May 22, 2013 2:28 pm



Reply to topic  [ 20 posts ]  Go to page: 1, 2  Next
 Creating control page icons 
Author Message

Joined: Feb 21, 2011
Posts: 133
Post Creating control page icons
Can we make and import icons for control pages?

I would like to have an outline of my yard and icons to show what sprinkler zone is going, and turn that zone off and on. I tried to do this with just a button. The sprinkler would go on... but not off. Do I need two separate buttons?

If this is in the forum already, just point me to that page.


Tue Jun 26, 2012 12:40 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6659
Location: Austin, Texas
Post Re: Creating control page icons
Check out the custom images wiki page for details.

_________________
Jay (Indigo Support)
Image


Tue Jun 26, 2012 1:11 pm
Profile WWW

Joined: Feb 21, 2011
Posts: 133
Post Re: Creating control page icons
Ok, so I can make the png in Gimp, and as long as it has the correct format in the name, it should work.

I tried using a button to turn on and off one sprinkler zone. It would turn on, not off.


Tue Jun 26, 2012 4:35 pm
Profile

Joined: Aug 05, 2011
Posts: 230
Post Re: Creating control page icons
bighop wrote:Ok, so I can make the png in Gimp, and as long as it has the correct format in the name, it should work.

I tried using a button to turn on and off one sprinkler zone. It would turn on, not off.


The way I made it work was to make the icon action execute a script:

Code: Select all
# If that sprinkler isn't running, activate the corresponding action group that will run it.  If it is running, stop it.
if indigo.devices[1095404594].activeZone!=0:
   indigo.device.turnOn(1796546660, duration=1800);indigo.actionGroup.execute(1180682440)
else:
   indigo.device.turnOff(1796546660);indigo.sprinkler.stop(1095404594)


where the action group has two actions: first it sets up the schedule for the appropriate zone and then executes the schedule...


Tue Jun 26, 2012 4:44 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6659
Location: Austin, Texas
Post Re: Creating control page icons
As johnpolasek points out, there isn't a zone toggle action - only a Turn On Specific Zone action. So a script something like his mimics a toggle - if the current zone isn't the one you want, then turn on the zone; otherwise, stop the sprinkler (since there can only be one zone active at a time you just stop the whole thing).

The image and the action are separate issues - the image has no effect on what the action does.

_________________
Jay (Indigo Support)
Image


Tue Jun 26, 2012 4:54 pm
Profile WWW

Joined: Aug 05, 2011
Posts: 230
Post Re: Creating control page icons
Oh, yes, I guess I should add that device 1796546660 is an appliance module on the 24 volt transformer supplying the power to the solenoids on the EZFlora... out of a sense of paranoia due to the EZFlora picking up a random X10 address the first time I programmed it, I added a secondary safety to keep it from accidentally turning on; even if the sprinkler system turns on somehow, unless I turn on the power to the zones, they won't trigger.


Tue Jun 26, 2012 5:20 pm
Profile

Joined: Nov 26, 2009
Posts: 924
Location: Kalispell, MT
Post Re: Creating control page icons
Since only one zone can be on at a time I just have my icons turn on individual zones and have an all off.
I personally like to have the visual feedback of which zone is active as well. Nice WAF too.

Carl


Attachments:
photo 1.JPG
photo 1.JPG [ 91.58 KiB | Viewed 400 times ]
photo 2.JPG
photo 2.JPG [ 88.8 KiB | Viewed 400 times ]
Tue Jun 26, 2012 5:35 pm
Profile

Joined: Feb 21, 2011
Posts: 133
Post Re: Creating control page icons
That is cool, how do you set it to read how much time is set for each zone?


Wed Jun 27, 2012 7:05 am
Profile

Joined: Nov 26, 2009
Posts: 924
Location: Kalispell, MT
Post Re: Creating control page icons
I just have a variable that is a countdown timer that starts when any zone is active. All my zones run for 45 mins so I only needed one.

Thanks,

Carl


Wed Jun 27, 2012 4:41 pm
Profile

Joined: Aug 05, 2011
Posts: 230
Post Re: Creating control page icons
ckeyes888 wrote:All my zones run for 45 mins so I only needed one.


Actually, it wouldn't matter if they ran for different lengths like mine do as long you load the display variable with the same value as you are putting into the sprinkler zone as the zone starts.


Wed Jun 27, 2012 5:02 pm
Profile

Joined: Mar 31, 2008
Posts: 738
Post Re: Creating control page icons
Does the background graphic change with the zone that's currently on?


Wed Jun 27, 2012 9:06 pm
Profile

Joined: Aug 05, 2011
Posts: 230
Post Re: Creating control page icons
hamw wrote:Does the background graphic change with the zone that's currently on?


I had assume it does, using the "Image.png", "Image+Zone 01 On.png", "Image+Zone 02 On.png", etc techniques outlined in the Wiki article above. I hadn't thought of that, but once I saw the Graphic, I decided it might be a better idea than the blah light green/dark green +on method I am currently using.


Thu Jun 28, 2012 5:11 am
Profile

Joined: Feb 21, 2011
Posts: 133
Post Re: Creating control page icons
Ok Im stuck on the create a variable to show how much time is left. I would create a new variable and put the time in? Then add a variable and decrease by 1?


Thu Jun 28, 2012 6:02 am
Profile

Joined: Feb 21, 2011
Posts: 133
Post Re: Creating control page icons
Also the Server status... I can't get it to read anything.


Thu Jun 28, 2012 6:03 am
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6659
Location: Austin, Texas
Post Re: Creating control page icons
bighop wrote:Also the Server status... I can't get it to read anything.


The Server Status page elements doesn't work on Indigo Touch because we show the activity spinner in the status bar and we show if there are errors in a small popup at the bottom of the screen. Those two elements are only useful when viewing a control page in a browser.

_________________
Jay (Indigo Support)
Image


Thu Jun 28, 2012 8:22 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page: 1, 2  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.