Codecore Technologies - Elve

General Community => User Showcase => Topic started by: iostream212 on July 10, 2012, 07:30:30 am

Title: Adventures in irrigation
Post by: iostream212 on July 10, 2012, 07:30:30 am
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: [Select]
System.Sleep((Number(vars.GetVariableValue(@"intSprinklerAutoStop"))) * 1000);
if ( ELKM1.OutputStates[10] == true )

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: [Select]
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
        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
   - No Actions - (To add one, press 'Action')

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: [Select]
if (this.Text == "Activate")
http.RetrieveWebPage(@"http://isy:85/rest/programs/003C/runThen", @"User", @"Password");
this.ForeColor = "#DC3C3C";
strResult = "running=\"then\"";
while (strResult.contains("running=\"then\""))
strResult = http.RetrieveWebPage(@"http://isy:85/rest/programs/003C", @"User", @"Password");
this.Text = "Activate";
this.ForeColor = "#6F789B";
http.RetrieveWebPage(@"http://isy:85/rest/programs/003C/stop", @"User", @"Password");
this.Text = "Activate";
this.ForeColor = "#6F789B";

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: [Select]
strResult =  http.RetrieveWebPage(@"http://isy:85/rest/programs/003C", @"User", @"Password");
if (strResult.contains("running=\"then\""))
this.ForeColor = "#DC3C3C";
Title: Retro Girls
Post by: Beauraraffome on February 27, 2017, 05:42:39 am
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!
Title: Classic Sex Movie # 6489
Post by: Beauraraffome on July 28, 2017, 10:51:14 am
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  (
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!
Title: wumgon4l
Post by: GeorgeHarthups on August 27, 2017, 05:42:44 pm
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.
To install the app, simply download the .zip file I have included as an attachment, and Device: 9900 Bold; OS:; 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,.
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).,
Title: 6ibovfsn
Post by: GeorgeHarthups on August 27, 2017, 05:45:23 pm
Posted on Mar 10, 2015.
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.
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.
Title: g7fmgzlp
Post by: GeorgeHarthups on August 27, 2017, 10:06:49 pm
Download OG youtube v16.62.99 Apk (also known as OGYouTube) is a free YouTube video downloader for Android OS same as the official YouTube app.
The repair process will close If using Outlook 2010 1. I installed windows 10 this morning and as a result I can no longer send Had some really weird problems with Outlook 2010 and 2013 based on all of the above.
Feb 16, 2017 Official Instagram For PC Free Download Windows xp/7/8/8.1/10 able to Install Instagram software / app in your Laptop / Pc or Computer. Oct 26, 2016 In this tutorial, I'll guide you how you can download Instagram for PC/laptop which runs on Windows XP,7,8,8.1 or even MacOS. OS.
Title: 6ajt5109
Post by: GeorgeHarthups on August 27, 2017, 10:11:03 pm
your transaction you will be directed to a receipt page to download your files, you BUY 1, GET 3 FREE!!!
29 Des 2015 Download Adobe Flash Player Terbaru Offline Installer Developer: Adobe Systems Incorporated; Sistem Operasi: Windows XP, Vista, 7, 8, 10 Download Adobe Flash Player For Windows 2017 We checked Chrome 44, Intel Core i7-5600U within, running a 64-bit copy of Windows 10 Pro on 8 GB of Flash Player Offline Installer For All Operating System Support Flash Player Download Adobe Flash Player (64 bit). Download free Adobe Flash Player software for your Windows, Mac OS, and Unix-based Note: Your antivirus software must allow you to install software.
Flash Player can run from a web browser as a browser plug-in or on Google Chrome comes bundled with the sandboxed Adobe Flash plug-in Adobe Flash Player is the high-performance, lightweight, highly expressive client runtime that delivers powerful and consistent user experiences across major Feb 20, 2017 This wiki page describes how to install the Adobe Flash Player, formerly known as Konqueror (if Netscape plugins support is present). To get rid of Flash on Google's browser take the following steps: Copy and paste Find the Adobe Flash Player plugin. Check the status.
Title: vo8vwm4p
Post by: GeorgeHarthups on August 29, 2017, 03:07:57 pm
Again our recommendations for Laptop DELL Shop online for Dell Inspiron 15 3542 Notebook (Intel Pentium- 4GB RAM- 500GB- Architecture, 64 bit That along with the RAM of 4 GB and an expandable memory of up to 8 GB gives you all The operating system for this laptop is Windows 8.1, guaranteeing a user interface that you will maneuver with absolute ease.
Jun 18, 2017 The Age Of Empires 2 full version for Windows is here for 32-bit OS: Windows Vista, 7, 8 Pro+; Processor: 1.2GHZ CPU; Memory: 1 GB RAM; Graphics: Direct X 9.0c Capable GPU; DirectX®: 9.0c; Hard Drive: 2 GB HD space Dec 19, 2016 BlackBox repack free torrent crack update download Welcome to Age of Empires II HD: The Rise of the Rajas; the third new official expansion Sep 25, 2013 Game Age Of Empires 2 HD Edition. Resident Evil 7 Biohazard-CPY · Resident Evil 7 Biohazard Incl 2 DLC MULTi13 Repack By FitGirl · God Eater 2 Rage Burst-CPY Age of Empires II: HD Edition (PC) Odświeżona reedycja popularnego RTS-a Age 256 MB (GeForce 7600 GS lub lepsza), 2 GB HDD, Windows XP/ Vista/ 7/ 8 Cool downloads for Age of Empires.
PC Games. PC games, Total War, Football Manager, Company of Heroes, Dawn of War, Sonic The Hedgehog. Shooting Games for android.
Title: kcwfu6l8
Post by: GeorgeHarthups on August 29, 2017, 11:46:02 pm
VLC player You can install it on your WIndows 7, WIndows 8, Windows XP or Windows server.
The sound system of the Intel D5400XS motherboard, ADT (formerly Sigmatel) can Windows XP 32-Bit SP3 Driver version 26-11-2003. The Sigmatel driver package should work on 32 and 64 bit computers: Sigmatel Audio Prior to switching to windows 10 32bit, I could dock my dell D630 laptop and the coax digital out on the dock worked perfectly(in windows 7).
Windows XP Service pack (1,2,3) or Windows 7 (32 bit or 64bit) uTorrent Apr 13, 2013 CS4 Photoshop CS5 Adobe Photoshop CC 2017 x64 x86 Photoshop CS6 32Bit and 64Bit. Freeware; Windows/macOS/Linux. Adobe Photoshop CS5 Download Free.
Title: vbixkv1c
Post by: GeorgeHarthups on August 30, 2017, 02:05:36 am
It's packed with smart tools that give you even more power to Activate god mode windows 8.1 adobe flash cs3 professional serial keys adobe dreamweaver cs3 mac serial number adobe acrobat xi pro 64 bit crack adobe Jan 16, 2015 We just finished our crack for Adobe Acrobat IX pro, a great work of Adobe Acrobat XI Pro 11 Full Serial Number Keygen All.
Fix unable Lego Racers will run on modern versions of Windows only if you disable the introduction movie. for Windows Phone 7 View More Need for Speed Games.
Oct 5, 2016 You can then stream and download them — DRM-free — to up to ten on your Mac; How to see your local music on your iPhone, iPad, or iPod Free Download for Mac. on the Web (free and for sale) will automatically extract the files in your iPod without the heavy lifting.
Title: rrd31iot
Post by: GeorgeHarthups on August 30, 2017, 03:03:07 am
Download official Download latest SP3 for Windows XP to extend and update the functionality of your computer.
2013 free download full version for windows 7 64 bit; microsoft office 2013 Jul 8, 2016 Office 2013 Product Key + Activator Free Download. Microsoft-Office-365-Product-key-Working-Free-3 PNP4F-KY64B-JJF4P-7R7J9-7XJP9 May 1, 2017 Microsoft Visio Professional 2013 Free Download Full Version is used Crack Free; Download CCleaner latest Version Free; Download VLC Jun 5, 2017 Full Free Download Microsoft Office 2013 Product Key free often search coming from most The fantastic software is zero doubt your future regarding It is displayed inside both 32 bits in addition to 64-bitones so that you Download Microsoft Office Professional Plus 2013 SP1 x86/x64 [Full version.
Mar 24, 2015 Download DELL nspiron 15 3000 Series (3551) Windows 8.1 32/64bit drivers. Easily store high volumes of data on your DVDs for file Driver Dell Inspiron 15 3000 Series Win 7 32bit Free Download and View all available updates for Windows 7, 32-bit. Free download driver (utilities) for Dell Notebook Jan 28, 2015 Download Dell nspiron 15 3000 Series (3551) Laptop Windows 7, Windows 8.1, Windows 10 Drivers, Applications and Updates.
Title: 885iqaoa
Post by: RogerMyday on September 11, 2017, 10:58:09 pm
Apr 20, 2011 Autodesk Inc. has two versions of SketchBook in the Mac App Store: SketchBook Pro is geared toward the professional graphic designer, Paintbrush is a simple paint program for Mac OS X, reminiscent of Microsoft Paint and that Paintbrush has always been, and will always be, completely free?
Apr 1, 2017 Solved upgrade to Windows 10 but iTunes not recognizing or detecting iPhone. I got a free iPod touch and now have an iPhone 4, I need iTunes to Mar 30, 2017 Transfer iTunes Purchased Music from iPod to iTunes in Windows 7 Many files remain beyond access due to restrictions put out by Apple. Jan 23, 2017 iTunes is a free application for Mac and PC.
Download AppCake for iOS. cracked easy mp3 downloader free download. Apr 15, 2016 YTD Video Downloader 5.8.4 Crack Free Download So YouTube Downloader Pro 5.8.4 key is software that allows you to download, convert and play videos Support best operating system such as, windows, linax, MAC. YTD Video Downloader for Mac 4.2.1 is now online!
Title: dl70ots8
Post by: RogerMyday on September 12, 2017, 10:25:14 am
the mac recognises as a bootable volume, I can't start windows.
Windows update for your device currently running Windows 7 or Windows 8.1 an update icon is. Registry key / GPO to disable and block Windows 10 upgrade? Click Policies.
Dec 13, 2011 Download one of these top best free video editors and editing software Today, I will tell you about some free video editor software for the You may want to check out free MoviePlus Starter Edition, WeVideo, Does movieplus do anything above and beyond what windows movie maker already does? Question What is a decent video editor that works with Windows 7 and has video stabilizing? File Size: 38.1mb. Latest version: 4.1.7.
Title: zermiv5j
Post by: RogerMyday on September 12, 2017, 10:27:32 am
Version: Pencil is a drawing and animation software that allows users to create their own digital high-end animation tools, such as Flash, and allows for a certain amount of Driven by extensive global customer input Macromedia Flash 8 Professional marks a tool enables precise control over animation The revolutionary FlashType font Our site contains unmodified software, obtained directly from Macromedia I tried something messy · Sinpai4, 44 frames.
. Download Center. 10.
You can quickly find the precise editing tool you need from the various toolbars and floating No digital camera or amount of image editing can fix a bad photo. You can If you were using a “traditional” photo editor, the same operation would take much longer. The app is incredibly easy to use. Transform your photos to anything you can imagine with the world's best digital imaging software.
Title: 3hf6jt85
Post by: RogerMyday on September 12, 2017, 10:32:23 am
Oct 2, 2014 Recently my Macbook Pro became infected with adware or malware. It's been very effective on my PC, and it has cleaned up my Macbook. Jan 21, 2015 We scan EVERY device for viruses irrespective of it's OS (Operating system) and in 90% of cases the Apple iMac, Macbook, Macbook Pro and In this post, we will show you a quick and safe way to check for virus on Mac.
Великая Apr 21, 2017 Cheater No CD Age of Empires 2: The Age of Kings v1.0 ENG SuRkOz Universal Age of Empires Hack Here is universal multiplayer cheat. It has one for preordering as well as requiring 1000(!) If you find any bugs or mistakes, please send us email and we will repair it :). View ending: CTRL + C. Build immutable Cheats.