Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-10-01 Thread gjr80
So what is your reason for saying "it doesn't work", are you looking at web 
page output, a plot etc or did you look at the loop packet data being 
emitted by your driver? The former two are really at the end of the whole 
processing chain, so there are many opportunities for things to go awry 
beforehand. The latter is pretty much straight from the driver and if you 
observe the loop packets when running WeeWX directly you will see the 
effects of your [StdCalibrate]] [[Corrections]] stanza.

There is a lot of general comments and minor config snippets in this thread 
and it is difficult to determine exactly what is bering used and what is 
going on. Could I suggest we take this from the top and you:
1. Post the output from wee_debug 
. This will 
give a current and complete picture of your WeeWX config. When posting 
wee_debug output do check the content for sensitive information (eg user 
names, passwords, API keys etc), wee_debug is pretty good at obfuscating 
such content but it is not perfect. 
2. Run WeeWX directly 
. This will 
display loop packets (lines starting with LOOP:) and archive records (lines 
starting with REC:) directly on the console. Let WeeWX run so you see at 
least two archive records (lines starting with REC:) and post the entire 
output here.

Setting up a calibration correction such as this is not complex, this 
should be easy to troubleshoot and rectify.

Gary
On Monday, 2 October 2023 at 03:28:01 UTC+10 kevinjc...@gmail.com wrote:

> did it, still not working. oh well.
>
> On Friday, September 29, 2023 at 4:00:06 PM UTC-4 Eric K wrote:
>
>> You have to restart weewx before changes made to the weewx.conf file will 
>> take effect.
>> If you've restarted weewx, you should start to see additions to the 
>> graphs, every 5 minutes.
>>
>> On Friday, September 29, 2023 at 2:49:54 PM UTC-5 Kevin Crivelli wrote:
>>
>>> Should it reflect in the graphs immediately? I was able to login to ssh 
>>> from work and make the change but I'm not seeing any change in the graphs
>>>
>>> On Fri, Sep 29, 2023, 3:09 PM Kevin Crivelli  
>>> wrote:
>>>
 Thank you! I'm gonna try this. Let ya know how it works out 

 On Fri, Sep 29, 2023, 11:17 AM Eric Koester  
 wrote:

> Kevin Crivelli,Here's what my [[Corrections]] section looks like.
> Mine uses '> 0' rather than 'not None'
>
> [StdCalibrate]
>>
>> [[Corrections]]
>> # For each type, an arbitrary calibration expression can be 
>> given.
>> # It should be in the units defined in the StdConvert section.
>> # Example:  foo = foo + 0.2
>> radiation = luminosity * 0.00789 if luminosity > 0 else None
>> lightning_distance = lightning_distance / 1.609 if 
>> lightning_strike_count > 0 else None#convert distance to miles
>
>
> On Wed, Sep 27, 2023 at 6:49 PM Kevin Crivelli  
> wrote:
>
>> [StdCalibrate]
>> 
>> [[Corrections]]
>> windDir = windDir if windSpeed > 0 else None
>> lightning_distance = lightning_distance if 
>> lightning_strike_count > 0 else None
>> # For each type, an arbitrary calibration expression can be 
>> given.
>> # It should be in the units defined in the StdConvert 
>> section.
>> # Example:
>> foo = foo + 0.2
>> radiation = luminosity/126.7 if luminosity is not None else 
>> None
>>
>>
>> On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:
>>
>>> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf 
>>> file with us.
>>>
>>> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli 
>>> wrote:
>>>
>>> I have the same problem but this didn't work for me. any ideas?
>>>
>>> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>>>
>>>
>>> Eric K <> writes: 
>>>
>>> > The Acurite Atlas weather sensor provides a UV and a lux value, 
>>> but not a 
>>> > radiation value. 
>>> > I want to use this formula to calculate solar radiation from the 
>>> lux sensor 
>>> > in the Acurite Atlas: radiation = lux * 0.0079 
>>>
>>> See also 
>>>
>>> https://github.com/weewx/weewx/wiki/Watts-and-lux 
>>>
>>> -- 
>> You received this message because you are subscribed to a topic in 
>> the Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/oWp-9LivDJo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegrou

Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-10-01 Thread Kevin Crivelli
did it, still not working. oh well.

