Code by Scott שאול בן ישוע
Commit 8a154c88 authored by vls29's avatar vls29
Browse files

Two new endpoints

Found them when testing what was possible on the meters endpoint
parent 39eee20b
......@@ -59,6 +59,23 @@ This returns the current readings from the meters that measure solar, grid, batt
When site master or the Powerwalls are off, the response is: HTTP Status 502
_GET /api/meters/site_
Detailed information about the site specific meter.
request: `curl http://192.168.xxx.xxx/api/meters/site`
response: [see sample response here](samples/api-meters-site.json)
_GET /api/meters/solar_
Detailed information about the solar specific meter.
request: `curl http://192.168.xxx.xxx/api/meters/solar`
response: [see sample response here](samples/api-meters-solar.json)
---
**State of Charge / State of Energy**
_GET /api/system_status/soe_
......
[{"id":0,"location":"site","type":"neurio_tcp","cts":[true,true,false,false],"inverted":[false,false,false,false],"connection":{"ip_address":"Neurio-39546","port":443,"short_id":"39546","device_serial":"OBB3364102752","neurio_connected":true,"https_conf":{"client_cert":"/etc/site/certs/neurio/neurio.crt","client_key":"/etc/site/certs/neurio/neurio.key","server_ca_cert":"/etc/site/certs/neurio/neurio-ca-chain.cert.pem","max_idle_conns_per_host":1}},"Cached_readings":{"last_communication_time":"2018-06-10T16:51:46.187715089+01:00","instant_power":13.94000026769936,"instant_reactive_power":14.070000305771828,"instant_apparent_power":19.80627466405224,"frequency":49.95000076293945,"energy_exported":3724.253888912031,"energy_imported":26003.843888912033,"instant_average_voltage":247.52999755740166,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"v_l1n":247.3300018310547,"v_l2n":0.2199999988079071,"serial_number":"0x000004714B008720","version":"Tesla-0.0.7"}}]
\ No newline at end of file
[{"id":0,"location":"solar","type":"neurio_tcp","cts":[false,false,false,true],"inverted":[false,false,false,false],"connection":{"ip_address":"Neurio-39546","port":443,"short_id":"39546","device_serial":"OBB3364102752","neurio_connected":true,"https_conf":{"client_cert":"/etc/site/certs/neurio/neurio.crt","client_key":"/etc/site/certs/neurio/neurio.key","server_ca_cert":"/etc/site/certs/neurio/neurio-ca-chain.cert.pem","max_idle_conns_per_host":1}},"Cached_readings":{"last_communication_time":"2018-06-10T16:52:57.788560639+01:00","instant_power":318.8599853515625,"instant_reactive_power":129.94000244140625,"instant_apparent_power":344.3197561756678,"frequency":49.95000076293945,"energy_exported":3.8174999999938235,"energy_imported":125317.00444444444,"instant_average_voltage":246.82000732421875,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"v_l1n":246.8800048828125,"serial_number":"0x000004714B008720","version":"Tesla-0.0.7"}}]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment