Author Topic: STAT$ - Last 7 days, Last 28 days....  (Read 5494 times)

jg

  • Strong Breeze
  • ***
  • Posts: 153
STAT$ - Last 7 days, Last 28 days....
« on: July 18, 2013, 01:53:07 AM »
I'm trying to build a table of my soil temperature data (i have 3 sensors).  My goal is to have current temp, daily high, daily low, average (I figured all that out).

What I can't figure out is what tag to use for the last 7 days and last 28 days (similar to the STRecent data).  This week isn't nearly as valuable as the last 7 days from a horticultural point of view.  Same with past 28.

Am I missing something, seems like you should be able to enter the number of days back for that stat.

wurzelmac

  • Storm
  • *****
  • Posts: 1457
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Re: STAT$ - Last 7 days, Last 28 days....
« Reply #1 on: July 18, 2013, 10:34:49 AM »
Maybe you are searching for the DAYSAGO tag:

Code: [Select]
PERIOD can be one of:
TODAY, YESTERDAY, THISWEEK, LASTWEEK, THISMONTH, LASTMONTH, THISYEAR, LASTYEAR, THISSEASON, ALLTIME.
User defined date ranges can also be used as the PERIOD - e.g. 2010-12-01/2011-03-01 (ISO 8601 date format - yyyy-mm-dd)
WeatherCat 1.1 Build 210 and later add the following periods:
SINCE9AM - period covers from 'now' to the previous 9 A.M.
HRS(X) - period covers X number of hours from 'now' '- i.e. HRS(24) means the last 24 hours. x must be a number greater than 0 - e.g. HRS(0.5) means the last half hour.
WeatherCat 1.1.2 and later adds DAYSAGO(X) which covers the day 'X' days ago - for example DAYSAGO(1) means yesterday and DAYSAGO(2) means the day before yesterday. X must be an integer number between 1 and 99999.

In this thread there is a link to the latest WeatherCat tags: http://athena.trixology.com/index.php?topic=43.0

Hope this helps!
Cheers,
Reinhard
Reinhard


wurzelmac

  • Storm
  • *****
  • Posts: 1457
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Re: STAT$ - Last 7 days, Last 28 days....
« Reply #2 on: July 18, 2013, 11:09:34 AM »
Oh, and a look into the User Manual would take some shades away, too!  ;D
In your case page 180/181 for PERIOD tags!

 ;)

Cheers,
Reinhard
Reinhard


jg

  • Strong Breeze
  • ***
  • Posts: 153
Re: STAT$ - Last 7 days, Last 28 days....
« Reply #3 on: July 18, 2013, 12:09:00 PM »
Oh, and a look into the User Manual would take some shades away, too!  ;D
In your case page 180/181 for PERIOD tags!

 ;)

Cheers,
Reinhard

Figured it out - you need to use the "HRS" tag, then 168 for 7 days.  Thanks for the direction....

jg

  • Strong Breeze
  • ***
  • Posts: 153
Re: STAT$ - Last 7 days, Last 28 days....
« Reply #4 on: July 23, 2013, 02:55:25 AM »
Is there anyway to show the range between the high and low on this table (i.e, temp range/day/3/7/28 days)?

http://www.jgweather.info/RoslynWeather/table.html

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2987
    • CW9739
    • IIBSTO2
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, extra temp stations, no U.V. WeatherLinkLive.
Re: STAT$ - Last 7 days, Last 28 days....
« Reply #5 on: July 23, 2013, 08:22:47 PM »
There's no WeatherCat tag to do it, but it sounds like a little PHP could do that for you - it'll need someone more familiar with PHP than me but the gist would be to get the high and low into variables, subtract them and print the result.

jg

  • Strong Breeze
  • ***
  • Posts: 153
Re: STAT$ - Last 7 days, Last 28 days....
« Reply #6 on: July 23, 2013, 08:23:58 PM »
There's no WeatherCat tag to do it, but it sounds like a little PHP could do that for you - it'll need someone more familiar with PHP than me but the gist would be to get the high and low into variables, subtract them and print the result.

Thanks.  Not that necessary, figured if it was built-in I'd use it. My brain can still do that math on its own :-).