On Friday, September 29, 2023 at 4:00:06 PM UTC-4 Eric K wrote:

> You have to restart weewx before changes made to the weewx.conf file will 
> take effect.
> If you've restarted weewx, you should start to see additions to the 
> graphs, every 5 minutes.
>
> On Friday, September 29, 2023 at 2:49:54 PM UTC-5 Kevin Crivelli wrote:
>
>> Should it reflect in the graphs immediately? I was able to login to ssh 
>> from work and make the change but I'm not seeing any change in the graphs
>>
>> On Fri, Sep 29, 2023, 3:09 PM Kevin Crivelli  
>> wrote:
>>
>>> Thank you! I'm gonna try this. Let ya know how it works out 
>>>
>>> On Fri, Sep 29, 2023, 11:17 AM Eric Koester  wrote:
>>>
 Kevin Crivelli,Here's what my [[Corrections]] section looks like.
 Mine uses '> 0' rather than 'not None'

 [StdCalibrate]
>
> [[Corrections]]
> # For each type, an arbitrary calibration expression can be 
> given.
> # It should be in the units defined in the StdConvert section.
> # Example:  foo = foo + 0.2
> radiation = luminosity * 0.00789 if luminosity > 0 else None
> lightning_distance = lightning_distance / 1.609 if 
> lightning_strike_count > 0 else None#convert distance to miles


 On Wed, Sep 27, 2023 at 6:49 PM Kevin Crivelli  
 wrote:

> [StdCalibrate]
> 
> [[Corrections]]
> windDir = windDir if windSpeed > 0 else None
> lightning_distance = lightning_distance if 
> lightning_strike_count > 0 else None
> # For each type, an arbitrary calibration expression can be 
> given.
> # It should be in the units defined in the StdConvert section.
> # Example:
> foo = foo + 0.2
> radiation = luminosity/126.7 if luminosity is not None else 
> None
>
>
> On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:
>
>> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf 
>> file with us.
>>
>> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli 
>> wrote:
>>
>> I have the same problem but this didn't work for me. any ideas?
>>
>> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>>
>>
>> Eric K <> writes: 
>>
>> > The Acurite Atlas weather sensor provides a UV and a lux value, but 
>> not a 
>> > radiation value. 
>> > I want to use this formula to calculate solar radiation from the 
>> lux sensor 
>> > in the Acurite Atlas: radiation = lux * 0.0079 
>>
>> See also 
>>
>> https://github.com/weewx/weewx/wiki/Watts-and-lux 
>>
>> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/oWp-9LivDJo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegroups.com
>  
> 
> .
>
 -- 
 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+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/CADh_orjKiziRwWUTK%3DgGN2Kao%3DB3n4FGRvvmTDGn355iLpDRqQ%40mail.gmail.com
  
 
 .

>>>

-- 
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/df1b5f69-e1b2-4f64-bd7a-eaa8353d4506n%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-29 Thread Eric K
You have to restart weewx before changes made to the weewx.conf file will 
take effect.
If you've restarted weewx, you should start to see additions to the graphs, 
every 5 minutes.

On Friday, September 29, 2023 at 2:49:54 PM UTC-5 Kevin Crivelli wrote:

> Should it reflect in the graphs immediately? I was able to login to ssh 
> from work and make the change but I'm not seeing any change in the graphs
>
> On Fri, Sep 29, 2023, 3:09 PM Kevin Crivelli  wrote:
>
>> Thank you! I'm gonna try this. Let ya know how it works out 
>>
>> On Fri, Sep 29, 2023, 11:17 AM Eric Koester  wrote:
>>
>>> Kevin Crivelli,Here's what my [[Corrections]] section looks like.
>>> Mine uses '> 0' rather than 'not None'
>>>
>>> [StdCalibrate]

 [[Corrections]]
 # For each type, an arbitrary calibration expression can be 
 given.
 # It should be in the units defined in the StdConvert section.
 # Example:  foo = foo + 0.2
 radiation = luminosity * 0.00789 if luminosity > 0 else None
 lightning_distance = lightning_distance / 1.609 if 
 lightning_strike_count > 0 else None#convert distance to miles
>>>
>>>
>>> On Wed, Sep 27, 2023 at 6:49 PM Kevin Crivelli  
>>> wrote:
>>>
 [StdCalibrate]
 
 [[Corrections]]
 windDir = windDir if windSpeed > 0 else None
 lightning_distance = lightning_distance if 
 lightning_strike_count > 0 else None
 # For each type, an arbitrary calibration expression can be 
 given.
 # It should be in the units defined in the StdConvert section.
 # Example:
 foo = foo + 0.2
 radiation = luminosity/126.7 if luminosity is not None else 
 None


 On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:

> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf 
> file with us.
>
> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli 
> wrote:
>
> I have the same problem but this didn't work for me. any ideas?
>
> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>
>
> Eric K <> writes: 
>
> > The Acurite Atlas weather sensor provides a UV and a lux value, but 
> not a 
> > radiation value. 
> > I want to use this formula to calculate solar radiation from the lux 
> sensor 
> > in the Acurite Atlas: radiation = lux * 0.0079 
>
> See also 
>
> https://github.com/weewx/weewx/wiki/Watts-and-lux 
>
> -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "weewx-user" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/weewx-user/oWp-9LivDJo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 weewx-user+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegroups.com
  
 
 .

>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/CADh_orjKiziRwWUTK%3DgGN2Kao%3DB3n4FGRvvmTDGn355iLpDRqQ%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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/f78c3866-2868-41fa-8a2b-211f71f3d5b9n%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-29 Thread Kevin Crivelli
Should it reflect in the graphs immediately? I was able to login to ssh
from work and make the change but I'm not seeing any change in the graphs

On Fri, Sep 29, 2023, 3:09 PM Kevin Crivelli 
wrote:

> Thank you! I'm gonna try this. Let ya know how it works out
>
> On Fri, Sep 29, 2023, 11:17 AM Eric Koester 
> wrote:
>
>> Kevin Crivelli,Here's what my [[Corrections]] section looks like.
>> Mine uses '> 0' rather than 'not None'
>>
>> [StdCalibrate]
>>>
>>> [[Corrections]]
>>> # For each type, an arbitrary calibration expression can be
>>> given.
>>> # It should be in the units defined in the StdConvert section.
>>> # Example:  foo = foo + 0.2
>>> radiation = luminosity * 0.00789 if luminosity > 0 else None
>>> lightning_distance = lightning_distance / 1.609 if
>>> lightning_strike_count > 0 else None#convert distance to miles
>>
>>
>> On Wed, Sep 27, 2023 at 6:49 PM Kevin Crivelli 
>> wrote:
>>
>>> [StdCalibrate]
>>>
>>> [[Corrections]]
>>> windDir = windDir if windSpeed > 0 else None
>>> lightning_distance = lightning_distance if
>>> lightning_strike_count > 0 else None
>>> # For each type, an arbitrary calibration expression can be
>>> given.
>>> # It should be in the units defined in the StdConvert section.
>>> # Example:
>>> foo = foo + 0.2
>>> radiation = luminosity/126.7 if luminosity is not None else None
>>>
>>>
>>> On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:
>>>
 Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf
 file with us.

 On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli
 wrote:

 I have the same problem but this didn't work for me. any ideas?

 On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:


 Eric K <> writes:

 > The Acurite Atlas weather sensor provides a UV and a lux value, but
 not a
 > radiation value.
 > I want to use this formula to calculate solar radiation from the lux
 sensor
 > in the Acurite Atlas: radiation = lux * 0.0079

 See also

 https://github.com/weewx/weewx/wiki/Watts-and-lux

 --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "weewx-user" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/weewx-user/oWp-9LivDJo/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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/CADh_orjKiziRwWUTK%3DgGN2Kao%3DB3n4FGRvvmTDGn355iLpDRqQ%40mail.gmail.com
>> 
>> .
>>
>

-- 
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/CAG3iCAwkSdJJxvQnZJtC6%2B60hMsdTSv2LyLs_YXsn77NpDQGOQ%40mail.gmail.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-29 Thread Kevin Crivelli
Thank you! I'm gonna try this. Let ya know how it works out

On Fri, Sep 29, 2023, 11:17 AM Eric Koester  wrote:

> Kevin Crivelli,Here's what my [[Corrections]] section looks like.
> Mine uses '> 0' rather than 'not None'
>
> [StdCalibrate]
>>
>> [[Corrections]]
>> # For each type, an arbitrary calibration expression can be given.
>> # It should be in the units defined in the StdConvert section.
>> # Example:  foo = foo + 0.2
>> radiation = luminosity * 0.00789 if luminosity > 0 else None
>> lightning_distance = lightning_distance / 1.609 if
>> lightning_strike_count > 0 else None#convert distance to miles
>
>
> On Wed, Sep 27, 2023 at 6:49 PM Kevin Crivelli 
> wrote:
>
>> [StdCalibrate]
>>
>> [[Corrections]]
>> windDir = windDir if windSpeed > 0 else None
>> lightning_distance = lightning_distance if
>> lightning_strike_count > 0 else None
>> # For each type, an arbitrary calibration expression can be
>> given.
>> # It should be in the units defined in the StdConvert section.
>> # Example:
>> foo = foo + 0.2
>> radiation = luminosity/126.7 if luminosity is not None else None
>>
>>
>> On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:
>>
>>> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf
>>> file with us.
>>>
>>> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli
>>> wrote:
>>>
>>> I have the same problem but this didn't work for me. any ideas?
>>>
>>> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>>>
>>>
>>> Eric K <> writes:
>>>
>>> > The Acurite Atlas weather sensor provides a UV and a lux value, but
>>> not a
>>> > radiation value.
>>> > I want to use this formula to calculate solar radiation from the lux
>>> sensor
>>> > in the Acurite Atlas: radiation = lux * 0.0079
>>>
>>> See also
>>>
>>> https://github.com/weewx/weewx/wiki/Watts-and-lux
>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/weewx-user/oWp-9LivDJo/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegroups.com
>> 
>> .
>>
> --
> 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/CADh_orjKiziRwWUTK%3DgGN2Kao%3DB3n4FGRvvmTDGn355iLpDRqQ%40mail.gmail.com
> 
> .
>

-- 
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/CAG3iCAzEJEsFO10AFq0B%2BbbYB2iWzi%3D-wVxTENQ0-odxOxJJEw%40mail.gmail.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-29 Thread Eric Koester
Kevin Crivelli,Here's what my [[Corrections]] section looks like.
Mine uses '> 0' rather than 'not None'

[StdCalibrate]
>
> [[Corrections]]
> # For each type, an arbitrary calibration expression can be given.
> # It should be in the units defined in the StdConvert section.
> # Example:  foo = foo + 0.2
> radiation = luminosity * 0.00789 if luminosity > 0 else None
> lightning_distance = lightning_distance / 1.609 if
> lightning_strike_count > 0 else None#convert distance to miles


On Wed, Sep 27, 2023 at 6:49 PM Kevin Crivelli 
wrote:

> [StdCalibrate]
>
> [[Corrections]]
> windDir = windDir if windSpeed > 0 else None
> lightning_distance = lightning_distance if lightning_strike_count
> > 0 else None
> # For each type, an arbitrary calibration expression can be given.
> # It should be in the units defined in the StdConvert section.
> # Example:
> foo = foo + 0.2
> radiation = luminosity/126.7 if luminosity is not None else None
>
>
> On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:
>
>> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf file
>> with us.
>>
>> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli wrote:
>>
>> I have the same problem but this didn't work for me. any ideas?
>>
>> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>>
>>
>> Eric K <> writes:
>>
>> > The Acurite Atlas weather sensor provides a UV and a lux value, but not
>> a
>> > radiation value.
>> > I want to use this formula to calculate solar radiation from the lux
>> sensor
>> > in the Acurite Atlas: radiation = lux * 0.0079
>>
>> See also
>>
>> https://github.com/weewx/weewx/wiki/Watts-and-lux
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/oWp-9LivDJo/unsubscribe.
> To unsubscribe from this group and all its topics, 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/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegroups.com
> 
> .
>

