WXforum.net
May 21, 2013, 10:40:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178526  •  Topics: 18115
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Yesterday rain TAG  (Read 635 times)
0 Members and 1 Guest are viewing this topic.
Blizzard
Member
*
Offline Offline

Posts: 25



« on: April 15, 2012, 01:46:43 PM »

Hi,

I'm running the V14.00p87. I was able to set tags for daily and montly rain but couldn't find the tag for yesterday rain which could help get the rain for the last 48 hours (today + yesterday).

I found the tag for total rain yesterday hi, but will that give me the total of rain for the 24-hour period stating at midnight yesterday and ending at 11:59 pm ?

Thanks for helping !
Logged
GregJ
Forecaster
*****
Offline Offline

Posts: 326



WWW
« Reply #1 on: April 15, 2012, 02:06:02 PM »

There isn't a tag for yesterday's rain in VWS.  Kray100 shared some code that will calculate it and write it to your page.  This should do it:

<SCRIPT language=JavaScript>
<!--
var ystrain=(^vzh009^-^vzl009^);                                                                                                                                                                           
document.write(ystrain.toFixed(2) + ' ^uni009^');
-->
</SCRIPT>

Greg
Logged

Davis VP2 with VWS

"Everybody talks about the weather, but nobody does anything about it." -- Mark Twain
Blizzard
Member
*
Offline Offline

Posts: 25



« Reply #2 on: April 15, 2012, 09:00:19 PM »

Looks good. I'll make some tests to see if I can get it work.

However, why can't I just use the code for total rain yesterday hi (vzh009)? What does it actually refer to ?

Thanks !
Logged
kray1000
Purveyor of wry
Forecaster
*****
Offline Offline

Posts: 1308



WWW
« Reply #3 on: April 15, 2012, 10:23:15 PM »

That I believe would be the total rain for the rain year.  The difference between the total rain hi and the total rain lo will be the part that fell yesterday.
Logged

Kevin Ray
Roanoke, VA

Wireless VP2, Stardot NetCam, ImageSalsa 2.0.12, MovieSalsa, Nexstorm, WASP2, Skymet, VWS14.01p33, WD 10.37N build 03
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.111 seconds with 19 queries.
anything