Irrigation caddy

Posted on
Tue Jun 09, 2015 7:36 pm
Korey offline
User avatar
Posts: 810
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Irrigation caddy

tornado wrote:

Hope this helps others.



Thanks!

You would really think that the irrigation caddy guys would make a proper indigo plugin themselves, would sure help sell a lot more units.. I don't get it.. :?

--
Korey

Posted on
Sun Jul 12, 2015 3:01 pm
tapel offline
Posts: 1
Joined: Apr 25, 2012

Re: Irrigation caddy

In case anyone is interested, you can also get detailed information about each program by using the following url:

http://<YOUR IC ADDRESS>/js/indexVarsDyn.js?program=1

Change the program number to any valid program number. You'll get something like this:

Code: Select all
var iv = {
   progNumber : '1',
   progAllowRun : 1,
   days : [1,0,1,0,1,0,1],
   progStartTimeHr : [2,12,12,12,12],
   progStartTimeMin : [0,0,0,0,0],
   isAM : [1,1,1,1,1],
   zNames : ["Back Front Drive Flower","Front Sod Spray","Front Sod Rotors","N of House Rotors","E By Pond Rotors","W Sod Rotors","SE Sod Rotors","N Flower Spray","N S Strips at House"],
   maxZRunTime : 60,
   maxZones : 9,
   zDur : [{hr:0, min:6},{hr:0, min:20},{hr:0, min:24},{hr:0, min:20},{hr:0, min:20},{hr:0, min:33},{hr:0, min:20},{hr:0, min:8},{hr:0, min:8}],
   everyNDays : 0,
   evenOdd : 2,
   maxProgs : 3,
   startTimesStatus : [0, 0, 0, 0],
   hostname : 'IRRIGATIONCADDY',
   ipAddress : '192.168.X.XXX'
}

Posted on
Sat Dec 05, 2015 6:57 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Irrigation caddy

Does anyone know how t access the log so I can see how much water is used.i have a flow sensor connected and can see the log. Via the web interface. Just need to see if I can get it displayed on a control page

Whizzo any help would be appreciated

Posted on
Sat Dec 12, 2015 7:23 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Irrigation caddy

Additional info:

This is how I can get the information from the unit.

http://192.168.0.18/usage.json?end=5049 ... =502268400

Note the range is 31 days. ( end - start ), in seconds. you can make the range anything you want.

The seconds start counting from 1/1/2000.
Note the start is "today" in seconds from 1/1/2000
The end is 31 days after that.

The log file looks like this:

[{"time":503209559,"log_time":503209569,"vol":0.50,"prog":1,"zone":1},{"time":503209569,"log_time":503209579,"vol":1.00,"prog":1,"zone":1},{"time":503209579,"log_time":503209589,"vol":1.50,"prog":1,"zone":1},{"time":503209589,"log_time":503209599,"vol":1.00,"prog":1,"zone":1},{"time":503209599,"log_time":503209609,"vol":1.00,"prog":1,"zone":1},{"time":503209609,"log_time":503209619,"vol":2.00,"prog":1,"zone":1},{"time":503209619,"log_time":503209629,"vol":1.00,"prog":1,"zone":1},{"time":503209629,"log_time":503209639,"vol":1.50,"prog":1,"zone":1},{"time":503209639,"log_time":503209649,"vol":1.50,"prog":1,"zone":1},{"time":503209649,"log_time":503209660,"vol":2.00,"prog":1,"zone":1},{"time":503209660,"log_time":503209670,"vol":1.00,"prog":1,"zone":1},{"time":503209670,"log_time":503209680,"vol":1.50,"prog":1,"zone":1},{"time":503209680,"log_time":503209690,"vol":1.00,"prog":1,"zone":1},{"time":503209690,"log_time":503209700,"vol":1.50,"prog":1,"zone":1},{"time":503209700,"log_time":503209710,"vol":1.00,"prog":1,"zone":1},{"time":503209710,"log_time":503209720,"vol":1.50,"prog":1,"zone":1},{"time":503209720,"log_time":503209730,"vol":1.50,"prog":1,"zone":1},{"time":503209730,"log_time":503209740,"vol":1.00,"prog":1,"zone":1},{"time":503209740,"log_time":503209750,"vol":1.50,"prog":1,"zone":1},{"time":503209750,"log_time":503209761,"vol":1.50,"prog":1,"zone":1},{"time":503209761,"log_time":503209774,"vol":2.00,"prog":1,"zone":1},{"time":503209774,"log_time":503209784,"vol":1.50,"prog":1,"zone":1},{"time":503209784,"log_time":503209794,"vol":1.00,"prog":1,"zone":1},{"time":503209794,"log_time":503209804,"vol":2.00,"prog":1,"zone":1},{"time":503209804,"log_time":503209814,"vol":1.00,"prog":1,"zone":1},{"time":503209814,"log_time":503209824,"vol":1.50,"prog":1,"zone":1},{"time":503209824,"log_time":503209834,"vol":1.50,"prog":1,"zone":1},{"time":503209834,"log_time":503209844,"vol":1.00,"prog":1,"zone":1},{"time":503209844,"log_time":503209854,"vol":1.00,"prog":1,"zone":1},{"time":503239187,"log_time":503239198,"vol":0.50,"prog":1,"zone":2},{"time":503239198,"log_time":503239209,"vol":1.50,"prog":1,"zone":2},{"time":503239209,"log_time":503239219,"vol":1.00,"prog":1,"zone":2},{"time":503239219,"log_time":503239229,"vol":1.50,"prog":1,"zone":2},{"time":503239229,"log_time":503239239,"vol":1.50,"prog":1,"zone":2},{"time":503239239,"log_time":503239249,"vol":1.00,"prog":1,"zone":2},{"time":503239249,"log_time":503239259,"vol":1.50,"prog":1,"zone":2},{"time":503239259,"log_time":503239269,"vol":1.50,"prog":1,"zone":2},{"time":503239269,"log_time":503239279,"vol":1.50,"prog":1,"zone":2},{"time":503239279,"log_time":503239289,"vol":1.50,"prog":1,"zone":2},{"time":503239289,"log_time":503239299,"vol":1.50,"prog":1,"zone":2},{"time":503239299,"log_time":503239310,"vol":2.00,"prog":1,"zone":2},{"time":503239310,"log_time":503239320,"vol":1.50,"prog":1,"zone":2}]



Now I am not much of a programmer but is there a way to edit the plugin to get the log file at the above address and then create a graphic interpretation as an image via an action just like the other actions. I can then display it in the control page.

Posted on
Sun Dec 13, 2015 3:18 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Irrigation caddy

Farberm,

Not specifically related to the IrrigationCaddy, but there is another plugin that might help.

IndigoPlotD: viewforum.php?f=165

I was also thinking of a another plugin which came out recently, but it's for XML not JSON.

viewtopic.php?f=134&t=15137


Sent from my iPhone using Tapatalk

Posted on
Thu Dec 31, 2015 5:36 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Irrigation caddy

thx I will try IndigoplotD

I had some help writing the script but it not quite correct yet but I am getting there

Posted on
Thu Dec 31, 2015 5:50 pm
DaveL17 offline
User avatar
Posts: 6739
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Irrigation caddy

howartp wrote:
Farberm,

Not specifically related to the IrrigationCaddy, but there is another plugin that might help.

IndigoPlotD: viewforum.php?f=165

I was also thinking of a another plugin which came out recently, but it's for XML not JSON.

viewtopic.php?f=134&t=15137


Sent from my iPhone using Tapatalk

