Here is the proper rain code for the aprs, this will fix the missing /since 
midnight data.


        *if* record.get(*'rainRate'*) *is* *not* None:

           * # Rainfall (in hundredths of an inch) in the last hour*

            data.append(*'r%03.f'* % (record[*'rainRate'*] * 100))


#       *if* record.get(*'?????'*) *is* *not* None:

#          * # Rainfall (in hundredths of an inch) last 24hrs*

#            data.append(*'p%03.f'* % (record[*'?????'*] * 100))


        *if* record.get(*'rain'*) *is* *not* None:

           * # Rainfall (in hundredths of an inch) since midnight*

            data.append(*'P%03.f'* % (record[*'rain'*] * 100))


So far still looking for the last 24hrs variable, I think that it doesn't 
exist on the current weewx....

 

On Friday, May 11, 2018 at 12:26:14 PM UTC-4, Lorin Tremblay wrote:
>
> 1 Trying too learn, been looking into the code to try and understand it
> 2 Same here
> 3 Will do
> 4
> indoortempf=53.8
> tempf=46.0
> dewptf=27.0
> windchillf=43.0
> indoorhumidity=36
> humidity=47
> windspeedmph=5.8
> windgustmph=8.1
> winddir=174
> absbaromin=30.06
> baromin=30.11
> rainin=0.00
> dailyrainin=0.00
> weeklyrainin=0.00
> monthlyrainin=0.77
> yearlyrainin=-9999
> solarradiation=915.32
> UV=10
> dateutc=2018-5-11%2016:16:32
> softwaretype=AMBWeatherV3.0.3
> action=updateraw
> realtime=1
> rtfreq=5 HTTP/1.0
>
> Here is real data that was just puller prior to sending this email.
>
> 5 I can understand that.
>
> Anyways thanks!
>
>
> On 11May, 2018, at 12:11, Andrew Milner <[email protected]> 
> wrote:
>
> 1.  Assume nothing - understand how weewx works instead!!
> 2.  Understand the outputs from the driver for your station
> 3.  Understand how the station's outputs get converted to the weewx 
> database
> 4.  If what you provided is genuine data from your station then you have a 
> problem weekly rainin < monthly rainin and yearly rainin does not look 
> right either
> - so where / how did you derive that data?
> 5.  Whilst I am sure the extension can be improved I am not an aprs user 
> so have no interest - try the weewx development forum instead!!
>
>
>
>
>
> On Friday, 11 May 2018 18:49:11 UTC+3, Lorin Tremblay wrote:
>>
>> So ok, 
>> So how can we troubleshoot to as why rainfall doesn’t appear?
>> and also how can I check if daily_rain populated?
>>
>> I also think that weewx is not necessarily at fault here, but don’t know 
>> where to go and have also written an email to dev of the extension and got 
>> no where.
>>
>> here is the info that the PWS provides
>>
>> indoortempf=73.4
>> tempf=66.7
>> dewptf=44.2
>> windchillf=66.7
>> indoorhumidity=42
>> humidity=44
>> windspeedmph=2.2
>> windgustmph=3.4
>> winddir=181
>> absbaromin=29.85
>> baromin=29.96
>> rainin=0.00
>> dailyrainin=0.00
>> weeklyrainin=1.81
>> monthlyrainin=0.77
>> yearlyrainin=-9999
>> solarradiation=0.36
>> UV=0
>>
>> So I assume that it provides the info from the PWS and is not generated 
>> by the Weewx.
>>
>> So can we improve the extension ? (I means mostly you since I can’t code 
>> much! lol)
>>  
>> BTW thank for your help!
>>
>> On 11May, 2018, at 10:22, Andrew Milner <[email protected]> wrote:
>>
>> I am a little confused here.  After looking at aprs.py it seems to me 
>> that the extension only attempts to output rainrate and rainfall.  The 
>> rainfall since midnight appears to use an archive field called daily_rain - 
>> does your archive have this field, and is it populated with data??  The 
>> standard archive record has a field called rain which holds the rainfall 
>> for the archive period.  
>> RainRate comes either from your weather station if hardware supplied or 
>> if software generated by weewx will be a rate calculated over a sliding 
>> window - defaults to I think 15 minutes but you could set the window to an 
>> hour if that is what you wanted, by a specifying it in weewx.conf .  In 
>> [[calculations]] set rain_period = sliding window size in seconds.
>> see this thread for details:
>> https://groups.google.com/forum/?fromgroups#!topic/weewx-user/gEe0fW0tQSU
>>
>>
>> So, what exactly is missing - or what has not been created?  If the 
>> extension is not creating what you want perhaps you should contact the 
>> extension's author to see if they are willing to expand it for you!
>>
>> Weewx is, I suspect, not a fault here and is working as expected and 
>> intended.  The APRS extension may well not be providing correct data, or 
>> not what you desire - that is another story however, and may be because 
>> your database does not have all the required fields necessary for the 
>> extension!!
>>
>>
>> On Friday, 11 May 2018 16:39:01 UTC+3, Lorin Tremblay wrote:
>>>
>>> No problem, 
>>>
>>> A) 
>>> B) what is missing is always the since 0.0 mm 24/h and 0.0 mm since 
>>> midnight, the difference was just a mistake. 
>>> C) the information was never there, since I installed it 
>>> D) NO and honestly I’m not that great a coding but I’m not even sure 
>>> that it’s even there in the python code…. 
>>> Here is a part of the code that talks about rain. 
>>>
>>> "        if record.get('rainRate') is not None: 
>>>             # Rainfall (in hundredths of an inch) in the last hour 
>>>             data.append('r%03.f' % (record['rainRate'] * 100)) 
>>>
>>>         if record.get('dailyrain') is not None: 
>>>             # Rainfall (in hundredths of an inch) since midnight 
>>>             data.append('P%03.f' % (record['dailyrain'] * 100)) 
>>> “ 
>>>
>>> I don’t see something that would create a 24/hrs and the part since 
>>> midnight is there but obviously not working. 
>>>
>>> You can see my beacon here. 
>>>
>>> https://aprs.fi/#!mt=roadmap&z=14&call=a%2FVA2LGT-13&timerange=3600&tail=3600
>>>  
>>>
>>>
>>> > On 10May, 2018, at 23:37, Andrew Milner <[email protected]> wrote:
>>>  
>>> > 
>>> > Perhaps some more info would help …. 
>>> > eg - 
>>> > a) what time is it/was it when you noticed this? 
>>> > b) is there a reason why 'what is missing' is different at the top of 
>>> the posting and the bottom of the posting? 
>>> > c) has this just started to happen, or always happened? 
>>> > d) is there anything in the log to assist with resolution? 
>>> > 
>>> > 
>>> > 
>>> > On Friday, 11 May 2018 05:47:02 UTC+3, Lorin Tremblay wrote: 
>>> > Hi everyone! 
>>> > 
>>> > Can't isolate where the problem occurs from, but in my wx.pkt that is 
>>> created by the extension I'm missing some rain info 
>>> > Right now I have RAIN 0.0 mm/1hr but missing the 0.5 mm/24h 0.5 
>>> mm/since midnight. 
>>> > So I only have the following 
>>> > Rain 0.0 mm/1h 
>>> > instead of 
>>> > Rain 0.0 mm/1h 0.8 mm/24h 0.8 mm/since midnight. 
>>> > 
>>> > Can anyone help isolate the problem please. 
>>> > 
>>> > Thanks guys 
>>> > 
>>> > 
>>> > -- 
>>> > 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]. 
>>> > For more options, visit https://groups.google.com/d/optout. 
>>>
>>>
>> -- 
>> 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].
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
> -- 
> 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].
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to