Trixology
WeatherCat => WeatherCat Web Templates => Topic started by: monymony on November 01, 2014, 12:47:47 PM
-
Hello All,
I am currently working on adding my 7a manual rain entries to my website that I currently post to CoCoRaHS.org. I would like to also post my last 24h rain total as recorded during the same time period by WeatherCat as a comparison since during heavy rain my electronic tipping bucket and 4" manual rain gauge can vary. What I cannot see is a way to do this with the WeatherCat Web-Tags. What I am trying to get is a rain total from 7a Yesterday to 7a Today. In looking at the options I just don't see a way to specify this type of range.
So before I write something in MySQL I wanted to see if anyone might know a way to do this or to tell me this just cannot be done using the Web-Tags.
Thanks!
Jay
-
The closest we can come at the moment is via the SINCE9AM time period specifier on a tag, which will cover the period from 'now' to the previous 9AM - i.e.
Rain since 9 a.m. = STAT$RAIN:TOTAL:SINCE9AM$ RAINUNITS$
There's a feature request (#114) to add SINCE(x) where x is a number between 0 and 23, this is currently slated for version 2.1
-
Stu,
I'm not sure how since would help with CoCoRaHS unless Jay checks just before 7 AM the next day. If he checks his rain gauge at 7 and then goes inside to check WeatherCat, it will show just the prior few minutes.
What I do is keep a spreadsheet comparing the two rain amounts. In it I have today's WC total for the year subtract yesterday's total for the year, resulting in today's rainfall. I manually enter the totals at 8 AM each morning.
https://docs.google.com/spreadsheet/ccc?key=0AhiOaCqzSbmedGtwSTdnbEpodTV3UDUzVFViRU8wa0E#gid=4
-
Hi Stu, Edouard and WC Folks,
Hum, guess I am asking for something new here. I already keep both my WeatherCat data and CoCoRaRH info in a MySQL database so if WC cannot do this then I can write a custom view to pull the info I need. While being able to pull a rain total for a specified time frame would be nice if WC cannot do this then I certainly work around.
@Stu, you are right that the new feature request won't really help but I can see other ways it might be useful.
Thanks as always for your comments and insight.
Jay
-
Yes, I think what you want is something like the HRS(X) tag, which covers the period X hours prior, but with an extension to specify the start time, so it'd be something like HRS(24,7) - i.e. 24 hours prior to 7am - effectively the period for yesterday where the day starts at 7am?
-
That sounds like it would work.