Comments (8)
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
from saj_collector.
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
from saj_collector.
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
from saj_collector.
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
from saj_collector.
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
from saj_collector.
Yes, can you open issue at pvoutput and maybe add a link here to it?
from saj_collector.
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.
from saj_collector.
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 !
from saj_collector.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saj_collector.