Rain Totals

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Rain Totals

Post by jpangel1 »

Hello -- I have a ebox 4300, Davis Vantage Pro II weather station and using Meteohub 4.7f. I send information to my website to support both WD Live using clientraw.txt and my own html template using all-sensors.txt (and xml). Everything works fine except the rain totals. There appears to be a lag in both the month and year total when I get new amounts of rain during the day. The lag is not so bad on the wdlive (clientraw.txt) -- maybe at most 30 minutes. It is much longer on the all-sensors.txt. The daily rain is immediate, but the other month and year totals do not change for several hours unless I do the "recompute the weather data" function. I do send the clientraw and all-sensors every minute to my website.

Any ideas?

Thanks
JP
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re: Rain Totals

Post by admin »

Works as designed. monthly, yearly totals are not that often computed.

Meteohubs don't have that much computing power to aggregate data from huge stacks of collected raw data every few minutes.
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Thanks -- how often are these calculated?
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Also so I can understand. {day1_rain0_total} and [actual_rain0_total] are pretty much immediate in terms of showing new amounts of rain. [month1_rain0_total] shows next within 30 minutes or so. [year1_rain0_total] really lags -- so far today it has been 8 hours and new totals have not shown. For a primary sensor I am a little surprised. Is there a way via some kind of script or something that I can speed this up?

I don't want to sound too picky, this is a fantastic product. I am pretty new at using meteohub and still trying to find my way around with it.

Thanks again for your earlier response.

JP
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Rain Totals

Post by YJB »

jpangel1 wrote:Thanks -- how often are these calculated?
It really depends on the time interval that the aggregate is referring to.

I've documented this on the following page:

http://weather.westerkerkweg.nl/wxmeteohub.php

The average runtime depends on the power of your system, but it will give you an idea how long it takes to have the aggregate available after it starting calculating the value.

Ysbrand
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Ysbrand -- fascinating page. Looks like I need to rethink what to present on my web page for rain totals. What is interesting is the month and year totals for WDLive show up pretty quick with the month showing first then the year total -- all within 15 minutes or so, sometimes much quicker. I guess the calculations are different for clientraw vs all-sensors. Do you know of a way to calculate the totals for "year1" a bit faster using a virtual sensor?

Or maybe I will not show the year total on my main page ... hmmm, decisions, decisions ... :)

Thanks a bunch for the info
JP
pinto
Junior Boarder
Junior Boarder
Posts: 25
Joined: Thu Apr 14, 2011 7:33 pm
Contact:

Re: Rain Totals

Post by pinto »

jpangel1 wrote: What is interesting is the month and year totals for WDLive show up pretty quick with the month showing first then the year total -- all within 15 minutes or so, sometimes much quicker.
JP
So, you can look at the clientraw.conf file, and try the tags used in there.

I think:
for month:

Code: Select all

{mathmax [month1_rain0_total_mm:0] [day1_rain0_total_mm:0] }
for year:

Code: Select all

{mathmax [year1_rain0_total_mm:0] [month1_rain0_total_mm:0] [day1_rain0_total_mm:0] }
Jozef
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Jozef -- thanks for the tip. It works. Now the live weather and my normal weather page will be in sync.

Thanks again
JP
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Jozef -- where do I find the clientraw.conf file?

JP
pinto
Junior Boarder
Junior Boarder
Posts: 25
Joined: Thu Apr 14, 2011 7:33 pm
Contact:

Re: Rain Totals

Post by pinto »

jpangel1 wrote:Jozef -- where do I find the clientraw.conf file?

JP
/home/meteohub

and just in case: attachement
Jozef
Attachments
clientraw.zip
containing the 4 clientraw*.conf files as of version 4.7f build 412
(5.69 KiB) Downloaded 245 times
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Jozef -- thanks. I am trying to figure out the tag to get my barometer trend to be a text statement "steady", "rising" instead of the numeric "0", "1".

JP
jpangel1
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Mon May 16, 2011 6:04 pm

Re: Rain Totals

Post by jpangel1 »

Hello -- I found a post on this site by wfpost that provided a nice text javascript that I could use on my web page that works great for a text barometric trend.

Now, back to my original desire on the rain totals which is to get the yearly total to update more frequently at least on the same timeframe as the monthly. I've been reading a little bit about the virtual sensors. Is there a way to get there via a virtual sensor setup and a script?

Thanks
JP
Post Reply