-- 
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/CADh_orjKiziRwWUTK%3DgGN2Kao%3DB3n4FGRvvmTDGn355iLpDRqQ%40mail.gmail.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-27 Thread Kevin Crivelli
after no luck I was trying to follow this thread but when I get to the end 
I don't think those apply to this version of weewx. The post is from 2019

https://groups.google.com/g/weewx-user/c/CMwtsQ6SrpE/m/FoiiCMrfBgAJ

On Wednesday, September 27, 2023 at 7:49:52 PM UTC-4 Kevin Crivelli wrote:

> [StdCalibrate]
> 
> [[Corrections]]
> windDir = windDir if windSpeed > 0 else None
> lightning_distance = lightning_distance if lightning_strike_count 
> > 0 else None
> # For each type, an arbitrary calibration expression can be given.
> # It should be in the units defined in the StdConvert section.
> # Example:
> foo = foo + 0.2
> radiation = luminosity/126.7 if luminosity is not None else None
>
>
> On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:
>
>> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf file 
>> with us.
>>
>> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli wrote:
>>
>> I have the same problem but this didn't work for me. any ideas?
>>
>> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>>
>>
>> Eric K <> writes: 
>>
>> > The Acurite Atlas weather sensor provides a UV and a lux value, but not 
>> a 
>> > radiation value. 
>> > I want to use this formula to calculate solar radiation from the lux 
>> sensor 
>> > in the Acurite Atlas: radiation = lux * 0.0079 
>>
>> See also 
>>
>> https://github.com/weewx/weewx/wiki/Watts-and-lux 
>>
>>

-- 
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/a33be425-fdca-488f-be71-7b74613e18bfn%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-27 Thread Kevin Crivelli
 [StdCalibrate]

[[Corrections]]
windDir = windDir if windSpeed > 0 else None
lightning_distance = lightning_distance if lightning_strike_count > 
0 else None
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# Example:
foo = foo + 0.2
radiation = luminosity/126.7 if luminosity is not None else None


On Wednesday, September 27, 2023 at 7:11:05 PM UTC-4 Eric K wrote:

> Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf file 
> with us.
>
> On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli wrote:
>
> I have the same problem but this didn't work for me. any ideas?
>
> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>
>
> Eric K <> writes: 
>
> > The Acurite Atlas weather sensor provides a UV and a lux value, but not 
> a 
> > radiation value. 
> > I want to use this formula to calculate solar radiation from the lux 
> sensor 
> > in the Acurite Atlas: radiation = lux * 0.0079 
>
> See also 
>
> https://github.com/weewx/weewx/wiki/Watts-and-lux 
>
>

-- 
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/fc6b65b0-69be-4ec7-9763-675f62302f48n%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-27 Thread Eric K
Share the [StdCalibrate]  [[Corrections]] section of your weewx.conf file 
with us.

On Wednesday, September 27, 2023 at 5:53:10 PM UTC-5 Kevin Crivelli wrote:

I have the same problem but this didn't work for me. any ideas?

On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:


Eric K <> writes: 

> The Acurite Atlas weather sensor provides a UV and a lux value, but not a 
> radiation value. 
> I want to use this formula to calculate solar radiation from the lux 
sensor 
> in the Acurite Atlas: radiation = lux * 0.0079 

See also 

https://github.com/weewx/weewx/wiki/Watts-and-lux 

-- 
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/e86ed98a-ef5d-457c-a2e8-d3e95784faa2n%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-27 Thread Colin Larsen
My graph is almost perfect with that calculation

Colin
41south.nz



On Thu, 28 Sept 2023, 11:53 Kevin Crivelli, 
wrote:

> I have the same problem but this didn't work for me. any ideas?
>
> On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:
>
>>
>> Eric K  writes:
>>
>> > The Acurite Atlas weather sensor provides a UV and a lux value, but not
>> a
>> > radiation value.
>> > I want to use this formula to calculate solar radiation from the lux
>> sensor
>> > in the Acurite Atlas: radiation = lux * 0.0079
>>
>> See also
>>
>> https://github.com/weewx/weewx/wiki/Watts-and-lux
>>
> --
> 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/1a02cf03-4452-4be4-8ccf-8f7dfbcf899an%40googlegroups.com
> 
> .
>

-- 
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/CACjxfUt8%2BPAr%3DWXLj3WxsPMhCg275xUS%3D3ej%2B0P6yUTfTGuUJg%40mail.gmail.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2023-09-27 Thread Kevin Crivelli
I have the same problem but this didn't work for me. any ideas?

On Tuesday, May 18, 2021 at 6:04:08 PM UTC-4 Greg Troxel wrote:

>
> Eric K  writes:
>
> > The Acurite Atlas weather sensor provides a UV and a lux value, but not 
> a 
> > radiation value.
> > I want to use this formula to calculate solar radiation from the lux 
> sensor 
> > in the Acurite Atlas: radiation = lux * 0.0079
>
> See also
>
> https://github.com/weewx/weewx/wiki/Watts-and-lux
>

-- 
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/1a02cf03-4452-4be4-8ccf-8f7dfbcf899an%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2021-05-18 Thread Greg Troxel

Eric K  writes:

> Yeah, I agree conversion is not the best way to obtain the solar radiation 
> value. 
> Lux is all Acurite provides us.
>
> I found several places where the sunlight-specific conversion value of of 
> 1/126.7 (or 0.00789) was referenced, so I went with that.
> https://help.ambientweather.net/help/why-is-the-lux-to-w-m-2-conversion-factor-126-7
> https://cumulus.hosiene.co.uk/viewtopic.php?t=3979

I added those links to the wiki page.

Agreed that for bright full sun conversions based on an assumed spectral
distribution are not ridiculous.

It would be really interesting if someone with both kinds of sensors
(both high quality!) were to post a scatter plot of one vs the other.
I expect good agreement about 500 W/m^2, and much less by the time one
gets to 100 W/m^2.   But I am just guessing.

-- 
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/rmiy2cbis6a.fsf%40s1.lexort.com.


signature.asc
Description: PGP signature


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2021-05-18 Thread Eric K
Yeah, I agree conversion is not the best way to obtain the solar radiation 
value. 
Lux is all Acurite provides us.

I found several places where the sunlight-specific conversion value of of 
1/126.7 (or 0.00789) was referenced, so I went with that.
https://help.ambientweather.net/help/why-is-the-lux-to-w-m-2-conversion-factor-126-7
https://cumulus.hosiene.co.uk/viewtopic.php?t=3979



On Tuesday, May 18, 2021 at 5:04:08 PM UTC-5 Greg Troxel wrote:

>
> Eric K  writes:
>
> > The Acurite Atlas weather sensor provides a UV and a lux value, but not 
> a 
> > radiation value.
> > I want to use this formula to calculate solar radiation from the lux 
> sensor 
> > in the Acurite Atlas: radiation = lux * 0.0079
>
> See also
>
> https://github.com/weewx/weewx/wiki/Watts-and-lux
>

-- 
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/77cc35c9-7a13-4fff-8194-c0b11c48ca76n%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2021-05-18 Thread Greg Troxel

Eric K  writes:

> The Acurite Atlas weather sensor provides a UV and a lux value, but not a 
> radiation value.
> I want to use this formula to calculate solar radiation from the lux sensor 
> in the Acurite Atlas:  radiation = lux * 0.0079

See also

