Skip to content

Commit

Permalink
Committed v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MickMake committed Oct 8, 2022
1 parent 0daafb1 commit d24e699
Show file tree
Hide file tree
Showing 30 changed files with 739 additions and 4,170 deletions.
1,127 changes: 39 additions & 1,088 deletions .idea/workspace.xml

Large diffs are not rendered by default.

341 changes: 341 additions & 0 deletions EXAMPLES.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"appkey": "93D72E60331ABDCDC7B39ADC2D1F32B3",
"config": "/Users/mick/.GoSungrow/config.json",
"config": "",
"debug": false,
"host": "https://augateway.isolarcloud.com",
"password": "",
"quiet": false,
"timeout": "30s",
"token-expiry": "",
"user": ""
}
}
341 changes: 341 additions & 0 deletions defaults/EXAMPLES.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion defaults/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var Examples string
const (
Description = "GoSungrow - GoLang implementation to access the iSolarCloud API updated by SunGrow inverters"
BinaryName = "GoSungrow"
BinaryVersion = "2.2.1"
BinaryVersion = "2.3.0"
SourceRepo = "github.com/MickMake/" + BinaryName
BinaryRepo = "github.com/MickMake/" + BinaryName

Expand Down
31 changes: 4 additions & 27 deletions examples.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
GoSungrow api login
GoSungrow api ls areas

GoSungrow api get WebAppService.getDeviceUuid '{"ps_key":"1171348"}'
GoSungrow api get WebAppService.showPSView '{"ps_id":"1171348"}'
GoSungrow api get checkUnitStatus
Expand Down Expand Up @@ -53,8 +56,6 @@ GoSungrow api get reportList '{"ps_id":"1171348","report_type":"1"}'
GoSungrow api get reportList '{"ps_id":"1171348","report_type":"2"}'
GoSungrow api get reportList '{"ps_id":"1171348","report_type":"3"}'
GoSungrow api get reportList '{"ps_id":"1171348","report_type":"4"}'
GoSungrow api login
GoSungrow api ls areas
GoSungrow api raw queryDeviceList '{"ps_id":"1171348"}'
GoSungrow api save WebAppService.queryUserCurveTemplateData '{"template_id":"8042","date_type":"1","start_time":"20220223000000","end_time":"20220223235900"}'
GoSungrow api save getPsDetail '{"ps_id":""}'
Expand All @@ -72,6 +73,7 @@ GoSungrow data get template 8042 20220227
GoSungrow data get template-points 8040
GoSungrow data get template-points 8041
GoSungrow data get template-points 8042

GoSungrow data graph template 8042 20220212 '{"search_string":"p13019","min_left_axis":-6000,"max_left_axis":12000}'
GoSungrow data graph template 8042 20220212 '{"search_string":"p13019"}'
GoSungrow data graph template 8042 20220212 '{"search_string":"p83106","min_left_axis":-6000,"max_left_axis":12000}'
Expand All @@ -90,21 +92,17 @@ GoSungrow data save template '' 20220201
GoSungrow data save template 8042 20220212
GoSungrow get raw template 20220202
GoSungrow get template 8042 20220212

GoSungrow data get stats
GoSungrow data get search-point-names
GoSungrow data get device
GoSungrow data get model

GoSungrow api raw getPowerStationForHousehold '{"ps_id":"1171348"}'
> "org_index_code":"|80384|80393|300977|",

GoSungrow api raw getInstallerInfoByDealerOrgCodeOrId '{"dealer_org_code":"AUSCEKK7"}'
GoSungrow api raw getInstallerInfoByDealerOrgCodeOrId '{"org_id":"362245"}'
GoSungrow api raw getInstallerInfoByDealerOrgCodeOrId '{"org_id":"80384"}'
GoSungrow api raw getInstallerInfoByDealerOrgCodeOrId '{"org_id":"80393"}'
GoSungrow api raw getInstallerInfoByDealerOrgCodeOrId '{"org_id":"300977"}'

GoSungrow api raw getKpiInfo
GoSungrow api raw getInstallInfoList
GoSungrow api raw getIncomeSettingInfos '{"ps_id":"1171348"}'
Expand All @@ -118,43 +116,22 @@ GoSungrow api raw getOrgListForUser
GoSungrow api raw getPowerDevicePointNames '{"device_type":"1"}'
GoSungrow api raw getPowerDeviceModelTechList '{"device_type":"1"}'
GoSungrow api raw getPowerDevicePointInfo '{"id":"1"}'
GoSungrow api raw getPowerStationForHousehold '{"ps_id":"1171348"}'

GoSungrow api raw queryPsProfit '{"date_id":"20221001","date_type":"1","ps_id":"1171348"}'
GoSungrow api raw getPowerStationData '{"date_id":"20221001","date_type":"1","ps_id":"1171348"}'
GoSungrow api get getHouseholdStoragePsReport '{"date_id":"20221001","date_type":"1","ps_id":"1171348"}'

GoSungrow api raw queryPsProfit '{"date_id":"202210","date_type":"2","ps_id":"1171348"}'
GoSungrow api raw getPowerStationData '{"date_id":"202210","date_type":"2","ps_id":"1171348"}'
GoSungrow api get getHouseholdStoragePsReport '{"date_id":"202210","date_type":"2","ps_id":"1171348"}'

GoSungrow api raw queryPsProfit '{"date_id":"2022","date_type":"3","ps_id":"1171348"}'
GoSungrow api raw getPowerStationData '{"date_id":"2022","date_type":"3","ps_id":"1171348"}'
GoSungrow api get getHouseholdStoragePsReport '{"date_id":"2022","date_type":"3","ps_id":"1171348"}'

GoSungrow api raw getPowerStationInfo '{"ps_id":"1171348"}'
GoSungrow api raw getPowerTrendDayData '{"BeginTime":"20221004"}'
GoSungrow api raw getPowerSettingCharges
GoSungrow api raw queryUnitList
GoSungrow api raw queryPsIdList
GoSungrow api get getEncryptPublicKey

GoSungrow api raw getFaultCount
GoSungrow api raw getFaultDetail '{"fault_code":"34"}'
GoSungrow api raw getFaultMsgByFaultCode '{"fault_code":"703"}'
GoSungrow api get getFaultMsgListWithYYYYMM


################################################################################

"energy_flow"
1 / 3 - PV2Load && PV2Battery


"1" - PV to Load
"3" - Battery to Load
"5" - PV to Battery

https://augateway.isolarcloud.com/v1/commonService/getMqttConfigInfoByAppkey
sensor.sungrow_total_load_active_power == sensor.sungrow_total_active_power

9 changes: 0 additions & 9 deletions google/const.go

This file was deleted.

111 changes: 0 additions & 111 deletions google/sheet.go

This file was deleted.

Loading

0 comments on commit d24e699

Please sign in to comment.