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..
tornado wrote:
Hope this helps others.
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'
}
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
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!
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.
Wifi seems fine (so far)
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))
Users browsing this forum: No registered users and 10 guests