This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Tesla Powerwall Local Connection broken with New Release
#12
That works!

What's the best way to parse the response into a table so I can easily extract the values?

For example:

battery.instant_power
solar.instant_power
site.instant_power
load.instant_power

Here's a sample response

Code:
* string: HTTP / 1.1 200 OK
Cache - Control: no - cache, no - store
Cache - Control: no - cache, no - store
Content - Type: application / json
Date: Mon, 05 Jul 2021 14: 03: 05 GMT
Connection: close
Transfer - Encoding: chunked

8 b8 {
    "site": {
        "last_communication_time": "2021-07-06T00:03:05.470976626+10:00",
        "instant_power": -28.579999923706055,
        "instant_reactive_power": -1695.0799560546875,
        "instant_apparent_power": 1695.3208763576292,
        "frequency": 50,
        "energy_exported": 1540273.3280457454,
        "energy_imported": 40741163.06999019,
        "instant_average_voltage": 244.44000244140625,
        "instant_total_current": 0,
        "i_a_current": 0,
        "i_b_current": 0,
        "i_c_current": 0,
        "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
        "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
        "timeout": 1500000000,
        "num_meters_aggregated": 1
    },
    "battery": {
        "last_communication_time": "2021-07-06T00:03:05.490090497+10:00",
        "instant_power": 1450,
        "instant_reactive_power": 10,
        "instant_apparent_power": 1450.0344823486096,
        "frequency": 49.999,
        "energy_exported": 7754520,
        "energy_imported": 8834250,
        "instant_average_voltage": 244.20000000000002,
        "instant_total_current": -33.6,
        "i_a_current": 0,
        "i_b_current": 0,
        "i_c_current": 0,
        "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
        "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
        "timeout": 1500000000,
        "num_meters_aggregated": 2
    },
    "load": {
        "last_communication_time": "2021-07-06T00:03:05.469970299+10:00",
        "instant_power": 1461.8383691537629,
        "instant_reactive_power": -1656.2864201852196,
        "instant_apparent_power": 2209.1301734438607,
        "frequency": 50,
        "energy_exported": 0,
        "energy_imported": 36597478.81583333,
        "instant_average_voltage": 244.44000244140625,
        "instant_total_current": 5.980356547837028,
        "i_a_current": 0,
        "i_b_current": 0,
        "i_c_current": 0,
        "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
        "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
        "timeout": 1500000000
    },
    "solar": {
        "last_communication_time": "2021-07-06T00:03:05.469970299+10:00",
        "instant_power": 2.609999895095825,
        "instant_reactive_power": 57.65999984741211,
        "instant_apparent_power": 57.71904089514971,
        "frequency": 50,
        "energy_exported": 10814591.854183536,
        "energy_imported": 12338272.780294647,
        "instant_average_voltage": 244.47000122070312,
        "instant_total_current": 0,
        "i_a_current": 0,
        "i_b_current": 0,
        "i_c_current": 0,
        "last_phase_voltage_communication_time": "0001-01-01T00:00:00Z",
        "last_phase_power_communication_time": "0001-01-01T00:00:00Z",
        "timeout": 1500000000,
        "num_meters_aggregated": 1
    }
}
0

Many thanks

Kind Regards
James
Reply


Messages In This Thread
RE: Tesla Powerwall Local Connection broken with New Release - by jamesng - 05.07.2021, 14:07

Forum Jump: