Closed degerrit closed 6 years ago
Good to hear the regular capture works. Can you retrieve /day_trend.xml from your saj collector and attach it here. That is the raw output the script uses, with that I can test it here. Probably it is a regional setting issue with the decimal separator handling.
Here it is: day_trend.xml.txt No decimals, and it's not in Wh or in kWh, but in decawatts ?!
Looks SAJ made a change in newer versions to be more precise in the day_trend.xml, attached my version, granularity is 100Wh where yours is 10Wh. Will make a change later this week to make it possible to configure the multiplication factor.
Looks SAJ made a change in newer versions to be more precise in the day_trend.xml, attached my version, granularity is 100Wh where yours is 10Wh. Will make a change later this week to make it possible to configure the multiplication factor.
I have just uploaded a new v0.5.0 release of the gem, can you install that and add the new day_trend_multiplication_factor to your yaml file with a value of 10 and trigger the script again?
@degerrit Does the new version work with your inverter?
Yep, it works - thanks.
Oddly, the day totals of my consumption data is being wiped on pvoutput.org (which I can restore via more->recalculate, since the hourly data is still there). Will need to look into that. It must be related to saj_output_collector somehow, since only the data from this month is affected (and production only started December 21st, though consumption was being measured long before).
Maybe the underlying pvoutput ruby code sends a zero, saj_output_collector only sends the energy generated
I expected so. I'll check out the pvoutput code, I see it's also on github.
I guess this is the snippet that is relevant?
options.each do |date, values|
puts "Energy generated #{date}: #{values[:energy_generated]} Wh"
end
pvoutput.add_batch_output(options)
Yes
FYI: seems like that last "consumption wiping" side-effect (of saj_output_collector) is a pvoutput.org API bug -> https://forum.pvoutput.org/t/api-post-addbatchoutput-of-generation-data-results-in-consumption-data-automatic-upload-being-zeroed/386/2
I could stick to using only _sajoutput, once my network connectovity stabilizes with new cabling :-) _saj_outputcollector seems unnecessary, if _sajoutput has already logged everything.
Just had a new PV system installed last week. saj_collector did its job wonderfully, first time! Only issue is when there are connectivity issues (flaky Powerline), I lose some stats, ah well.
However, saj_output_collector appears to be using generation stats off by factor 10?
Actuals -> see attachment
pvoutput system_id: 29573
Inverter info: