Closed degerrit closed 4 years ago
Temperature seems to be fetched correctly; here's my cronjob:
*/5 6-21 * * * saj_collector cd /etc && ruby /usr/local/bin/saj_collector >> /tmp/saj_collector_pvoutput.log 2>&1
And here's the last lines of that log file:
Time: 2020-09-11 10:10:04 +0200
Realtime:
Temp: 39.0 C
V: 240.9 V
I: 4.39 A
P: 995 W
Total:
Power (today): 1.17 kWH
Power (all time): 6513.83 kWH
Run Time: 2.7 Hours
Run Time: 11548.1 Hours
The pvoutput ruby gem I am using doesn't have an easy way to enable logging, can you find pvoutput/client.rb
on your system and on line 7 change the line
# debug_output $stdout
to
debug_output $stdout
And rerun saj_collector, in my case the temperature is there, see https://pvoutput.org/intraday.jsp?id=36937&sid=33783&dt=20200911
The output of my system (with the Apikey removed)
Time: 2020-09-11 14:48:31 +0200
Realtime:
Temp: 33.0 C
V: 234.3 V
I: 4.19 A
P: 993 W
Total:
Power (today): 9.9 kWH
Power (all time): 20400.6 kWH
Run Time: 7.4 Hours
Run Time: 26010.8 Hours
opening connection to pvoutput.org:80...
opened
<- "POST /service/r2/addstatus.jsp HTTP/1.1\r\nX-Pvoutput-Apikey: \r\nX-Pvoutput-Systemid: 33783\r\nConnection: close\r\nHost: pvoutput.org\r\nContent-Length: 54\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n"
<- "d=20200911&t=14%3A48&v1=9900.0&v2=993&v5=33.0&v6=234.3"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Fri, 11 Sep 2020 12:48:32 GMT\r\n"
-> "Set-Cookie: JSESSIONID=1nym25v24qxjw1pz3dwayfa5ar;Path=/\r\n"
-> "Expires: Thu, 01 Jan 1970 00:00:00 GMT\r\n"
-> "Content-Type: text/plain;charset=ISO-8859-1\r\n"
-> "Connection: close\r\n"
-> "Server: Jetty(7.6.17.v20150415)\r\n"
-> "\r\n"
reading all...
-> "OK 200: Added Status"
read 20 bytes
Conn close
According to https://pvoutput.org/help.html for addstatus.jsp the temperature is v5 which is a decimal, so 33.0 is correctly passed with my inverter
Thanks @jwillemsen
How peculiar - it's right there! I guess I need to file an issue with the pvoutput.org guys?
-------------------------
Time: 2020-09-11 17:14:49 +0200
Realtime:
Temp: 38.3 C
V: 236.4 V
I: A
P: 286 W
Total:
Power (today): 9.10 kWH
Power (all time): 6521.76 kWH
Run Time: 9.8 Hours
Run Time: 11555.2 Hours
opening connection to pvoutput.org:80...
opened
<- "POST /service/r2/addstatus.jsp HTTP/1.1\r\nX-Pvoutput-Apikey: REDACTED\r\nX-Pvoutput-Systemid: 29573\r\nConnection: close\r\nHost: pvoutput.org\r\nContent-Length: 54\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n"
<- "d=20200911&t=17%3A14&v1=9100.0&v2=286&v5=38.3&v6=236.4"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Fri, 11 Sep 2020 15:14:49 GMT\r\n"
-> "Set-Cookie: JSESSIONID=1jly76xhqsl2l1t4u7axj4qk6w;Path=/\r\n"
-> "Expires: Thu, 01 Jan 1970 00:00:00 GMT\r\n"
-> "Content-Type: text/plain;charset=ISO-8859-1\r\n"
-> "Connection: close\r\n"
-> "Server: Jetty(7.6.17.v20150415)\r\n"
-> "\r\n"
reading all...
-> "OK 200: Added Status"
read 20 bytes
Conn close
Yes, can you open issue at pvoutput and maybe add a link here to it?
If I don't find it, I will.
I suspect it may have to do with my other integrations (consumption is via flukso, but I see that at some point I also enabled Wunderground - perhaps it is overwriting the temperature, cause that sure is what it looks like).
So far, changing the "Main" to an "Extended data" stream hasn't helped, but I'll give it a few minutes.
Closing the ticket.
The "competing" pvoutput.org Weather Device (under Edit System, Automatic Uploads) was the culprit, and was overwriting the Temperature (even though that specific input was in error state and not really logging anything).
It must have taken several hours for this change to go live: the Temperature field remained blank on yesterday the 11th, even while the PV logged data for 2 hours after I disabled that Automatic Upload ~18:00 CEST:
But as of this morning things look find & dandy again:
Thanks for your help with debugging the API call @jwillemsen !
Hi there, I just noticed on pvoutput.org that somewhere early 2019 it no longer logs temperature. It would be around the time I migrated to a new version on my Pi (saj_collector-0.5.2 -> saj_collector-0.5.8). To be fair; I haven't downgraded to see what happens.
The inverter's website is still displaying temperature; the XML also contains it.
Anything I can do to help troubleshoot? Or did the pvoutput.org API change? (I'm a donator, since I also log consumption)
Model: SAJ Sununo Plus 2K
real_time_data.xml: