BTW, I had to remove binding = archive. It resulted in the same data for 
over 24 hours.
Here is data as it is received by 
CWOP:  http://www.findu.com/cgi-bin/wx.cgi?call=wa4opq-1

On Tuesday, February 25, 2020 at 5:21:09 PM UTC-6, gjr80 wrote:
>
> Bill,
>
> Try the attached file in place of your existing cwxn.py.This version will 
> calculate rain24 and dayRain by querying the database if rain24 and 
> dayRain fields are not in the packet received from your station.  To 
> install:
>
> 1. rename your existing cwxn.py to cwxn_orig.py (it will be in 
> /home/weewx/bin/user or /usr/share/weewx/user)
> 2. download the attached cwxn.py and save in place of your current cwxn.py
> 3. restart WeeWX
> 4. monitor the log and once a report cycle is complete check wxnow.txt
>
> If any issues post a copy of the WeeWX log from startup showing any 
> errors. If you need to revert to the old version just delete cwxn.py and 
> rename cwxn_orig.py back to cwxn.py and restart WeeWX.
>
> Gary
>
>
>
> On Wednesday, 26 February 2020 03:53:36 UTC+10, Bill Arthur wrote:
>>
>> Hi Gary,
>>
>> Thanks for the quick response. This is my second week with Weewx so I 
>> assumed it was something I overlooked. And I'm glad a solution is 
>> relatively close.
>> I am using a Ambient Weather WS-2902 array with an Ecowitt GW1000 and 
>> using the interceptor 0.53.  cwxn is 0.4
>>
>>
>>
>>
>> On Tuesday, February 25, 2020 at 7:42:31 AM UTC-6, gjr80 wrote:
>>>
>>> Hi,
>>>
>>> Looking at the cwxn service code there are three rain related values 
>>> included in the output, these are (named in the code) hourRain, rain24 
>>> and dayRain. Presumably these are total rainfalls in the last hour, the 
>>> last 24 hours and since midnight respectively. The cwxn service calculates 
>>> hourRain by querying the database so hourRain should always be correct. 
>>> However, rain24 and dayRain are not calculated by querying the 
>>> database, rather they are pulled directly from fields of the same name in 
>>> either the loop packets or archive records (depending on whether you bind 
>>> to loop or archive) emitted by your station. Unfortunately, not all 
>>> stations emit these fields and I am guessing that is the case with your 
>>> station. You didn't mention what (weather) station you are using?
>>>
>>> As for the data on your web page, if that is the Standard or Seasons 
>>> skin that is shipped with WeeWX then in all likelihood you will find that 
>>> the WeeWX tag system is being used and something like $day.rain.sum is 
>>> being used to calculate and display the days rainfall by querying the 
>>> database. Unfortunately the WeeWX tag system is only available in WeeWX 
>>> reports and is not available in services such as cwxn.
>>>
>>> Don't worry, all is not lost, if it is a case of your station not 
>>> emitting rain24 and dayRain it will be a fairly straightforward job to 
>>> modify the cwxn service to calculate these fields from the database just as 
>>> is done with hourRain. I know the cwxn author is a bit busy with the 
>>> WeeWX 4.0 release at the moment but let me see if I have some time tomorrow 
>>> to make the necessary changes (or perhaps some other enthusiastic WeeWX 
>>> user will come along and do the same before then) :)
>>>
>>> Gary
>>>
>>>
>>> On Tuesday, 25 February 2020 10:33:29 UTC+10, Bill Arthur wrote:
>>>>
>>>> I recently added the cwxn extension so that I could pass the weather to 
>>>> my APRS/CWOP app
>>>>
>>>> Its working fairly well, but it only reports the current rain rate. The 
>>>> 1hr and 12hr (p and P) are always 000  
>>>> We had 1.03" today so I had plenty of opportunities to test. The weewx 
>>>> html page shows the rain.
>>>>
>>>> Here's my example:
>>>> Feb 24 2020 18:20
>>>> 129/002g004t052r000p000P000h096b10067
>>>>
>>>> I put "binding = archive"  in  weewx.conf
>>>>
>>>> I'm missing something here, any ideas?
>>>>
>>>>

-- 
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/4cc43d7d-0c39-4895-9440-ad2f2721f1d2%40googlegroups.com.

Reply via email to