Hello Michael,
I have modified the extension (release v1.5) to expose two coefficients used
for the calculation. : https://github.com/Jterrettaz/sunduration/tree/v1.5
With this new version , you will have to add this stanza in weewx.conf :
[Sunduration]
global_coeff = 1.0
B_coeff = 0.06
By default, the coefficients of the formula used to calculate the radiation
threshold are the one validated for a latitude of 44° in the south of France
(global_coeff = 1 and B_coeff = 0.06).
If, for your location and your solar sensor, the threshold is too low or too
high, you can adjust globallty the value of the parameter global_coeff.
For instance, a value of global_coeff = 1.05 will globally increase the
thresholf value by 5% A value of global_coeff = 0.95 will globally decrease the
threshold value by 5%
The B_coeff can be changed if you observe that the threshold needs to be
adjusted only for winter or summer period.
For instance, a value of B_coeff = 0.08 will increase the threshold value by
about 3% in winter, and will decrease the threshold value by about 3% in
summer. A value of B_coeff = 0.04 will decrease the threshold value by about 3%
in winter, and will increase the threshold value by about 3% in summer.
Best Regards
Jacques
> Le 5 juin 2024 à 21:08, Michael Green <[email protected]> a écrit :
>
> Hello Jaques,
> I use your extension successfully on my weewx-installation. But it would be
> nice to have the possibility to fine tune the script because some local
> issues of sensor-installation.
> Which constant in your script can be manipulated for the sensitivity /
> threshold value for sunshine in order to adapt to local characteristics?
> Many thanks for your tip,
> best regards Michael
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/8445AB22-139A-46DB-AD46-22599976A7B1%40gmail.com.