This script lets you download your past daily reports from iSolarCloud (a product of Sungrow). It saves the daily data as CSV files, analogous to the manual download from iSolarCloud. We have added some extra columns.
For this to achieve the script uses GoSungrow to retrieve the data from iSolarCloud.
The script of this project requires Node.js to run. (The script is written for Node version 22).
There is a Gist with instructions for building GoSungrow and further information: https://gist.github.com/Paraphraser/cad3b0aa6428c58ee87bc835ac12ed37
In summary, install Go and then run:
mkdir -p go-projects/MickMake
cd go-projects
git clone https://github.com/MickMake/GoUnify.git
cd MickMake
git clone https://github.com/MickMake/GoSungrow.git
cd GoSungrow
git remote add -t encryption triamazikamno https://github.com/triamazikamno/GoSungrow.git
git pull triamazikamno encryption
git switch encryption
go mod tidy
go build
You then find the executable here: go-projects/MickMake/GoSungrow/GoSungrow
. Copy it into this project.
You need to configure your credentials:
./GoSungrow config write --user="..." --password="..." --host="..." --appkey="..."
The user name and password are those for the iSolarCloud. You find information about possible hosts and app keys in the (mentioned) Gist under Configuration.
Login via:
./GoSungrow api login
Create the configuration files and make your personal adjustments:
- Copy
config/config.sample.json
toconfig/config.json
. To find out your IDs/keys run./GoSungrow show ps list
. - Copy
config/nextdate.sample.txt
toconfig/nextdate.txt
. Set a recent date, for example today's date minus seven days.
You should be able to run this script:
node index.mjs