Re: [weewx-user] Re: calculate rainRate for second rain gauge...?

2022-11-16 Thread Glenn McKechnie
Hi Gary,

Thanks for that.
I can appreciate that other things can often rank higher on the ever
changing ToDo list; such is its nature.

Will bookmark #813, and happy to test any code.
I can probably fire up a separate instance of weewx with another ow
adapter and rain ( hail / snow) counter if need be.

Hope you (and others) are high and dry in this wet summer we are
having. Seems odd to be in the middle of fire preparations but Aus
really is a country of extremes.


On 17/11/2022, gjr80  wrote:
> Glenn,
>
> Other things and a need to reacquaint myself with #491
>  have delayed me getting back to
>
> you. You are correct that StdWXCalculate cannot calculate rate based fields
>
> other than rainRate. #491 considered a number of approaches for calculating
>
> delta fields from total fields (the case in hand being field rain from a
> rain total field) and a number of approaches were considered, these
> approaches impacted on some of the other StdWXCalculate functions and I
> suspect my comment earlier in this thread was based on some of the early
> development code written under #491. As it turned out the final #491
> solution resulted in the current hard coded rainRate approach.
>
> Happy you look at generalising rate based calculation in StdWXCalculate and
>
> I have raised issue #813  to
> track this. Should have some time in the next week to work on this.
>
> Gary
>
> On Sunday, 13 November 2022 at 16:16:11 UTC+10 Glenn McKechnie wrote:
>
>> On 29/06/2020, gjr80 <...> wrote:
>> > I would not worry about raising anything Christian, the code I am
>> working on
>> > would allow something like a rate based field to be calculated from
>> > some
>> > other (user specified) field. You still have to add any necessary extra
>> > fields to your database yourself, but StdWXCalculate could be configured
>> >
>> to
>> > create the rate based field. No guarantees as it needs the Tom-tick but
>> >
>> it
>> > looks good so far.
>>
>> Breathing life into an old thread...
>>
>> Did this idea get the "Tom-tick"?
>>
>> I'm using hail and hailrate.
>>
>> I've had a look at issue #491 and the new wxxtypes and wondering if
>> that is what was being referenced here. I can't see a way to make hail
>> (or snow!) work with it (RainRater) though. Hopefully some simple
>> stanza under [StdWXCalculate] [[WXXTypes]]?
>>
>> I co-opted the hail field a while ago and have 5 years of data
>> supplied via a modified OWFS driver.
>>
>> It would be helpful to have the hailrate to compare with the rainrate
>> from the original rain gauge as I'm cleaning up some extreme rain
>> values; which also means that issue #787 (wee_database --calc-missing
>> does not correctly calculate rainRate) bites if I want the historical
>> values?
>> --
>>
>>
>> Cheers
>> Glenn
>>
>> rorpi - read only raspberry pi & various weewx addons
>> https://github.com/glennmckechnie
>>
>
> --
> 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/1e8d4083-e7ae-4c9c-bc54-36efb147c886n%40googlegroups.com.
>


-- 


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
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/CAAraAzh%2BniajXu5%2B4eAumU_Rp4F%2BiUKb0XxTB%2BNPSb-qLrJhUw%40mail.gmail.com.


Re: [weewx-user] Re: calculate rainRate for second rain gauge...?

2022-11-16 Thread gjr80
Glenn,

Other things and a need to reacquaint myself with #491 
 have delayed me getting back to 
you. You are correct that StdWXCalculate cannot calculate rate based fields 
other than rainRate. #491 considered a number of approaches for calculating 
delta fields from total fields (the case in hand being field rain from a 
rain total field) and a number of approaches were considered, these 
approaches impacted on some of the other StdWXCalculate functions and I 
suspect my comment earlier in this thread was based on some of the early 
development code written under #491. As it turned out the final #491 
solution resulted in the current hard coded rainRate approach.

Happy you look at generalising rate based calculation in StdWXCalculate and 
I have raised issue #813  to 
track this. Should have some time in the next week to work on this.

Gary

On Sunday, 13 November 2022 at 16:16:11 UTC+10 Glenn McKechnie wrote:

> On 29/06/2020, gjr80 <...> wrote:
> > I would not worry about raising anything Christian, the code I am 
> working on
> > would allow something like a rate based field to be calculated from some
> > other (user specified) field. You still have to add any necessary extra
> > fields to your database yourself, but StdWXCalculate could be configured 
> to
> > create the rate based field. No guarantees as it needs the Tom-tick but 
> it
> > looks good so far.
>
> Breathing life into an old thread...
>
> Did this idea get the "Tom-tick"?
>
> I'm using hail and hailrate.
>
> I've had a look at issue #491 and the new wxxtypes and wondering if
> that is what was being referenced here. I can't see a way to make hail
> (or snow!) work with it (RainRater) though. Hopefully some simple
> stanza under [StdWXCalculate] [[WXXTypes]]?
>
> I co-opted the hail field a while ago and have 5 years of data
> supplied via a modified OWFS driver.
>
> It would be helpful to have the hailrate to compare with the rainrate
> from the original rain gauge as I'm cleaning up some extreme rain
> values; which also means that issue #787 (wee_database --calc-missing
> does not correctly calculate rainRate) bites if I want the historical
> values?
> -- 
>
>
> Cheers
> Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>

