General Community > User Showcase

Adventures in irrigation

(1/3) > >>

iostream212:
My irrigation control has been very basic.  Started with my Rain Bird controller.  Then I automated my zones by using a CAT5 run from the irrigation controller to my ELK relay board.

Controller side:



ELK relay board side:



So this setup has been in place for several years, but nothing fancy. I use Elve to toggle zones every now and then.  Then the day came where I started a zone and left it running overnight.  One soggy lawn and $400 water bill later I decided it was time to further automate irrigation.

1.) First thing I did was add a safety check to prevent the zone from running past a certain time regardless of how the zone was started.  This was done by adding an 'Output state change' rule for each of the zones in my system.
This rule is fired whenever the sprinkler zone is turned on:


--- Code: ---System.Sleep((Number(vars.GetVariableValue(@"intSprinklerAutoStop"))) * 1000);
if ( ELKM1.OutputStates[10] == true )
{
ELKM1.TurnOffOutput(10);
}

--- End code ---

Notice I set a global variable for the runtime. That way if I ever need to change it I just change one variable instead of every rule for every zone.  Simply this rule sleeps for the total maximum defined runtime, then checks if the zone is still on past that runtime. If it is then it is turned off.

2.) Now that the safety system is in place I moved on to touchscreen creation. This is modified from the sample iPhone interface. The zone sliders are just boolean controls tied to ELK outputs.  The manual cycle button is where the new work on this screen set begins.



I wanted the button to have feedback of whether a irrigation cycle was running or not.  My irrigation cycle is run from my ISY and their irrigation module.  My irrigation cycle program in ISY is:


--- Code: ---If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Set Elk Output '1-FRONT LEFT' On
        Wait  5 minutes
        Set Elk Output '1-FRONT LEFT' Off
        Wait  1 second
        Set Elk Output '2-FRONT RIGHT' On
        Wait  5 minutes
        Set Elk Output '2-FRONT RIGHT' Off
        Wait  1 second
        Set Elk Output '3-BACK YARD' On
        Wait  5 minutes
        Set Elk Output '3-BACK YARD' Off
        Wait  1 second
        Set Elk Output '4-FRONT DRIP' On
        Wait  10 minutes
        Set Elk Output '4-FRONT DRIP' Off
        Wait  1 second
        Set Elk Output '5-BACK DRIP' On
        Wait  10 minutes
        Set Elk Output '5-BACK DRIP' Off
        Wait  1 second
        Set Elk Output '6-TREE DRIP' On
        Wait  10 minutes
        Set Elk Output '6-TREE DRIP' Off
 
Else
   - No Actions - (To add one, press 'Action')

--- End code ---

There is other code in ISY to only run the irrigation cycle based on EVTO and to send notifications upon running, but that is not the focus of this post. So now the focus becomes to have this button activate my ISY irrigation program and get feedback from the ISY if the cycle is running.  Here is the resulting code for the activate button:


--- Code: ---if (this.Text == "Activate")
{
http.RetrieveWebPage(@"http://isy:85/rest/programs/003C/runThen", @"User", @"Password");
this.Text="Running";
this.ForeColor = "#DC3C3C";
strResult = "running=\"then\"";
while (strResult.contains("running=\"then\""))
{
system.sleep(60000);
strResult = http.RetrieveWebPage(@"http://isy:85/rest/programs/003C", @"User", @"Password");
}
this.Text = "Activate";
this.ForeColor = "#6F789B";
end;
}
else
{
this.Text="Stopping...";
for(i=10;i<16;i++)
{
ELKM1.TurnOffOutput(i);
system.sleep(1000);
}
http.RetrieveWebPage(@"http://isy:85/rest/programs/003C/stop", @"User", @"Password");
this.Text = "Activate";
this.ForeColor = "#6F789B";
end;
}

--- End code ---

This code starts the cycle when pressed, then changes the button text to running. Then the program polls the ISY every minute until the cycle is finished. Once finished the button is reset.  If the button is pressed while running it cancels the cycle.  The program is stopped in ISY, all irrigation zones are cycled through and turned off, then the button is reset.

Here is the result when starting the cycle:



Here is the result when stopping the cycle:



This takes care of everything I set out to do with the exception of "What if I start the viewer when the irrigation cycle is already running?"  To fix that I added a control loaded event to the button that checks if the cycle is running and sets the button as appropriate.


--- Code: ---strResult =  http.RetrieveWebPage(@"http://isy:85/rest/programs/003C", @"User", @"Password");
if (strResult.contains("running=\"then\""))
{
this.Text="Running";
this.ForeColor = "#DC3C3C";
}

--- End code ---

Beauraraffome:
It's not the historians who write the history but real people. At Retro Porn Archive you'll find out every detail about the porn of those days. If you watch documentary you might think that they didn't have any sex at that time because public nudity and lust were under a severe ban. Ha-ha! The real lust of vintage women and men revealed here!
 
 
WATCH VINTAGE PORN HERE FOR FREE >>> Vintage Nude

 

Beauraraffome:
Ancient Sex rebecca lord vintage lingerie porn pics
They don't care about morals! What bothers and excites them is kinky banging! The classic of retro porn vintage. Fantastic photos and videos with vintage babes showing the best of their lingerie, nylon stockings and retro boots, various stages of stripping and @#&%! dicks.
 
Classic Sex Movie
 
http://vintagepornstars.mobi/category/?s=Best+vintage+french+porn&page=1
 



 
jean marie pallardy that 70s porn Classic Sex
Don't miss! You won't find these titles anywhere now. We'll take you straight to the erotic 80s, join now!

GeorgeHarthups:
https://bitbucket.org/snippets/kelvinibq1983c6/xLna4B/
https://bitbucket.org/snippets/eltonholmgren1986z8/R8AGLX/
 
Then, if your Mac is running OS X May 8, 2017 If you're using OS X Snow Leopard or Lion, get OS X updates by choosing Software Update from the Apple menu.
https://bitbucket.org/snippets/irvingcarlucci1995m1/9qnydq/
https://bitbucket.org/snippets/reubenmccarron1992g3/4Lnedb/
 
To install the app, simply download the .zip file I have included as an attachment, and Device: 9900 Bold; OS: 7.1.0.402; Carrier: Vodafone; Posts: 346 Join Date: Feb 2009; Location: Phoenix, AZ; Device: BlackBerry Z10; OS: 10.0. Here is an opened PDF file on BlackBerry Curve phone,.
https://bitbucket.org/snippets/fredrickyost1980g2/AArEaR/
https://www.flickr.com/groups/3939068@N24/discuss/72157688150820755/
 
You can. Oct 2, 2010 How to set up ADB (Android Debug Bridge) in Mac OSX SDK; Extract the ZIP file to your desired location; To get ADB, you need to install the SDK: Installing the SDK. Universal Download Latest Samsung Kies and SmartSwitch (Mac & Win).
http://zelfstandigbijberoep.be/viewtopic.php?f=13&t=4906&p=19386#p19386
http://forum.wfcorp.ru/viewtopic.php?f=6&t=1307&p=8379#p8379
http://exponline.ga/forums/showthread.php?tid=2922&pid=3011#pid3011
http://dayzsasurvival.com/viewtopic.php?f=11&t=5537&p=5644#p5644
http://virtualaurigny.com/forum1/index.php/topic,29352.new.html#new
 
http://google.com/q=bsfy8ead

GeorgeHarthups:
https://bitbucket.org/snippets/kelvinibq1983c6/xLna4B/
https://bitbucket.org/snippets/eltonholmgren1986z8/R8AGLX/
 
Posted on Mar 10, 2015.
https://bitbucket.org/snippets/issaclombardi1981v3/GGrdEG/
https://bitbucket.org/snippets/irvingcarlucci1995m1/9qnydq/
 
Aug 27, 2015 Image editing with powerpoint is easy and advanced,you are able to add effects,change the background among others. YouTube videos aren't watchable in the Internet browser; however, a free For office work such as creating and editing word documents, slideshow Apr 6, 2011 Enhanced editing tools support image grids and take the pain out of The software requires an Intel-based Mac with Mac OS X 10.5.8 or later.
https://www.flickr.com/groups/3909036@N24/discuss/72157685649119724/
https://www.flickr.com/groups/3908376@N24/discuss/72157685735681703/
 
Mid-2012 Retina Pro - shouldn't I have Mountain Lion? I have a mac book pro retina, 2.7 GHz i7, 16 GB. Step 2.
http://veera.biz/forum/viewtopic.php?f=4&t=2161&p=45973#p45973
http://www.vmroms.com/index.php?topic=6937.new#new
http://subtlecheats.com/forum/showthread.php?tid=107122&pid=140893#pid140893
http://forum.bowlinginzeeland.nl/viewtopic.php?f=2&t=12808&p=28553#p28553
http://zelfstandigbijberoep.be/viewtopic.php?f=9&t=3948&p=19378#p19378
 
http://google.com/q=xyjfqewc

Navigation

[0] Message Index

[#] Next page

Go to full version