MickMake / GoSungrow

GoLang implementation to access the iSolarCloud API updated by SunGrow inverters.
https://mickmake.com/
GNU General Public License v2.0
184 stars 48 forks source link

Data missing from queryMutiPointDataList #90

Closed monojk closed 1 year ago

monojk commented 1 year ago

Data from point p13119 (and other points starting with p1) are missing:

GoSungrow show template data 14067 . . 60 gives the data as can be seen here:

 DataTable AppService.queryMutiPointDataList.ResultData.Data - EndTimeStamp:20230925235959 MinuteInterval:60 Points:p13119,p83106 PsId:5153758 PsKeys:5153758_14_1_1,5153758_11_0_0 StartTimeStamp:20230925000000

┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Timestamp              ┃ Ps Key            ┃ 5153758_11_0_0.p13119    ┃ 5153758_11_0_0.p83106    ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ 2023-09-25 00:00:00    ┃ 5153758_11_0_0    ┃ 161                      ┃ 161                      ┃
┃ 2023-09-25 01:00:00    ┃ 5153758_11_0_0    ┃ 133                      ┃ 133                      ┃
┃ 2023-09-25 02:00:00    ┃ 5153758_11_0_0    ┃ 111                      ┃ 111                      ┃
┃ 2023-09-25 03:00:00    ┃ 5153758_11_0_0    ┃ 70                       ┃ 70                       ┃
┃ 2023-09-25 04:00:00    ┃ 5153758_11_0_0    ┃ 100                      ┃ 100                      ┃
┃ 2023-09-25 05:00:00    ┃ 5153758_11_0_0    ┃ 68                       ┃ 68                       ┃
┃ 2023-09-25 06:00:00    ┃ 5153758_11_0_0    ┃ 136                      ┃ 136                      ┃
┃ 2023-09-25 07:00:00    ┃ 5153758_11_0_0    ┃ 140                      ┃ 140                      ┃
┃ 2023-09-25 08:00:00    ┃ 5153758_11_0_0    ┃ 300                      ┃ 321                      ┃
┃ 2023-09-25 09:00:00    ┃ 5153758_11_0_0    ┃ 243                      ┃ 270                      ┃

Yet, the usage of queryMutiPointDataList misses the p1 points:

$ GoSungrow api get queryMutiPointDataList '{"ps_key": "5153758_4_1_1,5153758_11_0_0", "points": "p13119,p83106", "ps_id": "5153758", "start_time_stamp": "20230925080000", "end_time_stamp": "20230925090000", "minute_interval": "60"}'
{
        "data": {
                "2023-09-25T08:00:00Z": {
                        "timestamp": "20230925080000",
                        "ps_key": "5153758_11_0_0",
                        "points": {
                                "p83106": 321
                        }
                },
                "2023-09-25T09:00:00Z": {
                        "timestamp": "20230925090000",
                        "ps_key": "5153758_11_0_0",
                        "points": {
                                "p83106": 270
                        }
                }
        }
}
$ GoSungrow api get queryMutiPointDataList '{"ps_key": "5153758_4_1_1", "points": "p13119", "ps_id": "5153758", "start_time_stamp": "20230925080000", "end_time_stamp": "202309250900
00", "minute_interval": "60"}'
{
        "data": {}
}
$ GoSungrow api get queryMutiPointDataList '{"ps_key": "5153758_1_0_0", "points": "p13119", "ps_id": "5153758", "start_time_stamp": "20230925080000", "end_time_stamp": "202309250900
00", "minute_interval": "60"}'
{
        "data": {}
}

How can I get the data in json format? Are there alternatives?

monojk commented 1 year ago

User error with ps_key