Re: [weewx-user] Sunshine Duration

2024-06-08 Thread Jacques Terrettaz
If you are using a Davis pyranometer, you can keep global_coeff to 1. My Davis weather station is at latitude 46.34 N and I use this value. If you have another solar or light sensor, you will have to adjust the value of global_coeff, and possibly the B_coeff, until you have good results - i.e

Re: [weewx-user] Sunshine Duration

2024-06-08 Thread Geni
What value should global_coeff have for latitude 47°? Jacques Terrettaz schrieb am Donnerstag, 6. Juni 2024 um 10:49:47 UTC+2: > Hello Michael, > > I have modified the extension (release v1.5) to expose two coefficients > used for the calculation. : > https://github.com/Jterrettaz/sunduration/

Re: [weewx-user] Sunshine Duration

2024-06-06 Thread Jacques Terrettaz
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_coef

Re: [weewx-user] Sunshine Duration

2024-06-05 Thread Michael Green
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

Re: [weewx-user] Sunshine Duration

2024-05-19 Thread Karen K
@Jacques: I now added your extension to the configuration. The calculated values will be stored to the database. After some time I will publish the readings here. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and

Re: [weewx-user] Sunshine Duration

2024-05-14 Thread Karen K
Oh, that are very interesting data. Jacques Terrettaz schrieb am Montag, 13. Mai 2024 um 18:36:27 UTC+2: Globally the data derived from the formula give a higher sunshine duration. We cannot expect to get the same values from that different measurement principles, I guess. Nevertheless, I

Re: [weewx-user] Sunshine Duration

2024-05-13 Thread Karen K
Jacques Terrettaz schrieb am Montag, 13. Mai 2024 um 09:29:49 UTC+2: .. only one estimation for a 5 min period, based of the archive radiation measurement , which is the mean radiation measured over of archive period . Unfortunately I cannot provide the raw sensor readings. We do not save them

Re: [weewx-user] Sunshine Duration

2024-05-13 Thread Jacques Terrettaz
OK, thanks. A good "offline" comparison of your sunshine sensor with the formula will be difficult, since with your archive data the fomula will produce only one estimation for a 5 min period, based of the archive radiation measurement , which is the mean radiation measured over of archive peri

Re: [weewx-user] Sunshine Duration

2024-05-10 Thread Karen K
jterr...@gmail.com schrieb am Freitag, 10. Mai 2024 um 20:35:20 UTC+2: One more question : in your csv file, the maximum values of the sunshine duration measured by the Weerhuisje/Instromet sunshine duration sensor , for a period of 5 minutes, are 324 seconds , higher than the 300 seconds inte

Re: [weewx-user] Sunshine Duration

2024-05-10 Thread jterr...@gmail.com
OK with the solar altitude. One more question : in your csv file, the maximum values of the sunshine duration measured by the Weerhuisje/Instromet sunshine duration sensor , for a period of 5 minutes, are 324 seconds , higher than the 300 seconds interval. How should we interpret all these val

Re: [weewx-user] Sunshine Duration

2024-05-10 Thread Karen K
jterr...@gmail.com schrieb am Freitag, 10. Mai 2024 um 19:49:06 UTC+2: Karen, thanks. I will do the calculation, and let you know. It will be interesting to have a comparison , but I need some more information , particularly the latitude and longitude of the place where your sensors are instal

Re: [weewx-user] Sunshine Duration

2024-05-10 Thread jterr...@gmail.com
Karen, thanks. I will do the calculation, and let you know. It will be interesting to have a comparison , but I need some more information , particularly the latitude and longitude of the place where your sensors are installed. I will send you a private email . Le vendredi 10 mai 2024 à 19:26:

Re: [weewx-user] Sunshine Duration

2024-05-07 Thread Jacques Terrettaz
Yes... some people use that way... but wrongly ! May be also because even the software developed by Davis (Weatherlink) to capture Davis Vantage data is proposing the use of a 120 W/m2 threshold for their global irradiance sensor !!! The use of global irradiance sensors is largely discusse

Re: [weewx-user] Sunshine Duration

2024-05-07 Thread Karen K
Jacques Terrettaz schrieb am Dienstag, 7. Mai 2024 um 13:07:08 UTC+2: The term "sunshine" and "sunshine duration" is the one used by WMO - see https://library.wmo.int/viewer/68695/?offset=#page=331&viewer=picture&o=bookmark&n=0&q= . And this link reads: "According to WMO (2010), sunshine dur

Re: [weewx-user] Sunshine Duration

2024-05-07 Thread Anton vanNwnhzn@GMail
Jacques, Agreed that we should not use different nomenclature than WMO (because it will only increase confusion), but trying to reduce ambiguity is always useful. Op 7-5-2024 om 13:06 schreef Jacques Terrettaz: Yes, correct understanding ! The term "sunshine" and  "sunshine duration" is the o

Re: [weewx-user] Sunshine Duration

2024-05-07 Thread Jacques Terrettaz
Yes, correct understanding ! The term "sunshine" and "sunshine duration" is the one used by WMO - see https://library.wmo.int/viewer/68695/?offset=#page=331&viewer=picture&o=bookmark&n=0&q= . Why should we use another nomenclature ? > Le 7 mai 2024 à 11:02, Ton vanN a écrit : > > Correct

Re: [weewx-user] Sunshine Duration

2024-05-07 Thread Karen K
Ton vanN schrieb am Dienstag, 7. Mai 2024 um 11:02:33 UTC+2: Rereading this thread come to understand that definition/semantics is a critical aspect in this discussion. *Bluntly* summarized: - Sunshine = seeing difference between lighted area and shadowed area. Like KarenK's device is doing - Lig

Re: [weewx-user] Sunshine Duration

2024-05-07 Thread Ton vanN
Rereading this thread come to understand that definition/semantics is a critical aspect in this discussion. *Bluntly* summarized: - Sunshine = seeing difference between lighted area and shadowed area. Like KarenK's device is doing - Lightlevel = level of undirected solar radiation, not/hardly dif

Re: [weewx-user] Sunshine Duration

2024-05-04 Thread Karen K
n7uv...@gmail.com schrieb am Samstag, 4. Mai 2024 um 05:12:04 UTC+2: What is "direct solar irradiance"? Is there someone at the sensor deciding that it's direct? As Jaques wrote, this is a sensor that sees a very small angle of the sky (approximately half a degree) and it is moving and alway

Re: [weewx-user] Sunshine Duration

2024-05-04 Thread Jacques Terrettaz
Verify that you have downloaded te Release V1.4 of the extension. Do you have "radiation_Wpm2" in your MQTT stream ? Please note that the "is-sunshine" is generated only at each archive period ( i.e.. when the "interval_minute" is also generated) and is currently not generated for each loo

Re: [weewx-user] Sunshine Duration

2024-05-04 Thread geni08...@gmail.com
I can't find “is_sunshine” in the MQTT stream. I have replaced the “sunduration.py” and restarted weewx Do I have to enter this somewhere? Jacques Terrettaz schrieb am Donnerstag, 2. Mai 2024 um 18:05:49 UTC+2: I have added a new field in my extension : *is_sunshine* At each record generation,,

Re: [weewx-user] Sunshine Duration

2024-05-03 Thread n7uv...@gmail.com
This I understand, Jacques - What is "direct solar irradiance"? Is there someone at the sensor deciding that it's direct? That they confirm that a solar disk is visible? That, given a decent scope, that sun spots are resolvable? Nah, I don't think so. They're PYROheliometers, measuring heat en

Re: [weewx-user] Sunshine Duration

2024-05-03 Thread Jacques Terrettaz
The WMO definition (threshold at 120 W/m2) is applicable only for the measurements of direct solar irradiance, using pyrheliometric sensors that are all the day moving to point always directly toward the sun position, with the surface of the sensor always perpendicular to the axis sun-sensor.

Re: [weewx-user] Sunshine Duration

2024-05-03 Thread n7uv...@gmail.com
Hi Anton - As you point out, this method is fraught with issues, rendering a result that at best is a guesstimate. It is not Karen's "shadow" aspiration. It certainly does not fit my definition of "sunshine". I live in Phoenix Arizona. A day with full, honest-to-goodness (by my definition) su

Re: [weewx-user] Sunshine Duration

2024-05-03 Thread Anton vanNwnhzn@GMail
WMO (World Meteorological Organization ) defines sunshine-duration as the accumulating time each day that direct sunshine-radiation exceeds a level of 120 W/m2 That definition is simple enough, and many PWSes calculate along that setup, but 'devil is in the details'. Perhaps puristic approach, b

Re: [weewx-user] Sunshine Duration

2024-05-02 Thread Karen K
Hi Jon, I am not sure I know which paper you referenced, but I agree with you that the 120 w/m^2 threshold is a little bit arbitrary. To my experience, in a sunny morning the radiation is less than those 120 w/m^2. Unfortunately, instruments that can really distinguish between the direct sun li

Re: [weewx-user] Sunshine Duration

2024-05-02 Thread n7uv...@gmail.com
Hi Karen - I went and read the paper that is referenced for the sunshine duration method. It describes an empirical approach to estimating whether or not the sun is "shining". To me, as you suggest, if I have a crisp, well-defined shadow, then there is indeed a 6000 K point source in the sky. I

Re: [weewx-user] Sunshine Duration

2024-05-02 Thread Jacques Terrettaz
I have added a new field in my extension : is_sunshine At each record generation,, the is_sunshine value will be 1 if there is sunshine, otherwise it will be 0. This field is also published in the MQTT stream. See https://github.com/Jterrettaz/sunduration/tree/master > Le 2 mai 2024 à 14:54, ge

Re: [weewx-user] Sunshine Duration

2024-05-02 Thread geni08...@gmail.com
I would like to get the attribute sunshine yes/no or a value in the MQTT stream to control my shutters if I already have a Davis Pro. I can only find the value of "maxSolarRad_Wpm2". Please give me some advice on how I could evaluate this, or how could the sunshine value per minute be entered in

Re: [weewx-user] Sunshine Duration

2024-05-02 Thread Karen K
n7uv...@gmail.com schrieb am Donnerstag, 2. Mai 2024 um 01:01:52 UTC+2: When I hear "sunshine duration", I'm not sure whether that means the duration that the scary fiery (I live in PHX %^) ball of plasma is at and above the horizon (which is already provided under the Celestial tab) [image: Sc

Re: [weewx-user] Sunshine Duration

2024-05-01 Thread jterr...@gmail.com
Jon, If you are interested at the theoretical maximum solar radiation, Weewx provides this value : *MaxSolarRad* . See https://weewx.com/docs/5.0/reference/weewx-options/stdwxcalculate/#maxsolarrad Le jeudi 2 mai 2024 à 08:27:07 UTC+2, Jacques Terrettaz a écrit : > The "sunduration" exte

Re: [weewx-user] Sunshine Duration

2024-05-01 Thread Jacques Terrettaz
The "sunduration" extension is calculating the total time in a day when there is no clouds between the sun and the Davis radiation sensor. With clouds, the incoming radiation energy is much lower. The formula used in this extension calculates a threshold radiation value that depends on the dat

Re: [weewx-user] Sunshine Duration

2024-05-01 Thread n7uv...@gmail.com
When I hear "sunshine duration", I'm not sure whether that means the duration that the scary fiery (I live in PHX %^) ball of plasma is at and above the horizon (which is already provided under the Celestial tab) [image: Screenshot 2024-05-01 155959.png] or something about the total energy deliv

Re: [weewx-user] Sunshine Duration

2024-05-01 Thread jterr...@gmail.com
Yes, different sensors will induce difference in results. The formula used in my extension has been validated for the Davis radiation sensor with the following specifications : https://cdn.shopify.com/s/files/1/0515/5992/3873/files/6450_SS.pdf As far as I know, the Weatherflow Tempest has a ligh

Re: [weewx-user] Sunshine Duration

2024-05-01 Thread 'Werner Krenn' via weewx-user
see my extension sunrainduration.py on https://github.com/WernerKr/weewx-weatherlinkliveudp/tree/master/bin/user Supports rain_duration too (and for two stations like Davis VantagePro and Davis VUE) Based on Jterrettaz extension Ton vanN schrieb am Mittwoch, 1. Mai 2024 um 12:21:35 UTC+2:

Re: [weewx-user] Sunshine Duration

2024-05-01 Thread Ton vanN
Looking for a 'proven' calculation for sunshineduration as element of WeeWX, see https://github.com/Jterrettaz/sunduration Shown solution linked to Davis Vantage_Pro. Different sensors may induce difference in results: any experiences if linked to Weatherflow_Tempest? Op zaterdag 26 maart 2022 om

Re: [weewx-user] Sunshine Duration

2022-03-26 Thread Karen K
Now I see it: There is "sum" missing at the end: $day.sunshine_time.sum Meteo Oberwallis schrieb am Samstag, 26. März 2022 um 19:35:00 UTC+1: > Hey. > > Yes. Is in the weewx.sdb. The current sunshine time works. The day > sunshine time not. > > Holen Sie sich Outlook für Android

Re: [weewx-user] Sunshine Duration

2022-03-26 Thread Schnidrig Stefan
Hey.Yes. Is in the weewx.sdb. The current sunshine time works. The day sunshine time not. Holen Sie sich Outlook für Android -- 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

Re: [weewx-user] Sunshine Duration

2022-03-26 Thread Karen K
You need sunshine_time in your database. Is it there? If not, you may want to use the wee_database tool to insert it. Meteo Oberwallis schrieb am Samstag, 26. März 2022 um 13:00:23 UTC+1: > Hello. > > I have a problem. I'm using https://github.com/Jterrettaz/sunduration and > that works so far.

Re: [weewx-user] Sunshine Duration

2022-03-26 Thread Meteo Oberwallis
Hello. I have a problem. I'm using https://github.com/Jterrettaz/sunduration and that works so far. I can also set the value via $current.sunshine_time and then get 5.0 minutes. However, the whole thing doesn't work for the daytime sunshine time with $day.sunshine_time. I built this for my XML

Re: [weewx-user] Sunshine Duration

2022-03-24 Thread Tom Keffer
You definitely don't want sunshine_hours (or sunshineHours) because that implies a unit. I would suggest "daylight". As for which unit group, the almanac uses group_deltatime for length of day. It's normally measured in seconds. On Thu, Mar 24, 2022 at 10:54 AM Karen K wrote: > I bought a sunsh

[weewx-user] Sunshine Duration

2022-03-24 Thread Karen K
I bought a sunshine duration sensor from Weerhuisje. When integrating it in WeeWX I wondered how to call the observation type. There is nothing appropriate in the standard schema. I found 2 extensions regarding sunshine duration. One of them calls the observation type "sunshine_hours", the othe