Just a small point of order on one point. The referenced plugin (GhostXML) now supports JSON as well as XML. (Although it hasn't been renamed to reflect that fact.)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Jan 02, 2016 5:08 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Irrigation caddy

Thanks Dave - I meant to pop back and update this thread when you did your update but I obviously didn't.


Sent from my iPhone using Tapatalk

Posted on
Sat Jan 02, 2016 7:45 pm
DaveL17 offline
User avatar
Posts: 6739
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Irrigation caddy

No worries!


Sent from my iPhone using Tapatalk

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Mar 05, 2016 11:33 am
Korey offline
User avatar
Posts: 810
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Irrigation caddy - polling issues?

chobo997 wrote:
Fellow Irrigation Caddy users,

I just acquired a new IC-W1 V2 and I'm having some issues related to polling via ethernet (full Wi-Fi polling testing underway). The device consistently hangs (and must be power cycled) after a certain number of polling requests are made via the api. Irrigation Caddy support has not indicated that this is a known issue.

So... Two questions:

1. Is anyone having issues with their Irrigation Caddy becoming unresponsive after a certain amount of time / number of polling requests?
2. How frequently is everyone polling for the current status?

Thanks in advance for any help!


I just had mine upgraded to V2 as well, and have the same symptoms of it hanging using ethernet. :? :cry:

Wifi seems fine (so far)

--
Korey

Posted on
Sat Mar 05, 2016 6:44 pm
chobo offline
Posts: 126
Joined: Dec 08, 2013
Location: USA

Re: Irrigation caddy

Korey wrote:
chobo997 wrote:
Fellow Irrigation Caddy users,

I just acquired a new IC-W1 V2 and I'm having some issues related to polling via ethernet (full Wi-Fi polling testing underway). The device consistently hangs (and must be power cycled) after a certain number of polling requests are made via the api. Irrigation Caddy support has not indicated that this is a known issue.

So... Two questions:

1. Is anyone having issues with their Irrigation Caddy becoming unresponsive after a certain amount of time / number of polling requests?
2. How frequently is everyone polling for the current status?

Thanks in advance for any help!


I just had mine upgraded to V2 as well, and have the same symptoms of it hanging using ethernet. :? :cry:

Wifi seems fine (so far)


Had a feeling this issue wasn't an isolated one... I ended up using WiFi with the IC-W1 V2 and things have been stable for months. As a safety, I do use a z-wave appliance module on the IrrigationCaddy just in case I need to remotely power-cycle it. Good luck with yours!

Posted on
Fri Mar 11, 2016 4:54 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Irrigation caddy

Can someone help me debug this script. It always return the value of "0" when I know that is no the case

#! /usr/bin/env python2.6
# -*- coding: utf-8 -*-

import json
import urllib2
import datetime

#variable for the total gallons
daily_pool_water_fill = 0

#create the dynamic URL based on the current time
end_time = datetime.datetime.now().strftime('%s')
start_time = int(end_time) - (24*60*60)

url = "http://192.168.1.133:9090/usage.json?end={0}&start={1}".format(end_time, start_time)

#get the JSON response from the server
response = urllib2.urlopen(url).read()
# response = """[{"time":503209559,"log_time":503209569,"vol":0.50,"prog":1,"zone":1},{"time":503209569,"log_time":503209579,"vol":1.00,"prog":1,"zone":1},{"time":503209579,"log_time":503209589,"vol":1.50,"prog":1,"zone":1},{"time":503209589,"log_time":503209599,"vol":1.00,"prog":1,"zone":1},{"time":503209599,"log_time":503209609,"vol":1.00,"prog":1,"zone":1},{"time":503209609,"log_time":503209619,"vol":2.00,"prog":1,"zone":1},{"time":503209619,"log_time":503209629,"vol":1.00,"prog":1,"zone":1},{"time":503209629,"log_time":503209639,"vol":1.50,"prog":1,"zone":1},{"time":503209639,"log_time":503209649,"vol":1.50,"prog":1,"zone":1},{"time":503209649,"log_time":503209660,"vol":2.00,"prog":1,"zone":1},{"time":503209660,"log_time":503209670,"vol":1.00,"prog":1,"zone":1},{"time":503209670,"log_time":503209680,"vol":1.50,"prog":1,"zone":1},{"time":503209680,"log_time":503209690,"vol":1.00,"prog":1,"zone":1},{"time":503209690,"log_time":503209700,"vol":1.50,"prog":1,"zone":1},{"time":503209700,"log_time":503209710,"vol":1.00,"prog":1,"zone":1},{"time":503209710,"log_time":503209720,"vol":1.50,"prog":1,"zone":1},{"time":503209720,"log_time":503209730,"vol":1.50,"prog":1,"zone":1},{"time":503209730,"log_time":503209740,"vol":1.00,"prog":1,"zone":1},{"time":503209740,"log_time":503209750,"vol":1.50,"prog":1,"zone":1},{"time":503209750,"log_time":503209761,"vol":1.50,"prog":1,"zone":1},{"time":503209761,"log_time":503209774,"vol":2.00,"prog":1,"zone":1},{"time":503209774,"log_time":503209784,"vol":1.50,"prog":1,"zone":1},{"time":503209784,"log_time":503209794,"vol":1.00,"prog":1,"zone":1},{"time":503209794,"log_time":503209804,"vol":2.00,"prog":1,"zone":1},{"time":503209804,"log_time":503209814,"vol":1.00,"prog":1,"zone":1},{"time":503209814,"log_time":503209824,"vol":1.50,"prog":1,"zone":1},{"time":503209824,"log_time":503209834,"vol":1.50,"prog":1,"zone":1},{"time":503209834,"log_time":503209844,"vol":1.00,"prog":1,"zone":1},{"time":503209844,"log_time":503209854,"vol":1.00,"prog":1,"zone":1},{"time":503239187,"log_time":503239198,"vol":0.50,"prog":1,"zone":2},{"time":503239198,"log_time":503239209,"vol":1.50,"prog":1,"zone":2},{"time":503239209,"log_time":503239219,"vol":1.00,"prog":1,"zone":2},{"time":503239219,"log_time":503239229,"vol":1.50,"prog":1,"zone":2},{"time":503239229,"log_time":503239239,"vol":1.50,"prog":1,"zone":2},{"time":503239239,"log_time":503239249,"vol":1.00,"prog":1,"zone":2},{"time":503239249,"log_time":503239259,"vol":1.50,"prog":1,"zone":2},{"time":503239259,"log_time":503239269,"vol":1.50,"prog":1,"zone":2},{"time":503239269,"log_time":503239279,"vol":1.50,"prog":1,"zone":2},{"time":503239279,"log_time":503239289,"vol":1.50,"prog":1,"zone":2},{"time":503239289,"log_time":503239299,"vol":1.50,"prog":1,"zone":2},{"time":503239299,"log_time":503239310,"vol":2.00,"prog":1,"zone":2},{"time":503239310,"log_time":503239320,"vol":1.50,"prog":1,"zone":2}]"""
data = json.loads(response)

#calculate the gallons
for entry in data:
daily_pool_water_fill += entry['vol']


#Send value to indigo variable
indigo.variable.updateValue(410242667, value = str(daily_pool_water_fill))

Posted on
Wed May 11, 2016 12:23 pm
mcbryan offline
Posts: 1
Joined: May 11, 2016

Re: Irrigation caddy

Farberm, did you get anywhere with this? I have an IC-W1-v2 running the latest 2.3.4300 firmware and connected by wifi with a DHCP address.
The flow log on the IC browser interface fails after a day - it just hangs (it was better in 4250). I cannot get help from Support.
I wrote a script to process JSON log download which allowed me to discover that after a day or so the IC is returning invalid two digit zone numbers such as 46 instead of 4 - always the first digit is correct. I'm guessing the browser hangs because it cannot process these zones.
After a couple of days I find that even my script stops bringing over the latest flows. On examining the USB stick by plugging it into my computer, I find that the caddy is not even recording the latest flows on the stick. Powering off the caddy seems to let it start recording again while keeping the older records, but of course with a gap for the period it was not recording.
I would like to reboot the system and wondered if there is an API command to reboot. If you know of one I would appreciate. Its at least possible that a reboot will be as good as a power down. I'm 400 miles away so its hard to power down. I will add either a digital time switch or a zwave switch to the system next time I'm there to solve this, but in the meantime it would be interesting to see if a reboot works. Probably some of the Settings entries in the browser (or iOS app) cause a reboot on Save but I've not tested that.


farberm wrote:
Can someone help me debug this script. It always return the value of "0" when I know that is no the case

#! /usr/bin/env python2.6
# -*- coding: utf-8 -*-

import json
import urllib2
import datetime

#variable for the total gallons
daily_pool_water_fill = 0

#create the dynamic URL based on the current time
end_time = datetime.datetime.now().strftime('%s')
start_time = int(end_time) - (24*60*60)

url = "http://192.168.1.133:9090/usage.json?end={0}&start={1}".format(end_time, start_time)

#get the JSON response from the server
response = urllib2.urlopen(url).read()
# response = """[{"time":503209559,"log_time":503209569,"vol":0.50,"prog":1,"zone":1},{"time":503209569,"log_time":503209579,"vol":1.00,"prog":1,"zone":1},{"time":503209579,"log_time":503209589,"vol":1.50,"prog":1,"zone":1},{"time":503209589,"log_time":503209599,"vol":1.00,"prog":1,"zone":1},{"time":503209599,"log_time":503209609,"vol":1.00,"prog":1,"zone":1},{"time":503209609,"log_time":503209619,"vol":2.00,"prog":1,"zone":1},{"time":503209619,"log_time":503209629,"vol":1.00,"prog":1,"zone":1},{"time":503209629,"log_time":503209639,"vol":1.50,"prog":1,"zone":1},{"time":503209639,"log_time":503209649,"vol":1.50,"prog":1,"zone":1},{"time":503209649,"log_time":503209660,"vol":2.00,"prog":1,"zone":1},{"time":503209660,"log_time":503209670,"vol":1.00,"prog":1,"zone":1},{"time":503209670,"log_time":503209680,"vol":1.50,"prog":1,"zone":1},{"time":503209680,"log_time":503209690,"vol":1.00,"prog":1,"zone":1},{"time":503209690,"log_time":503209700,"vol":1.50,"prog":1,"zone":1},{"time":503209700,"log_time":503209710,"vol":1.00,"prog":1,"zone":1},{"time":503209710,"log_time":503209720,"vol":1.50,"prog":1,"zone":1},{"time":503209720,"log_time":503209730,"vol":1.50,"prog":1,"zone":1},{"time":503209730,"log_time":503209740,"vol":1.00,"prog":1,"zone":1},{"time":503209740,"log_time":503209750,"vol":1.50,"prog":1,"zone":1},{"time":503209750,"log_time":503209761,"vol":1.50,"prog":1,"zone":1},{"time":503209761,"log_time":503209774,"vol":2.00,"prog":1,"zone":1},{"time":503209774,"log_time":503209784,"vol":1.50,"prog":1,"zone":1},{"time":503209784,"log_time":503209794,"vol":1.00,"prog":1,"zone":1},{"time":503209794,"log_time":503209804,"vol":2.00,"prog":1,"zone":1},{"time":503209804,"log_time":503209814,"vol":1.00,"prog":1,"zone":1},{"time":503209814,"log_time":503209824,"vol":1.50,"prog":1,"zone":1},{"time":503209824,"log_time":503209834,"vol":1.50,"prog":1,"zone":1},{"time":503209834,"log_time":503209844,"vol":1.00,"prog":1,"zone":1},{"time":503209844,"log_time":503209854,"vol":1.00,"prog":1,"zone":1},{"time":503239187,"log_time":503239198,"vol":0.50,"prog":1,"zone":2},{"time":503239198,"log_time":503239209,"vol":1.50,"prog":1,"zone":2},{"time":503239209,"log_time":503239219,"vol":1.00,"prog":1,"zone":2},{"time":503239219,"log_time":503239229,"vol":1.50,"prog":1,"zone":2},{"time":503239229,"log_time":503239239,"vol":1.50,"prog":1,"zone":2},{"time":503239239,"log_time":503239249,"vol":1.00,"prog":1,"zone":2},{"time":503239249,"log_time":503239259,"vol":1.50,"prog":1,"zone":2},{"time":503239259,"log_time":503239269,"vol":1.50,"prog":1,"zone":2},{"time":503239269,"log_time":503239279,"vol":1.50,"prog":1,"zone":2},{"time":503239279,"log_time":503239289,"vol":1.50,"prog":1,"zone":2},{"time":503239289,"log_time":503239299,"vol":1.50,"prog":1,"zone":2},{"time":503239299,"log_time":503239310,"vol":2.00,"prog":1,"zone":2},{"time":503239310,"log_time":503239320,"vol":1.50,"prog":1,"zone":2}]"""
data = json.loads(response)

#calculate the gallons
for entry in data:
daily_pool_water_fill += entry['vol']


#Send value to indigo variable
indigo.variable.updateValue(410242667, value = str(daily_pool_water_fill))

Posted on
Sun Aug 14, 2016 3:22 pm
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Irrigation caddy

Mine is working fine. Do not have the issue you described.

Posted on
Tue Nov 28, 2017 6:43 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Irrigation caddy

this plugin is tremendous, seems to work flawlessly.

Who is online

Users browsing this forum: No registered users and 2 guests