GlennNZ wrote:
Do you have web page access? (seems so some reading)
The basic info on Envoy-S is
http://IP/production.json
But if web access - Chrome Debug will point to other links as well (googling as I type)
Glenn
Yes, here's a script a wrote a couple of years ago:
Code: Select all
import urllib2
import simplejson
f = urllib2.urlopen('http://envoy.bollar.com/api/v1/production')
json_string = f.read()
parsed_json = simplejson.loads(json_string)
enphaseCurrentPower = parsed_json['wattsNow']
enphaseEnergyLifetime = parsed_json['wattHoursLifetime']
enphaseEnergyToday = parsed_json['wattHoursToday']
enphaseEnergyWeek = parsed_json['wattHoursSevenDays']
indigo.variable.updateValue(1404241247, value=str(enphaseCurrentPower))
indigo.variable.updateValue(1837054298, value=str(enphaseEnergyLifetime))
indigo.variable.updateValue(1329850163, value=str(enphaseEnergyToday))
indigo.variable.updateValue(1342408763, value=str(enphaseEnergyWeek))
f.close()
And the results from the raw call:
Code: Select all
{
"wattHoursToday": 32167,
"wattHoursSevenDays": 234269,
"wattHoursLifetime": 66336922,
"wattsNow": 0
}
Like I said. Limited. I switched to getting my data from the online version of the API.
Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts