mirror of
https://github.com/MickMake/GoSungrow.git
synced 2025-04-01 00:18:23 +02:00
v1.1.0
This commit is contained in:
parent
3b0a464bba
commit
d7a220b496
2172
.idea/workspace.xml
generated
2172
.idea/workspace.xml
generated
File diff suppressed because it is too large
Load Diff
1
AppService_getAllPowerDeviceSetName.json
Normal file
1
AppService_getAllPowerDeviceSetName.json
Normal file
File diff suppressed because one or more lines are too long
1
AppService_getDeviceInfo.json
Normal file
1
AppService_getDeviceInfo.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"20220222b8654dfd80a9a1be174f9248","result_code":"1","result_msg":"success","result_data":{"dummy":""}}
|
1
AppService_getDeviceList.json
Normal file
1
AppService_getDeviceList.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"20220222453247e0bd43f8931435a3eb","result_code":"1","result_msg":"success","result_data":{"pageList":[{"attr_id":224572519,"chnnl_id":1,"command_status":0,"connect_state":0,"data_flag":2,"data_flag_detail":1813,"dev_fault_status":"3","dev_status":"1","device_area":"844763","device_code":1,"device_factory_date":null,"device_id":2,"device_model":"SH10RT","device_model_code":"SH10RT","device_model_id":714,"device_name":"SH10RT","device_pro_sn":"A2192703899","device_state":"3","device_sub_type":null,"device_sub_type_name":null,"device_type":14,"factory_name":"SUNGROW","installer_dev_fault_status":"3","inverter_model_type":4,"is_country_check":1,"is_has_function_enum":1,"is_has_the_ability":1,"is_init":1,"is_read_set":1,"is_replacing":0,"is_reset":0,"is_second":2,"is_third_party":1,"module_uuid":844774,"owner_dev_fault_status":"3","p24":null,"posx":null,"posy":null,"ps_id":1129147,"ps_key":"1129147_14_1_1","rel_state":1,"sn":"B2192301528","type_name":"Energy Storage System","uuid":844775},{"attr_id":224572507,"chnnl_id":1,"command_status":0,"connect_state":0,"data_flag":2,"data_flag_detail":1813,"dev_fault_status":"4","dev_status":"1","device_area":"844763","device_code":247,"device_factory_date":null,"device_id":1,"device_model":"WiNet-S","device_model_code":"WiNet-S","device_model_id":1361,"device_name":"WiNet-S","device_pro_sn":"B2192301528","device_state":"3","device_sub_type":null,"device_sub_type_name":null,"device_type":22,"factory_name":"SUNGROW","installer_dev_fault_status":"4","inverter_model_type":0,"is_country_check":1,"is_has_function_enum":1,"is_has_the_ability":1,"is_init":0,"is_read_set":1,"is_replacing":0,"is_reset":0,"is_second":0,"is_third_party":1,"module_uuid":844774,"owner_dev_fault_status":"4","p24":null,"posx":null,"posy":null,"ps_id":1129147,"ps_key":"1129147_22_247_1","rel_state":1,"sn":"B2192301528","type_name":"Communication Module","uuid":844774}],"rowCount":2}}
|
1
AppService_getDevicePoints.json
Normal file
1
AppService_getDevicePoints.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"2022022282714907b0d5a20ab9d70181","result_code":"1","result_msg":"success","result_data":[]}
|
1
AppService_getOrgListByName.json
Normal file
1
AppService_getOrgListByName.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"2022022270e3459db7c35dd22b4a4965","result_code":"1","result_msg":"success","result_data":[{"is_leaf":1,"org_id":362245,"org_name":"org-hdzmafrr"}]}
|
1
AppService_getPsDetail.json
Normal file
1
AppService_getPsDetail.json
Normal file
File diff suppressed because one or more lines are too long
1
AppService_getPsHealthState.json
Normal file
1
AppService_getPsHealthState.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"202202223bd04184bc2291b73e10217b","result_code":"1","result_msg":"success","result_data":{"ps_fault_status":"3","ps_health_status":"3","ps_state":"1"}}
|
1
AppService_getPsListByName.json
Normal file
1
AppService_getPsListByName.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"20220222206f4d7ea3edfa1d5a1fe9db","result_code":"1","result_msg":"success","result_data":[{"ps_id":1129147,"ps_name":"MickMake","ps_short_name":"B2192301528","ps_timezone":"GMT+10","ps_timezone_id":91,"share_type":"0"}]}
|
1
AppService_getTemplateList.json
Normal file
1
AppService_getTemplateList.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"20220222c7214fbe8904eb4dddd25cc8","result_code":"1","result_msg":"success","result_data":{"pageList":[{"template_id":8042,"template_name":"Critical","update_time":"2022-02-15 13:00:28"},{"template_id":8041,"template_name":"extras","update_time":"2022-02-15 09:40:04"},{"template_id":8036,"template_name":"C","update_time":"2022-02-15 09:31:35"},{"template_id":8039,"template_name":"v","update_time":"2022-02-15 09:31:10"},{"template_id":8040,"template_name":"A","update_time":"2022-02-15 09:30:56"},{"template_id":8034,"template_name":"Percent","update_time":"2022-02-15 09:30:41"},{"template_id":8038,"template_name":"MWh","update_time":"2022-02-15 09:09:22"},{"template_id":8037,"template_name":"MW","update_time":"2022-02-15 09:03:22"},{"template_id":8033,"template_name":"kW","update_time":"2022-02-15 09:01:19"},{"template_id":8035,"template_name":"Hours","update_time":"2022-02-15 08:55:56"},{"template_id":8031,"template_name":"kWh","update_time":"2022-02-15 07:57:36"},{"template_id":7981,"template_name":"Power","update_time":"2022-02-09 10:03:40"}],"rowCount":12}}
|
1
AppService_queryAllPsIdAndName.json
Normal file
1
AppService_queryAllPsIdAndName.json
Normal file
@ -0,0 +1 @@
|
||||
{"req_serial_num":"20220222144c46ac84b66f9d71019146","result_code":"1","result_msg":"success","result_data":{"pageList":[{"ps_id":1129147,"ps_name":"MickMake"}]}}
|
1
AppService_queryDeviceList.json
Normal file
1
AppService_queryDeviceList.json
Normal file
File diff suppressed because one or more lines are too long
@ -117,6 +117,11 @@ func cmdApiGetFunc(cmd *cobra.Command, args []string) {
|
||||
break
|
||||
}
|
||||
|
||||
Cmd.Error = ep.WriteFile()
|
||||
if Cmd.Error != nil {
|
||||
break
|
||||
}
|
||||
|
||||
if Cmd.ApiGetRaw {
|
||||
fmt.Printf("\n%v\n", ep.GetData(true))
|
||||
} else {
|
||||
@ -134,7 +139,7 @@ var cmdApiLogin = &cobra.Command{
|
||||
Example: PrintExamples("api login", ""),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: Cmd.SunGrowArgs,
|
||||
PreRunE: Cmd.ProcessArgs,
|
||||
Run: cmdApiLoginFunc,
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user