Code by Scott שאול בן ישוע
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sha'ul ben Yeshua
powerwall2
Commits
6a445ff7
Unverified
Commit
6a445ff7
authored
Jun 21, 2018
by
Vince Loschiavo
Committed by
GitHub
Jun 21, 2018
Browse files
Merge pull request #7 from vls29/meters
Two new endpoints
parents
39eee20b
8a154c88
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6a445ff7
...
...
@@ -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_
...
...
samples/api-meters-site.json
0 → 100644
View file @
6a445ff7
[{
"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
samples/api-meters-solar.json
0 → 100644
View file @
6a445ff7
[{
"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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment