Jump to content

Happy Solstice! (In 3W time)


Recommended Posts

Perhaps a more geeky way of observing the shortest day: in my Loxone config I have a little formula that estimates what "Good" solar generation value would be for a given day of the year, and it's 3W off of its low point (1700W), which it should hit in the next few hours.

The formula being :

1700+(1700*sin(pi*((I1-1608565080)/31557600)))

 

where I1 is the current unix timestamp, 1608565080 is the timestamp of a previous winter solstice (2021 as it happens), and 31557600 is the number of seconds in a year (on average -- allowing for leap years). 

 

image.png.9676b35664bb7dbcd6a602893ace69d9.png

That shows the threshold at 1703.141 W so soon be at at the inflection point  (in 6 hours, I think)

?

 

And yeah, 1700W is very optimistic for December, even on an 8kW array. I last calibrated it in November and seemed about right then...

 

Edited by joth
Link to comment
Share on other sites

Just now, joth said:

W

 

Although I compare it to the 2min average rather than instantaneous. But a time-averaged W is still measured in W.

(I mean, even the "instantaneous" W is a 5sec average due to the way my energy monitor works)

 

Link to comment
Share on other sites

17 hours ago, joth said:

The formula being :

1700+(1700*sin(pi*((I1-1608565080)/31557600)))

OK so there was a clear error with this, lets call it an exercise for the reader here that went unspotted.

sin(x) gives negative as well as positive result, and the input should range from 0 to 2π through the year, not from 0 to π. So the result of this expression was a threshold "good" generation power from 0W to 3400W, not 1700W to 3400W as I had intended. Doh! 

 

Second attempt gives me a threshold power 1500-3500 based on 2500 W ±1000

 

  2500+(1000*cos(2*pi*((I1-1624242741)/31557600)))

 

Much better.

 I do enjoy messing with this Loxone system :) 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...