Author Topic: Irrigation Caddy API  (Read 5660 times)

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Irrigation Caddy API
« on: March 24, 2014, 08:57:30 am »
In case anyone needs it, IrrigationCaddy does have a documented API. They only give it out if you sign a non-disclosure agreement. Support was quick to send it to me once I signed. If you want it, just email support@irrigationcaddy.com

Offline zaphodb

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #1 on: May 25, 2014, 09:59:32 am »
I emailed them and asked for it but they no longer supply the API.  Can anyone share with me some info on how to control it from something like Java or VB Script?

I would like to at least do some automation around rain.  Something like run a script at 1am that says "if it is going to rain more than 5 mm today then turn don't water today".

But to do so I would need to get some weather info but I am pretty sure that this type of info is available - this web site has some info:  http://superdevresources.com/weather-forecast-api-for-developing-apps/

It would be even nicer if you could use something like a recipe in IFTTT

Offline zaphodb

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #2 on: May 25, 2014, 10:11:27 am »
One other bit of info that might be a bit useful.  Back in 2011 someone posted wrote a CLI that let's you control the IC.

I have the latest version of the IC - I think it is called the W1.  The problem is some of the commands don't seem to work - however commands for starting and stopping the controller do work.  So at least you can start and stop the irrigation

Offline Csorba

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #3 on: July 31, 2014, 06:11:28 pm »
Hi ALL,
  I have written a CLI for the Irrigation Caddy similar to the one mentioned below but much more powerful and it works with the web based controller lastest IC-W1-1.2.2623. I am in the beginning phase of beta testing it and I was wondering if anyone is interested. I mainly built it to be able to do  the below items.

1. get current running status from Irrigation Caddy (if running then which zone and for how long is the running program)

2. start a zone

3. start a program

4. stop any running program/zone

5 get full status report from irrigation with this link current flow sensor data, rain sensor info etc.

 below is a sample of the available data from the status CLI app  have built. my app returns this as a string so you could parse it out.

{"zoneNumber":10,"progNumber":6,"allowRun":true,"running":true,"useCloud":false,
"cloudConn":"ok","useSensor1":true,"isSensor1Open":false,"isRaining":false,"useS
ensor2":false,"useMaster":true,"flowRate":0.00,"flowVolumeSec":-450765404,"flowV
olume":0.00,"zoneSecLeft":274,"progSecLeft":274,"expBlocks":[],"maxZones":10,"to
talZones":11,"zoneLog":[{"zoneNumber":10,"timestamp":460132009,"offset":25.00},{
"zoneNumber":10,"timestamp":460128123,"offset":8.00},{"zoneNumber":10,"timestamp
":460128015,"offset":12.00},{"zoneNumber":10,"timestamp":460128068,"offset":5.00
}],"zones": [{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun
":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":
0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr
":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":5},{"isRun
":true,"hr":0,"min":0}]}


Let me know if anyone is interested in BETA Testing.

Chris

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Re: Irrigation Caddy API
« Reply #4 on: August 01, 2014, 11:19:43 pm »
I mainly just use curl to turn the system on and off based on weather conditions. At this point, I don't have any further need unless I start using moisture sensors or need some control over the zones.

However, if we could determine a way to predict soil moisture based on temp, precipitation, and irrigation history, then that could be useful in watering my flowers and garden.

Offline duevelocita

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #5 on: August 06, 2014, 12:53:42 pm »
Csorba, I'm interested. I'm actually more interested in an API, but I'd love to test your CLI.

Thanks for offering!

Offline cstsangtxd

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #6 on: August 17, 2014, 12:05:47 am »
Hi, I would definitely be interested in testing this and maybe use it daily.

Hi ALL,
  I have written a CLI for the Irrigation Caddy similar to the one mentioned below but much more powerful and it works with the web based controller lastest IC-W1-1.2.2623. I am in the beginning phase of beta testing it and I was wondering if anyone is interested. I mainly built it to be able to do  the below items.

1. get current running status from Irrigation Caddy (if running then which zone and for how long is the running program)

2. start a zone

3. start a program

4. stop any running program/zone

5 get full status report from irrigation with this link current flow sensor data, rain sensor info etc.

 below is a sample of the available data from the status CLI app  have built. my app returns this as a string so you could parse it out.

{"zoneNumber":10,"progNumber":6,"allowRun":true,"running":true,"useCloud":false,
"cloudConn":"ok","useSensor1":true,"isSensor1Open":false,"isRaining":false,"useS
ensor2":false,"useMaster":true,"flowRate":0.00,"flowVolumeSec":-450765404,"flowV
olume":0.00,"zoneSecLeft":274,"progSecLeft":274,"expBlocks":[],"maxZones":10,"to
talZones":11,"zoneLog":[{"zoneNumber":10,"timestamp":460132009,"offset":25.00},{
"zoneNumber":10,"timestamp":460128123,"offset":8.00},{"zoneNumber":10,"timestamp
":460128015,"offset":12.00},{"zoneNumber":10,"timestamp":460128068,"offset":5.00
}],"zones": [{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun
":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":
0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr
":0,"min":0},{"isRun":true,"hr":0,"min":0},{"isRun":true,"hr":0,"min":5},{"isRun
":true,"hr":0,"min":0}]}


Let me know if anyone is interested in BETA Testing.

Chris

Offline zaphodb

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #7 on: August 18, 2014, 05:54:37 pm »
I mainly just use curl to turn the system on and off based on weather conditions. At this point, I don't have any further need unless I start using moisture sensors or need some control over the zones.

However, if we could determine a way to predict soil moisture based on temp, precipitation, and irrigation history, then that could be useful in watering my flowers and garden.
Can you give an example of how you use curl to do this?

With regards to your second question - there are folks doing stuff like this with the OpenSprinklerPi project.  If you know temp, wind and sunlight amount then you can determine the Evaporation Rate and determine how much to water. 

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 752
  • Karma: +40/-7
Re: Irrigation Caddy API
« Reply #8 on: August 19, 2014, 01:57:03 am »

Offline zaphodb

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #9 on: August 19, 2014, 09:10:21 am »
Thanks - I don't actually use Vera.  I have a Control4 HA system but I haven't integrated my IC into this but I wouldn't mind writing some code to stop my controlling from running if it is going to rain a lot in the next few days.

What other controls can you do via a URL?  Can you change the runtime for a specific zone?

Offline zaphodb

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #10 on: August 19, 2014, 06:06:06 pm »
FYI, if anyone is interested in more about algorithms for determining how much to irrigate then check out the links from this thread on the OSPi forum : 
http://www.fao.org/docrep/x0490e/x0490e04.htm
http://www.agf.gov.bc.ca/resmgmt/publist/500Series/577100-3.pdf
http://www.agf.gov.bc.ca/resmgmt/publist/600Series/619000-1.pdf

Offline mcbryan

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Irrigation Caddy API
« Reply #11 on: May 25, 2016, 10:51:05 am »
Do you know an API command to reboot the IC W1 v2 running latest firmware

I mainly just use curl to turn the system on and off based on weather conditions. At this point, I don't have any further need unless I start using moisture sensors or need some control over the zones.

However, if we could determine a way to predict soil moisture based on temp, precipitation, and irrigation history, then that could be useful in watering my flowers and garden.