Author Topic: Web-Tags and custom rain total (Yesterday 7a to Today 7a)  (Read 1932 times)

monymony

  • Strong Breeze
  • ***
  • Posts: 165
  • CoCoRaHS - MD-CC-16
    • EW3643
    • KMDELKTO10
    • Cecil County Maryland Weather
  • Station Details: Davis Vantage Pro 2
Web-Tags and custom rain total (Yesterday 7a to Today 7a)
« 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



WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2809
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Web-Tags and custom rain total (Yesterday 7a to Today 7a)
« Reply #1 on: November 02, 2014, 01:38:58 PM »
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

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1347
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2017 27" iMac 3.8 GHz i5, 40GB RAM, Mac OS 10.14, WeatherCat 3
Re: Web-Tags and custom rain total (Yesterday 7a to Today 7a)
« Reply #2 on: November 02, 2014, 04:02:46 PM »
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
Steve - Avon, Ohio, USA


CWOP: DW8454 • WU: KOHAVON11 • AWEKAS • CoCoRaHS • Skywarn •  UK Met Office
MWWN •PWSweather • WeatherBug • WeatherCloud • Twitter • Facebook

monymony

  • Strong Breeze
  • ***
  • Posts: 165
  • CoCoRaHS - MD-CC-16
    • EW3643
    • KMDELKTO10
    • Cecil County Maryland Weather
  • Station Details: Davis Vantage Pro 2
Re: Web-Tags and custom rain total (Yesterday 7a to Today 7a)
« Reply #3 on: November 03, 2014, 12:22:49 AM »
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



WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2809
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Web-Tags and custom rain total (Yesterday 7a to Today 7a)
« Reply #4 on: November 04, 2014, 05:39:27 PM »
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?


Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1347
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2017 27" iMac 3.8 GHz i5, 40GB RAM, Mac OS 10.14, WeatherCat 3
Re: Web-Tags and custom rain total (Yesterday 7a to Today 7a)
« Reply #5 on: November 04, 2014, 06:14:03 PM »
That sounds like it would work.
Steve - Avon, Ohio, USA


CWOP: DW8454 • WU: KOHAVON11 • AWEKAS • CoCoRaHS • Skywarn •  UK Met Office
MWWN •PWSweather • WeatherBug • WeatherCloud • Twitter • Facebook