Page 1 of 1

Rain Totals

Posted: Mon May 16, 2011 6:19 pm
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

Re: Rain Totals

Posted: Tue May 17, 2011 4:03 pm
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.

Re: Rain Totals

Posted: Tue May 17, 2011 10:05 pm
by jpangel1
Thanks -- how often are these calculated?

Re: Rain Totals

Posted: Wed May 18, 2011 4:35 am
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

Re: Rain Totals

Posted: Wed May 18, 2011 7:58 am
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

Re: Rain Totals

Posted: Wed May 18, 2011 4:50 pm
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

Re: Rain Totals

Posted: Wed May 18, 2011 6:44 pm
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

Re: Rain Totals

Posted: Thu May 19, 2011 12:15 am
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

Re: Rain Totals

Posted: Fri May 20, 2011 6:35 am
by jpangel1
Jozef -- where do I find the clientraw.conf file?

JP

Re: Rain Totals

Posted: Fri May 20, 2011 9:18 am
by pinto
jpangel1 wrote:Jozef -- where do I find the clientraw.conf file?

JP
/home/meteohub

and just in case: attachement
Jozef

Re: Rain Totals

Posted: Fri May 20, 2011 4:57 pm
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

Re: Rain Totals

Posted: Thu Jun 02, 2011 3:49 am
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