Growatt: 2nd plant/data logger

Moderator: leecollings

Post Reply
User avatar
Rolandet
Posts: 95
Joined: Thursday 31 January 2019 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: The Netherlands
Contact:

Growatt: 2nd plant/data logger

Post by Rolandet »

Hi,
Like many others, I'm using sincze's growatt script to read my solar panel data from the growatt server.

Now I've added a 2nd setup, and registered its datalogger in the growatt portal, under my account.

However, I'm not sure how I can have that data imported in Domoticz.

For now, I can see that the Growatt Inverter-device only shows the information of my first plant.

Any thoughts?
Custodes Septentrionum
mvanrijnbach
Posts: 20
Joined: Monday 20 June 2022 21:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Growatt: 2nd plant/data logger

Post by mvanrijnbach »

Hi Rolandet,

I'm not a php expert, but I assumed it must be somewhere in the lines of the script where the URL for the data is setup:
$curl = curl_init();
$url='http://server-api.growatt.com/newPlantA ... EnertyData';
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_COOKIEJAR, COOKIE_FILE);
curl_setopt($curl, CURLOPT_COOKIEFILE, COOKIE_FILE);
curl_setopt($curl, CURLOPT_USERAGENT, USER_AGENT);
curl_setopt($curl, CURLOPT_POSTFIELDS, "language=1" );
curl_setopt($curl, CURLOPT_HTTPHEADER, HEADER);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt ($curl, CURLOPT_SSLVERSION, 1);
$result = curl_exec($curl);

I guess somebody with PHP experience can answer this question.

Best regards, Michiel.
User avatar
Rolandet
Posts: 95
Joined: Thursday 31 January 2019 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: The Netherlands
Contact:

Re: Growatt: 2nd plant/data logger

Post by Rolandet »

sincze wrote:
Let's see if we can lure Sincze in this topic :lol: See if it's at all possible in his script.
Custodes Septentrionum
mvanrijnbach
Posts: 20
Joined: Monday 20 June 2022 21:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Growatt: 2nd plant/data logger

Post by mvanrijnbach »

Hi Rolandet,

as you can see I also posted an issue with the Growatt script. Do you also have issues that the script doesn't read the power continuously? Are you using the latest version from github?

Best regards, Michiel.
User avatar
Rolandet
Posts: 95
Joined: Thursday 31 January 2019 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: The Netherlands
Contact:

Re: Growatt: 2nd plant/data logger

Post by Rolandet »

mvanrijnbach wrote: Saturday 11 March 2023 9:04 Hi Rolandet,

as you can see I also posted an issue with the Growatt script. Do you also have issues that the script doesn't read the power continuously? Are you using the latest version from github?

Best regards, Michiel.
The interval is 5 minutes, so indeed it doesn't read the output continuously
Custodes Septentrionum
mvanrijnbach
Posts: 20
Joined: Monday 20 June 2022 21:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Growatt: 2nd plant/data logger

Post by mvanrijnbach »

It is supposed to read it every 5 minutes and it used to do that, but now the data looks like this:
Domoticz_graph.jpg
Domoticz_graph.jpg (87.16 KiB) Viewed 757 times
I guess the data doesn't come through every 5 minutes anymore.
I guess I'll try to reset the whole thing and see if it makes any difference.

Best regards, Michiel.
User avatar
Rolandet
Posts: 95
Joined: Thursday 31 January 2019 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: The Netherlands
Contact:

Re: Growatt: 2nd plant/data logger

Post by Rolandet »

Oh right. Well, there's been a lot of chatter about the poor data servers of growatt
Custodes Septentrionum
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest