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 light and 
the diffusive radiation from the sky are very expensive. Most people only 
have a general radiation sensor, which cannot know whether the sun is 
shining or the sky is bright. Light is light. You cannot fill in the lack 
of information by calculation.

After considering this all I bought a sunshine duration sensor from 
Instromet . This device is 
expensive, too, but still achievable to normal people. It uses a shadow 
bar. If the radiation differs between before and behind the bar, this is 
considered sunshine. A well-defined shadow is not necessary here.

Karen


n7uv...@gmail.com schrieb am Freitag, 3. Mai 2024 um 01:23:52 UTC+2:

> 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. If I meausre 
> in a low humidity, low atmospheric turbidity environment, with low 
> atmospheric particulate count, that shadow should indeed be crisp and well 
> defined. If I measure in a location where the sun is clearly above the 
> horizon, but the shadow is less well defined due to those confounding 
> factors and others, I can still assert that it is sunny, yet it is a degree 
> less sunny than at the former location. 
>
> If one looks at brewster76/
>
>- util-archer 
>- /user 
>
> /radiationhours.py 
>
>
> there is an arbitrary value (to be inserted by the user) on what 
> constitutes full sunlight. 
>
> _
> Adds a new observation field to weewx: [sunshine_hours]
>
> If the radiation observed during an interval of time exceeds 120 W/m2, 
> then the interval is considered sunny,
> and [sunshine_hours] is set the length of the time interval.
>
> When [sunshine_hours] is summed over a day, the result is the number of 
> hours during the day when radiation
> exceeded 120 W/m2, or 'hours of sunshine'.
>
> The threshold of 120 W/m2 can be overwritten in weewx.conf:
>
> [RadiationDays]
> min_sunshine = 120
> ___
>
> so, for Brewster76, 120 w/m^2 is the threshold. This is more or less 
> consistent with the original paper, which attempts to get the necessary 
> fudge factors on atmospheric clarity via long--term empirical observations 
> vs the theoretical value for the insolation at that minute at that 
> location. It by no means is a measure of the shadow, or just how crisp it 
> might be.
>
> Various places in the USA all claim to have the most sunshine. I always 
> wondered how they measured that, and what constituted sunshine. If indeed 
> it is via models like what is presented in the paper and the subsequent 
> code examples, it is just a marketing term.
>
> If there is a measuring device, I call it the umbrameter, that can 
> actually measure the depth of shadow cast, and quantitatively show that 
> indeed it is a sunny minute, that would be a cool instrument. I think a 
> quality video camera or other 2D sensor could inspect the image of the sun 
> and, through sufficient training, could say that "this image is within x% 
> of the expected image of the sun taken above the atmosphere, that would be 
> a useful instrument.
>
> Sunny days and sunshine duration appear to be a matter of opinion.
>
> Cheers - Jon N7UV
> On Thursday, May 2, 2024 at 12:03:15 AM UTC-7 Karen K wrote:
>
>> 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: Screenshot 2024-05-01 155959.png]
>> or something about the total energy delivered to a square meter of the 
>> ground over the period of a day. 
>>
>>
>> Sunshine duration means the time the sun is really seen in the sky and 
>> typically casts a shadow. The standard instrument to measure sunshine 
>> duration is the Campbell-Stokes sunshine recorder 
>> . 
>>
>> Sunshine duration is *not* total daylight time.
>>
>> If a cloud is situated before the sun, this is considered no sunshine. If 
>> clouds are elsewhere in the sky it does not matter.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe fro

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. If I meausre 
in a low humidity, low atmospheric turbidity environment, with low 
atmospheric particulate count, that shadow should indeed be crisp and well 
defined. If I measure in a location where the sun is clearly above the 
horizon, but the shadow is less well defined due to those confounding 
factors and others, I can still assert that it is sunny, yet it is a degree 
less sunny than at the former location. 

If one looks at brewster76/
- util-archer 
- /user 
/radiationhours.py 


there is an arbitrary value (to be inserted by the user) on what 
constitutes full sunlight. 

_
Adds a new observation field to weewx: [sunshine_hours]

If the radiation observed during an interval of time exceeds 120 W/m2, then 
the interval is considered sunny,
and [sunshine_hours] is set the length of the time interval.

When [sunshine_hours] is summed over a day, the result is the number of 
hours during the day when radiation
exceeded 120 W/m2, or 'hours of sunshine'.

The threshold of 120 W/m2 can be overwritten in weewx.conf:

[RadiationDays]
min_sunshine = 120
___

so, for Brewster76, 120 w/m^2 is the threshold. This is more or less 
consistent with the original paper, which attempts to get the necessary 
fudge factors on atmospheric clarity via long--term empirical observations 
vs the theoretical value for the insolation at that minute at that 
location. It by no means is a measure of the shadow, or just how crisp it 
might be.

Various places in the USA all claim to have the most sunshine. I always 
wondered how they measured that, and what constituted sunshine. If indeed 
it is via models like what is presented in the paper and the subsequent 
code examples, it is just a marketing term.

If there is a measuring device, I call it the umbrameter, that can actually 
measure the depth of shadow cast, and quantitatively show that indeed it is 
a sunny minute, that would be a cool instrument. I think a quality video 
camera or other 2D sensor could inspect the image of the sun and, through 
sufficient training, could say that "this image is within x% of the 
expected image of the sun taken above the atmosphere, that would be a 
useful instrument.

Sunny days and sunshine duration appear to be a matter of opinion.

Cheers - Jon N7UV
On Thursday, May 2, 2024 at 12:03:15 AM UTC-7 Karen K wrote:

> 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: Screenshot 2024-05-01 155959.png]
> or something about the total energy delivered to a square meter of the 
> ground over the period of a day. 
>
>
> Sunshine duration means the time the sun is really seen in the sky and 
> typically casts a shadow. The standard instrument to measure sunshine 
> duration is the Campbell-Stokes sunshine recorder 
> . 
>
> Sunshine duration is *not* total daylight time.
>
> If a cloud is situated before the sun, this is considered no sunshine. If 
> clouds are elsewhere in the sky it does not matter.
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/254b9f95-a013-48e4-bc48-a61346d38276n%40googlegroups.com.


Re: [weewx-user] weewx.service: Failed with result 'exit-code'

2024-05-02 Thread vince
Marco - Would you provide more information to help us understand your 
system ?  See the new Problem Reporting Questionnaire (link) 
 for 
the kind of information we need in order to try to help much better.  Thank 
you.

On Wednesday, May 1, 2024 at 12:45:42 AM UTC-7 Marco Citossi wrote:

> Hi vince! sestatus gives disabled...
>
> Il giorno mercoledì 1 maggio 2024 alle 01:57:29 UTC+2 vince ha scritto:
>
>> Marco are you running with selinux in enforcing mode ? Can you check for 
>> selinux errors in your logs or perhaps temporarily run with selinux 
>> disabled to see if that helps ? 
>>
>> Sorry but I’m away from a computer so I can’t give you the precise 
>> commands, but selinux can rather quietly stop things from working in some 
>> configurations. It would be helpful to eliminate that possibility.
>>
>> Other possibility is that your weewx user isn’t in a group with network 
>> access. What does ‘groups weewx’ return ?
>> On Tuesday, April 30, 2024 at 11:39:51 AM UTC-7 Tom Keffer wrote:
>>
>>> I am not that familiar with the IP logger, but I assume you would obey 
>>> the same echo TEST as a regular logger. If it doesn't, then it sounds like 
>>> there is a connectivity problem.
>>>
>>> Yes, it worked under WeeWX V3.8, but you have also changed servers since 
>>> then.
>>>
>>> Double check any firewalls. For example, do you use iptables? Does your 
>>> router prevent indiscriminate traffic between ports? 
>>>
>>>
>>>
>>> On Tue, Apr 30, 2024 at 10:45 AM Marco Citossi  
>>> wrote:
>>>
 I've tried to change weewx.service but without results.
 Telent doesn't echo anything.
 The network should work because the old weewx (3.8.xxx) on the other 
 webserver is working.

 Il giorno martedì 30 aprile 2024 alle 19:03:43 UTC+2 Tom Keffer ha 
 scritto:

> I am wondering whether the network is up and running by the time 
> weewxd tries to access it. Try editing your weewx systemd service file 
> (normally located in /lib/systemd/system/weewx.service) so it looks 
> something like the following:
>
> [Unit]
> Description=WeeWX
> Documentation=https://weewx.com/docs
> Requires=time-sync.target
> After=time-sync.target
> After=network-online.target
> Requires=network-online.target
>
> Then
>
> *sudo systemctl daemon-reload*
> *sudo systemctl restart weewx*
>
> If that doesn't work, we can try putting a sleep command in the 
> startup.
>
> Also, can you telnet to the logger and perform the logger TEST 
> function? The IP address of your logger got cut off in the log, but it 
> would look something like this (replace 140.105.xxx.yyy with the IP 
> address):
>
> telnet 140.105.xxx.yyy 2
> press  a few times.
> Then type "TEST", all caps. It will not echo.
> then 
> The logger should respond with "TEST".
>
>
>
>
> On Tue, Apr 30, 2024 at 9:21 AM Marco Citossi  
> wrote:
>
>> Yes it's ethernet.
>>
>> Here it is the log:
>>
>>
>> apr 30 18:07:10 web4.xxx systemd[1]: Started WeeWX.
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Initializing 
>> weewxd version 5.0.2
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Command line: 
>> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Using Python 
>> 3.6.8 (default, Jan 16 2024, 02:08:59) 
>>
>>  [GCC 8.5.0 20210514 
>> (Red Hat 8.5.0-20.0.1)]
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Located at 
>> /usr/bin/python3
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Platform 
>> Linux-5.4.17-2136.330.7.1.el8uek.x86_64-x86_64-with-oracle-8.9
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Locale: 
>> 'en_US.UTF-8'
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Entry path: 
>> /usr/share/weewx/weewxd.py
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: WEEWX_ROOT: 
>> /etc/weewx
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Configuration 
>> file: /etc/weewx/weewx.conf
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: User module: 
>> /etc/weewx/bin/user
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Debug: 1
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: DEBUG __main__: Initializing 
>> engine
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: INFO weewx.engine: Loading 
>> station type Vantage (weewx.drivers.vantage)
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: DEBUG weewx.drivers.vantage: 
>> Driver version is 3.6.2
>>
>> apr 30 18:07:10 web4.xxx weewxd[22596]: DEBUG weewx.drivers.va

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, geni08...@gmail.com  a écrit :
> 
> 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 MQTT?
> 

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/06BA7E60-C50E-44D5-8517-76C54B82C4E8%40gmail.com.


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 MQTT?

Karen K schrieb am Donnerstag, 2. Mai 2024 um 09:03:15 UTC+2:

> 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: Screenshot 2024-05-01 155959.png]
> or something about the total energy delivered to a square meter of the 
> ground over the period of a day. 
>
>
> Sunshine duration means the time the sun is really seen in the sky and 
> typically casts a shadow. The standard instrument to measure sunshine 
> duration is the Campbell-Stokes sunshine recorder 
> . 
>
> Sunshine duration is *not* total daylight time.
>
> If a cloud is situated before the sun, this is considered no sunshine. If 
> clouds are elsewhere in the sky it does not matter.
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c9afdf60-3529-4502-a8d2-558bf975cca2n%40googlegroups.com.


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: Screenshot 2024-05-01 155959.png]
or something about the total energy delivered to a square meter of the 
ground over the period of a day. 


Sunshine duration means the time the sun is really seen in the sky and 
typically casts a shadow. The standard instrument to measure sunshine 
duration is the Campbell-Stokes sunshine recorder 
. 

Sunshine duration is *not* total daylight time.

If a cloud is situated before the sun, this is considered no sunshine. If 
clouds are elsewhere in the sky it does not matter.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a10c6bba-0a86-4b66-a11e-3e6597ceaf1cn%40googlegroups.com.