-- 
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/1e8d4083-e7ae-4c9c-bc54-36efb147c886n%40googlegroups.com.


Re: [weewx-user] Re: calculate rainRate for second rain gauge...?

2022-11-12 Thread Glenn McKechnie
On 29/06/2020, gjr80 <...> wrote:
> I would not worry about raising anything Christian, the code I am working on
> would allow something like a rate based field to be calculated from some
> other (user specified) field. You still have to add any necessary extra
> fields to your database yourself, but StdWXCalculate could be configured to
> create the rate based field. No guarantees as it needs the Tom-tick but it
> looks good so far.

Breathing life into an old thread...

Did this idea get the "Tom-tick"?

I'm using hail and hailrate.

I've had a look at issue #491 and the new wxxtypes and wondering if
that is what was being referenced here. I can't see a way to make hail
(or snow!) work with it (RainRater) though.Hopefully some simple
stanza under [StdWXCalculate] [[WXXTypes]]?

I co-opted the hail field a while ago and have 5 years of data
supplied via a modified OWFS driver.

It would be helpful to have the hailrate to compare with the rainrate
from the original rain gauge as I'm cleaning up some extreme rain
values; which also means that issue #787 (wee_database --calc-missing
does not correctly calculate rainRate) bites if I want the historical
values?
-- 


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
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/CAAraAzhgrmRhRmkYF-xMYRewrH02H68dQjdkyGfyVH%3DY3NZT8A%40mail.gmail.com.


[weewx-user] Re: calculate rainRate for second rain gauge...?

2020-07-05 Thread 'Christian Peters' via weewx-user
Gary,

thanks...so I will wait for your code and hope it will be merged to get 
easy calculated some kind of rate in the future. 

Regards,

Christian 



Am Montag, 29. Juni 2020 10:55:48 UTC+2 schrieb gjr80:
>
> I would not worry about raising anything Christian, the code I am working 
> on would allow something like a rate based field to be calculated from some 
> other (user specified) field. You still have to add any necessary extra 
> fields to your database yourself, but StdWXCalculate could be configured to 
> create the rate based field. No guarantees as it needs the Tom-tick but it 
> looks good so far.
>
> Gary
>

-- 
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/a2886d3e-38b5-4072-adab-5394e1761a41o%40googlegroups.com.


[weewx-user] Re: calculate rainRate for second rain gauge...?

2020-06-29 Thread gjr80
I would not worry about raising anything Christian, the code I am working on 
would allow something like a rate based field to be calculated from some other 
(user specified) field. You still have to add any necessary extra fields to 
your database yourself, but StdWXCalculate could be configured to create the 
rate based field. No guarantees as it needs the Tom-tick but it looks good so 
far.

Gary

-- 
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/09f4718e-10e9-41ed-a649-68f93892a195o%40googlegroups.com.


[weewx-user] Re: calculate rainRate for second rain gauge...?

2020-06-28 Thread 'Christian Peters' via weewx-user
Gary,

thanks for the link and the explanation. I fear there is some code to 
understand and to change that to hailRate, will be be out of my skills I 
fear. 
Should I raise a feature request in weewx git to add a second or third rain 
value in the databse with included rainRate computation?

Adding a additional 
rain1
field to the database and assign it to the rain group would not enable 
rainRate computation for that added new value I think?

Thanks for your help.

Regards,

Christian 

