Live and daily energy: Is this a bug?


#1

I am testing canadianreads.py python scripts 0.7.2 & multi inverter versions provided by @jrbenito for three growatt inverters.

I encounter this issue randomly with the multi inverter version and always after power outage and restart of the machine that reads and uploads to pvoutput but only for one out of two inverters uplading with the multi version.
Today I encountered the issue also with the single inverter upload version.
I use the same machine to read and upload with both versions.

Last night a power outage caused reboot to the machine reading and uploading. Take a look at today’s production for the system 62127 (uploaded by multi version) & 61083 (uploaded by 0.7.2 single version). Energy starts at 19900 & 21000 (previous day’s production) and stays constant up until the real energy production reaches this point.

Using tcpdump I see for one system (61083) that the script sends the correct values to pvoutput.

Summary
10:35:01.119104 IP (tos 0x0, ttl 64, id 30, offset 0, flags [DF], proto TCP (6), length 493)
    OpenWrt.lan.44828 > li916-169.members.linode.com.80: Flags [P.], cksum 0x7bc1 (incorrect -> 0x6482), seq 1:454, ack 1, win 229, length 453: HTTP, length: 453
	POST /service/r2/addstatus.jsp HTTP/1.1
	Host: pvoutput.org
	Connection: keep-alive
	Accept-Encoding: gzip, deflate
	Accept: */*
	User-Agent: python-requests/2.21.0
	X-Pvoutput-SystemId: 61083
	X-Pvoutput-Apikey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	X-Rate-Limit: 1
	Content-Length: 109
	Content-Type: application/x-www-form-urlencoded
	
	d=20190130&v12=1.00191922679&v10=166267000&v1=5100&v2=7256.4&v5=11.0&v6=648.1&v8=234.0&v9=24.9&c1=0&t=10%3A35[!http]
10:35:01.119131 IP (tos 0x0, ttl 64, id 30, offset 0, flags [DF], proto TCP (6), length 493)
    OpenWrt.lan.44828 > li916-169.members.linode.com.80: Flags [P.], cksum 0x7bc1 (incorrect -> 0x6482), seq 1:454, ack 1, win 229, length 453: HTTP, length: 453
	POST /service/r2/addstatus.jsp HTTP/1.1
	Host: pvoutput.org
	Connection: keep-alive
	Accept-Encoding: gzip, deflate
	Accept: */*
	User-Agent: python-requests/2.21.0
	X-Pvoutput-SystemId: 61083
	X-Pvoutput-Apikey: xxxxxxxxxxxxxxxxxxxxxxxx
	X-Rate-Limit: 1
	Content-Length: 109
	Content-Type: application/x-www-form-urlencoded
	
	d=20190130&v12=1.00191922679&v10=166267000&v1=5100&v2=7256.4&v5=11.0&v6=648.1&v8=234.0&v9=24.9&c1=0&t=10%3A35[!http]
10:35:01.119138 IP (tos 0x0, ttl 64, id 30, offset 0, flags [DF], proto TCP (6), length 493)
    OpenWrt.lan.44828 > li916-169.members.linode.com.80: Flags [P.], cksum 0x7bc1 (incorrect -> 0x6482), seq 1:454, ack 1, win 229, length 453: HTTP, length: 453
	POST /service/r2/addstatus.jsp HTTP/1.1
	Host: pvoutput.org
	Connection: keep-alive
	Accept-Encoding: gzip, deflate
	Accept: */*
	User-Agent: python-requests/2.21.0
	X-Pvoutput-SystemId: 61083
	X-Pvoutput-Apikey: xxxxxxxxxxxxxxxxxxxxxxxxxxx
	X-Rate-Limit: 1
	Content-Length: 109
	Content-Type: application/x-www-form-urlencoded
	
	d=20190130&v12=1.00191922679&v10=166267000&v1=5100&v2=7256.4&v5=11.0&v6=648.1&v8=234.0&v9=24.9&c1=0&t=10%3A35[!http]
10:35:01.131540 IP (tos 0x0, ttl 59, id 62951, offset 0, flags [none], proto TCP (6), length 40)
    li916-169.members.linode.com.80 > OpenWrt.lan.44828: Flags [.], cksum 0x35d6 (correct), seq 1, ack 454, win 47963, length 0
10:35:01.131557 IP (tos 0x0, ttl 59, id 62951, offset 0, flags [none], proto TCP (6), length 40)
    li916-169.members.linode.com.80 > OpenWrt.lan.44828: Flags [.], cksum 0x35d6 (correct), seq 1, ack 454, win 47963, length 0
10:35:02.080863 IP (tos 0x0, ttl 45, id 22424, offset 0, flags [DF], proto TCP (6), length 395)
    li916-169.members.linode.com.80 > OpenWrt.lan.44828: Flags [.], cksum 0x0504 (correct), seq 1:356, ack 454, win 47963, length 355: HTTP, length: 355
	HTTP/1.1 200 OK
	Date: Wed, 30 Jan 2019 08:35:01 GMT
	Set-Cookie: JSESSIONID=1phugqbscmo6o1aj5pusxv2zsa;Path=/
	Expires: Thu, 01 Jan 1970 00:00:00 GMT
	X-Rate-Limit-Remaining: 52
	X-Rate-Limit-Limit: 60
	X-Rate-Limit-Reset: 1548838800
	Content-Type: text/plain;charset=ISO-8859-1
	Connection: close
	Server: Jetty(7.6.17.v20150415)
	
	OK 200: Added Status[!http]
10:35:02.080924 IP (tos 0x0, ttl 45, id 22424, offset 0, flags [DF], proto TCP (6), length 395)
    li916-169.members.linode.com.80 > OpenWrt.lan.44828: Flags [.], cksum 0x0504 (correct), seq 1:356, ack 454, win 47963, length 355: HTTP, length: 355
	HTTP/1.1 200 OK
	Date: Wed, 30 Jan 2019 08:35:01 GMT
	Set-Cookie: JSESSIONID=1phugqbscmo6o1aj5pusxv2zsa;Path=/
	Expires: Thu, 01 Jan 1970 00:00:00 GMT
	X-Rate-Limit-Remaining: 52
	X-Rate-Limit-Limit: 60
	X-Rate-Limit-Reset: 1548838800
	Content-Type: text/plain;charset=ISO-8859-1
	Connection: close
	Server: Jetty(7.6.17.v20150415)
	
	OK 200: Added Status[!http]

Is this a bug? @bankstownbloke


#2

Energy cannot decrease, the first entry at 7:40AM is 21000Wh any entries afterwards with a lower value will be ignored.

Remove the incorrect upload at 7:40AM.


#3

Thank you for your prompt reply.
I will be monitoring the uploads during the morning and report back here.


Help Required Uploading Growatt Inverter To PVOutput