| Author |
Message |
|
bighop
Joined: Feb 21, 2011 Posts: 133
|
 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 |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6659 Location: Austin, Texas
|
 Re: Creating control page icons
Check out the custom images wiki page for details.
_________________ Jay (Indigo Support)
|
| Tue Jun 26, 2012 1:11 pm |
|
 |
|
bighop
Joined: Feb 21, 2011 Posts: 133
|
 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 |
|
 |
|
johnpolasek
Joined: Aug 05, 2011 Posts: 230
|
 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 |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6659 Location: Austin, Texas
|
 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)
|
| Tue Jun 26, 2012 4:54 pm |
|
 |
|
johnpolasek
Joined: Aug 05, 2011 Posts: 230
|
 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 |
|
 |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 924 Location: Kalispell, MT
|
 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 [ 91.58 KiB | Viewed 400 times ]
photo 2.JPG [ 88.8 KiB | Viewed 400 times ]
|
| Tue Jun 26, 2012 5:35 pm |
|
 |
|
bighop
Joined: Feb 21, 2011 Posts: 133
|
 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 |
|
 |
|
ckeyes888
Joined: Nov 26, 2009 Posts: 924 Location: Kalispell, MT
|
 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 |
|
 |
|
johnpolasek
Joined: Aug 05, 2011 Posts: 230
|
 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 |
|
 |
|
hamw
Joined: Mar 31, 2008 Posts: 738
|
 Re: Creating control page icons
Does the background graphic change with the zone that's currently on?
|
| Wed Jun 27, 2012 9:06 pm |
|
 |
|
johnpolasek
Joined: Aug 05, 2011 Posts: 230
|
 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 |
|
 |
|
bighop
Joined: Feb 21, 2011 Posts: 133
|
 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 |
|
 |
|
bighop
Joined: Feb 21, 2011 Posts: 133
|
 Re: Creating control page icons
Also the Server status... I can't get it to read anything.
|
| Thu Jun 28, 2012 6:03 am |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6659 Location: Austin, Texas
|
 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)
|
| Thu Jun 28, 2012 8:22 am |
|
|