Author Topic: Custom web: Arbitrary day queries  (Read 1833 times)

jsnell

  • Gentle Breeze
  • **
  • Posts: 26
    • KCAMILLV5
Custom web: Arbitrary day queries
« on: December 27, 2012, 03:50:30 AM »
Hi folks! Apologies if this has already been asked for.

I love the "Yesterday" function in custom HTML, as well as the arbitrary date function ("STAT$TEMPERATURE:MAX:2012-12-24/2012-12-24$TEMPUNITS$")... what I'm asking for is a combination of the two.

"Yesterday" is essentially a date function for a single day, one day ago. How about giving us access to daily data for X days/months ago? That way I could work with a javascript-based charting engine to do some nice HTML charts for things like, for example, the high temperatures for the last 7 days.

So far as I can tell, right now there's no way for me to code the HTML template to generate, for example, the high temp for yesterday, and then the day before that, and then the day before that. I can hard-code in specific dates, or I can use the YESTERDAY function, but that doesn't give me access to the "day before yesterday" -- and have that day continue to slide forward as the days pass.

I was thinking of something like

STAT$TEMPERATURE:MAX:DAYSAGO(1)$TEMPUNITS$

(Which would be equivalent to YESTERDAY...)

Thanks for your consideration. Love the product, and believe me, I've tried a lot of them! ;-)

-jason

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2934
    • 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: Custom web: Arbitrary day queries
« Reply #1 on: December 27, 2012, 11:25:14 AM »
Yep, like it  [tup] It'll be out as soon as possible - I'll aim this at the next release (1.1.2) which should be out in a day or two.

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2934
    • 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: Custom web: Arbitrary day queries
« Reply #2 on: December 27, 2012, 03:50:45 PM »