I'm using the sunMAX microinverters and gateways for a 80 panel install. I have 56 panels (roof mount) talking to gateway1 and 24 panels (ground mount) talking to gateway2.
The gateways are open meaning that I can point a browser to each gateway's IP address and collect stats via its REST API.
The gateways run busybox linux and I can get basic stats by simply connecting to the IP directly. What I get is this:
And I can change the graph to show Energy by Day or Year as well. In addition, I get daily views of the following:
And lastly, I can open each array and see the individual panels like so:
So this is decent out of the box stats, but I'd like to combine the stats from both gateways into a single "dashboard" that contains a lot more data on a single page, and with better resolution graphs.
So I was thinking using something like Python Requests to pull in the stats from the gateways and server them up locally. The REST API is pretty straight forward and pointing a browser to the below URLs will return raw data:
he metrics queries take a few optional arguments:
end_day: last day to return query results for (in form YYYY-MM-DD)
timescale: may be daily, monthly, or yearly for the metric "energy", daily only for the others
num_days: if the timescale is daily, the number of days' data to return (working backwards from end_day). Defaults to 1.
You can also get the latest real-time sample data for site, array or panel via each of the following:
So here's an example of what gets returned if I request monthly timescale for January for all the arrays connected to the roof mounted gateway:
{"metric_name": "energy", "timescale": "monthly", "slot_length_secs": null, "end_day": "2017-01-31", "sunset": "1485928800", "num_days": 31, "sunrise": "1485874800", "result": [38202, 4447, 10645, 28549, 11987, 13642, 767, 2118, 1613, 1645, 13158, 35975, 15473, 16631, 11206, 6406, 13511, 42756, 34555, 18124, 9648, 8019, 5602, 33816, 52227, 46147, 29520, 51370, 17355, 43534, 52378]}
So on January 1st, for example, the roof array produced 38202 Wh (38.202 kWh).
So my challenge is that the only thing I know about python is that its a snake that you don't want to mess around with.
I'm wondering if someone has already gone to the trouble of collecting similar data via REST API and already setup nice dashboards showing Energy, Panel Voltage, AV Voltage, AC Frequency, Output Power and Temp, that can all be scaled in or out, as well as the ability to drill down to the array or panel level?
Thanks
The gateways are open meaning that I can point a browser to each gateway's IP address and collect stats via its REST API.
The gateways run busybox linux and I can get basic stats by simply connecting to the IP directly. What I get is this:
And I can change the graph to show Energy by Day or Year as well. In addition, I get daily views of the following:
And lastly, I can open each array and see the individual panels like so:
So this is decent out of the box stats, but I'd like to combine the stats from both gateways into a single "dashboard" that contains a lot more data on a single page, and with better resolution graphs.
So I was thinking using something like Python Requests to pull in the stats from the gateways and server them up locally. The REST API is pretty straight forward and pointing a browser to the below URLs will return raw data:
he metrics queries take a few optional arguments:
end_day: last day to return query results for (in form YYYY-MM-DD)
timescale: may be daily, monthly, or yearly for the metric "energy", daily only for the others
num_days: if the timescale is daily, the number of days' data to return (working backwards from end_day). Defaults to 1.
You can also get the latest real-time sample data for site, array or panel via each of the following:
So here's an example of what gets returned if I request monthly timescale for January for all the arrays connected to the roof mounted gateway:
{"metric_name": "energy", "timescale": "monthly", "slot_length_secs": null, "end_day": "2017-01-31", "sunset": "1485928800", "num_days": 31, "sunrise": "1485874800", "result": [38202, 4447, 10645, 28549, 11987, 13642, 767, 2118, 1613, 1645, 13158, 35975, 15473, 16631, 11206, 6406, 13511, 42756, 34555, 18124, 9648, 8019, 5602, 33816, 52227, 46147, 29520, 51370, 17355, 43534, 52378]}
So on January 1st, for example, the roof array produced 38202 Wh (38.202 kWh).
So my challenge is that the only thing I know about python is that its a snake that you don't want to mess around with.
I'm wondering if someone has already gone to the trouble of collecting similar data via REST API and already setup nice dashboards showing Energy, Panel Voltage, AV Voltage, AC Frequency, Output Power and Temp, that can all be scaled in or out, as well as the ability to drill down to the array or panel level?
Thanks
Comment