https://github.com/weewx/weewx/wiki/Watts-and-lux

-- 
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/rmi35ujk8by.fsf%40s1.lexort.com.


signature.asc
Description: PGP signature


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2021-05-18 Thread Eric K
That worked well.  Thanks!
[image: calculated radiation value.JPG]

On Tuesday, May 18, 2021 at 2:58:31 PM UTC-5 lang@googlemail.com wrote:

> in the [StdCalibrate] [[Corrections]] stanza in weewx.conf add the line
>
> radiation = luminosity/126.7 if luminosity is not None else None
>
> Then the calculated value will be stored as radiation in the database and 
> you can use it in your reports/skins
>
> On 18.05.2021 21:10, Eric K wrote:
>
> The Acurite Atlas weather sensor provides a UV and a lux value, but not a 
> radiation value.
> I want to use this formula to calculate solar radiation from the lux 
> sensor in the Acurite Atlas:  radiation = lux * 0.0079
>
> I've been searching the weewx documentation for details and examples of 
> how to create a data value from a calculation.  This calculated data will 
> then go into the weewx database, and graphs in the weewx web page.
>
> It looks like the StdWXCalculate section of the weewx.conf file is the 
> place to do this?
> Is that correct?
> https://weewx.com/docs/usersguide.htm#StdWXCalculate
>
> I've been looking for an example of the StdWXCalculate section showing how 
> a user-created formula is included, and I have not found one.
>
> Can someone show an example of including a user-created formula?
>
> Help appreciated.
>
> -- 
> 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+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/574d19fd-304c-44d9-b73a-68d203e72a82n%40googlegroups.com
>  
> 
> .
>
>

-- 
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/1fca24cc-82e4-40dc-b835-3a9b22c240d9n%40googlegroups.com.


Re: [weewx-user] want to use lux value to calculate value for 'radiation'

2021-05-18 Thread 'Rainer Lang' via weewx-user

in the [StdCalibrate] [[Corrections]] stanza in weewx.conf add the line

radiation = luminosity/126.7 if luminosity is not None else None

Then the calculated value will be stored as radiation in the database 
and you can use it in your reports/skins


On 18.05.2021 21:10, Eric K wrote:
The Acurite Atlas weather sensor provides a UV and a lux value, but 
not a radiation value.
I want to use this formula to calculate solar radiation from the lux 
sensor in the Acurite Atlas:  radiation = lux * 0.0079


I've been searching the weewx documentation for details and examples 
of how to create a data value from a calculation. This calculated 
data will then go into the weewx database, and graphs in the weewx 
web page.


It looks like the StdWXCalculate section of the weewx.conf file is 
the place to do this?

Is that correct?
https://weewx.com/docs/usersguide.htm#StdWXCalculate

I've been looking for an example of the StdWXCalculate section 
showing how a user-created formula is included, and I have not found one.


Can someone show an example of including a user-created formula?

Help appreciated.
--
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/574d19fd-304c-44d9-b73a-68d203e72a82n%40googlegroups.com 
.


--
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/e6f638a6-a14e-8fde-63d6-9936b15b4ca3%40gmail.com.


[weewx-user] want to use lux value to calculate value for 'radiation'

2021-05-18 Thread Eric K
The Acurite Atlas weather sensor provides a UV and a lux value, but not a 
radiation value.
I want to use this formula to calculate solar radiation from the lux sensor 
in the Acurite Atlas:  radiation = lux * 0.0079

I've been searching the weewx documentation for details and examples of how 
to create a data value from a calculation.  This calculated data will then 
go into the weewx database, and graphs in the weewx web page.

It looks like the StdWXCalculate section of the weewx.conf file is the 
place to do this?
Is that correct?
https://weewx.com/docs/usersguide.htm#StdWXCalculate

I've been looking for an example of the StdWXCalculate section showing how 
a user-created formula is included, and I have not found one.

Can someone show an example of including a user-created formula?

Help appreciated.

-- 
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/574d19fd-304c-44d9-b73a-68d203e72a82n%40googlegroups.com.