Am Samstag, 27. Juni 2020 10:52:16 UTC+2 schrieb gjr80:
>
> Christian,
>
> The StdWXCalculate service calculates rainRate for those systems where the 
> driver does not provide it. You will find the StdWXCalculate code in 
> bin/weewx/wxservices.py (
> https://github.com/weewx/weewx/blob/master/bin/weewx/wxservices.py). 
> Adding hailRate is relatively straightforward but will require a good 
> understanding of how the StdWXCalculate code operates.
>
> Gary
>
>

-- 
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/18e2cc8f-4971-4b47-a526-3bf31b54f9f6o%40googlegroups.com.


[weewx-user] Re: calculate rainRate for second rain gauge...?

2020-06-27 Thread gjr80
Christian,

The StdWXCalculate service calculates rainRate for those systems where the 
driver does not provide it. You will find the StdWXCalculate code in 
bin/weewx/wxservices.py 
(https://github.com/weewx/weewx/blob/master/bin/weewx/wxservices.py). Adding 
hailRate is relatively straightforward but will require a good understanding of 
how the StdWXCalculate code operates.

Gary

-- 
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/49eccf86-fc19-4bcc-ba6b-fea381817073o%40googlegroups.com.


[weewx-user] Re: calculate rainRate for second rain gauge...?

2020-06-26 Thread 'Christian Peters' via weewx-user
Gary,

thanks for that clarification. I'll have a look at the new feature if it 
will be released in the next weewx point release. 

As there there seems to be a rainRate software computation available, maybe 
this could be copied and rainRate substituted by hailRate to get the 
hailrate working working? 
This would be a workaround and maybe not to difficult to patch and fit my 
needs...but I know it would be wiped out with a new update of weewx
I think at the moment I'm not skilled enough to write a service for the 
missing hailRate

Where can I find the rainRate software computation in wewx?

Regards,

Christian


Am Freitag, 26. Juni 2020 01:50:46 UTC+2 schrieb gjr80:
>
> Hi,
>
> As you have found adding hailRate to [StdWXCalculate] [[Calculations]] 
> does nothing as StdWXCalculate does not know how to calculate hailRate. 
> It was not specifically raised to address this issue but issue #491 
> , if it continues down the 
> path it is presently on, will likely see StdWXCalculate evolve such that 
> the user will be able to define their own rate based derived observations 
> (just like rainRate) via a few config lines in weewx.conf. If you can 
> hang on until (hopefully) the next WeeWX point release you should see this 
> feature added (provided I can get it past Tom and provided the next point 
> release does not come out too soon :) ). Since your hailRate observation 
> would be a derived one, and given that wee_database now has the ability 
> to backfill derived observations, the delay should not see you miss any 
> data.
>
> If you really do want to implement your derived hailRate now you would 
> need to modify the current StdWXCalculate behaviour or write a separate 
> service to calculate hailRate.
>
> Gary
>
> On Friday, 26 June 2020 05:04:21 UTC+10, Christian Peters wrote:
>>
>> Hi, 
>>
>> I read form a second rain gauge via filpile rain values/data into the 
>> data base value 'hail', as there is no second rain1, rain2...
>> As it is in the same group as rain all should be fine. 
>> It works if I query 
>> $day.hail.sum
>> it works.
>>
>> But if I query 
>> $current.hailRate
>> I got N/A. It's not provided by the gauge an I think i has to be 
>> calculated by software.
>>
>> I tried that to get the hailRate:
>>
>> [StdWXCalculate]
>> 
>> [[Calculations]]
>> # How to calculate derived quantities.  Possible values are:
>> #  hardware- use the value provided by hardware
>> #  software- use the value calculated by weewx
>> #  prefer_hardware - use value provide by hardware if available,
>> #  otherwise use value calculated by weewx
>> 
>> hailRate = software
>>
>> but it seems not implemented!? Any chance to get the calculation of 
>> rainRate (hailRate) for my second gauge by software calculation working!? 
>>
>>
>> Thanks in advance.
>>
>> Christian 
>>
>

-- 
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/1fa051c0-7118-47d8-a814-36811c45dcedo%40googlegroups.com.


[weewx-user] Re: calculate rainRate for second rain gauge...?

2020-06-25 Thread gjr80
Hi,

As you have found adding hailRate to [StdWXCalculate] [[Calculations]] does 
nothing as StdWXCalculate does not know how to calculate hailRate. It was 
not specifically raised to address this issue but issue #491 
, if it continues down the path 
it is presently on, will likely see StdWXCalculate evolve such that the 
user will be able to define their own rate based derived observations (just 
like rainRate) via a few config lines in weewx.conf. If you can hang on 
until (hopefully) the next WeeWX point release you should see this feature 
added (provided I can get it past Tom and provided the next point release 
does not come out too soon :) ). Since your hailRate observation would be a 
derived one, and given that wee_database now has the ability to backfill 
derived observations, the delay should not see you miss any data.

If you really do want to implement your derived hailRate now you would need 
to modify the current StdWXCalculate behaviour or write a separate service 
to calculate hailRate.

Gary

On Friday, 26 June 2020 05:04:21 UTC+10, Christian Peters wrote:
>
> Hi, 
>
> I read form a second rain gauge via filpile rain values/data into the data 
> base value 'hail', as there is no second rain1, rain2...
> As it is in the same group as rain all should be fine. 
> It works if I query 
> $day.hail.sum
> it works.
>
> But if I query 
> $current.hailRate
> I got N/A. It's not provided by the gauge an I think i has to be 
> calculated by software.
>
> I tried that to get the hailRate:
>
> [StdWXCalculate]
> 
> [[Calculations]]
> # How to calculate derived quantities.  Possible values are:
> #  hardware- use the value provided by hardware
> #  software- use the value calculated by weewx
> #  prefer_hardware - use value provide by hardware if available,
> #  otherwise use value calculated by weewx
> 
> hailRate = software
>
> but it seems not implemented!? Any chance to get the calculation of 
> rainRate (hailRate) for my second gauge by software calculation working!? 
>
>
> Thanks in advance.
>
> Christian 
>

-- 
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/21c7d8ba-112c-456d-91f2-5b99e5563417o%40googlegroups.com.