Page 1 of 1

Growatt: 2nd plant/data logger

Posted: Saturday 04 March 2023 13:22
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?

Re: Growatt: 2nd plant/data logger

Posted: Saturday 04 March 2023 20:34
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.

Re: Growatt: 2nd plant/data logger

Posted: Sunday 05 March 2023 15:11
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.

Re: Growatt: 2nd plant/data logger

Posted: Saturday 11 March 2023 9:04
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.

Re: Growatt: 2nd plant/data logger

Posted: Saturday 11 March 2023 12:05
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

Re: Growatt: 2nd plant/data logger

Posted: Monday 13 March 2023 22:22
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 828 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.

Re: Growatt: 2nd plant/data logger

Posted: Tuesday 14 March 2023 11:47
by Rolandet
Oh right. Well, there's been a lot of chatter about the poor data servers of growatt