Hello all - found this topic while trying to pull data for my Solis (Ginlong) inverter.
It looks like there is a new ginlong monitoring website
http://m.ginlong.com which is much nicer than the old
www.ginlongmonitoring.com The new website provides JSON feeds of data, which is great for scraping and pushing to Domoticz / influx. There's also a mobile app called "Ginlong Home" which is quite nice too.
I had to re-register for the new website - there is an option to bring user accounts across, but it didnt work for me. Once I'd re-registered I had to add the serial number for my wifi stick (I did this through the mobile app, but may be possible through the website). About half an hour after i'd done that data from the old website had transferred over to the new website.
I'm not particularly familiar with python, so havent attempted to modify the code in this thread, but I have posted an example node-red flow that pulls the data:
https://flows.nodered.org/flow/1a1e2bac ... 930fe788f0
Effectively, the flow submits a POST to
Code: Select all
http://m.ginlong.com/cpro/login/validateLogin.json
including a few fields such as "userName"="yourusername", "password"="yourpassword", "lan"=2, "domain"="m.ginglong.com", "userType"="C"
This logs us in, and provides a session cookie which we need to pass on further calls
Next, POST to
Code: Select all
http://m.ginlong.com/cpro/epc/plantview/view/doPlantList.json
to retrieve a list of Plants -
Then, from the returned PlantData we use the plantID in the querystring to GET
Code: Select all
http://m.ginlong.com/cpro/epc/plantDevice/inverterListAjax.json?orderBy=updateDate&orderType=2&pageIndex=1&plantId=***PLANTID***&sequenceNum=9&showAddFlg=1
which returns a list of inverters - and from that we can POST to
Code: Select all
http://m.ginlong.com/cpro/device/inverter/goDetailAjax.json
including a form field of "deviceId" = ***our inverter ID***
Which will bring back a large set of data. I haven't explored this in detail, but there are readings for each input string, providing volts, amps and power - along with current output power, daily output power, monthly etc.
Hope this is helpful or useful to someone.
Thanks,
Andy