You are not telling us enough information.

The archive field 'rain' should be the amount of rainfall in the archive 
period.  What is your archive period?  How often do you read the text 
file?  What data is in the text file?  Weewx does not use a rain value for 
60 minutes.  If the data from the text file is the daily accumulation then 
the driver needs to calculate the difference between two successive 
readings to determine the rainfall for the archive period.

The 'weewx page' can display whatever you want!!  It is updated every 
archive interval.  Rainrate will be the rain rate for the last archive 
period recorded, and the total will be an accumunlation of the rain column 
for all the daily archive records (and will probably actually be taken from 
the daily summary table).

You need to be much more precise in your questions, and ideally you should 
tell us what data you have actually got in the database compared to what 
you expect to have.  

 

On Monday, 17 September 2018 15:26:24 UTC+3, Jonis Maurin Ceará wrote:
>
> Hi.
> Is possible to automatically calculate rain total?!
>
> I'm using generic cheap instruments (sold on ebay) with GrooveWeather Pi ( 
> https://github.com/switchdoclabs/SDL_Pi_GroveWeatherPi ).
> I'm writing values to text file and reading in weewx using file driver 
> (customized).
>
> Rain rate looks working fine:
> f.write('rainRate=' + str((rain60Minutes/25.4)) + '\n')
>
> The value looks correct (about 1.2mm/hour for now). But "Rain today" is 
> always 0.
> If I populate 'rain' field with total rain (calculated by 
> GrooveWeatherPi), it's a bigger value.
>
> Weewx page:
> Rain Rate 0.2 mm/hr
> Rain Today 8.0 mm
>
> Data (written by grooveweathersensor):
> rainRate=0.011
> rain=0.0165
>
>
> This doesn't look right :/ 
> Weewx unit are set to US
>
> More config:
> [[StandardReport]]
>         # See the customizing guide to change the units, plot types and 
> line
>         # colors, modify the fonts, display additional sensor data, and 
> other
>         # customizations. Many of those changes can be made here by 
> overriding
>         # parameters, or by modifying templates within the skin itself.
>
>         # The StandardReport uses the 'Standard' skin, which contains the
>         # images, templates and plots for the report.
>         skin = Seasons
>         [[[Units]]]
>             [[[[Groups]]]]
>                 group_altitude = meter
>                 group_speed2 = meter_per_second2
>                 group_pressure = mbar
>                 group_rain = mm
>                 group_rainrate = mm_per_hour
>                 group_temperature = degree_C
>                 group_degree_day = degree_C_day
>                 group_speed = meter_per_second
>
>
>
> [StdWXCalculate]
>
>     [[Calculations]]
>         # Derived quantities are calculated by this service. 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
>
>         pressure = prefer_hardware
>         barometer = prefer_hardware
>         altimeter = prefer_hardware
>         windchill = prefer_hardware
>         heatindex = prefer_hardware
>         dewpoint = prefer_hardware
>         inDewpoint = prefer_hardware
>         rainRate = prefer_hardware
>
>
>

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