Author Topic: Statistics  (Read 4320 times)

jg

  • Strong Breeze
  • ***
  • Posts: 151
Statistics
« on: June 28, 2012, 01:35:31 AM »
I updated one of my two LWC servers to WeatherCat, I've noticed the statistics page no longer has the last 24 hours, last 7 and last 38 days at the top, nor all the all-time stats.  I still have the old templates.

The new site is here:
http://www.jgweather.info/StowWeather/index.html

The old one is here (not updated it):
http://www.jgweather.info/RoslynWeather/index.html

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1558
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Statistics
« Reply #1 on: June 28, 2012, 03:45:15 PM »
Hi jg, and welcome to the WeatherCat forum!

Yes, the statistics tag was changed a bit from the previous, and no longer includes records. To include the records on your web site, just include the tag STRECORDS$ on the line above the ST1$ statistics tag.

Here's how it looks on my web site: http://www.avon-weather.com/statistics.html

I hoe that helps, and again, welcome aboard,
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jg

  • Strong Breeze
  • ***
  • Posts: 151
Re: Statistics
« Reply #2 on: June 29, 2012, 01:32:28 PM »
That's great for the records, but how do we get back the last 7 and last 28 days?

jace

  • Storm
  • *****
  • Posts: 812
    • DW9675
    • ISuffolk62
    • Yoxford weather site.
  • Station Details: Davis Vantage Pro2, with Mac USB Data Logger. 2.4 GHz Intel Core 2 Duo MacBook, with 8 GB 1033 MHz DDR3 Memory, running Mac OSX Version 10.10.1 (Yosimite).
Re: Statistics
« Reply #3 on: June 29, 2012, 03:04:03 PM »
Hi jg

In the folder WeatherCat_all_tags there is a full reference list of all the tags. In there, there are lots of examples of tags for individual stats.

So if you wanted say the Highest Temperature last week the web tag is:
STAT$TEMPERATURE:MAX:LASTWEEK$TEMPUNITS$ on STAT$TEMPERATURE:MAX:LASTWEEK:TIME$

Last month would be:
STAT$TEMPERATURE:MAX:LASTMONTH$TEMPUNITS$ on STAT$TEMPERATURE:MAX:LASTMONTH:TIME$

Here is how I set up my weekly stats page: http://www.yoxford-weather.co.uk/weeklyd.html
Hope this is of help

JC


Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1558
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Statistics
« Reply #4 on: June 29, 2012, 05:34:35 PM »
That's great for the records, but how do we get back the last 7 and last 28 days?

Oops! You'll want STRECENT$, too.  Mine are now like this:
STRECORDS$
STRECENT$
ST1$

And show up like this: http://www.avon-weather.com/statistics.html

Sorry for the confusion,
Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jg

  • Strong Breeze
  • ***
  • Posts: 151
Re: Statistics
« Reply #5 on: June 30, 2012, 11:17:36 PM »
That's great for the records, but how do we get back the last 7 and last 28 days?

Oops! You'll want STRECENT$, too.  Mine are now like this:
STRECORDS$
STRECENT$
ST1$

And show up like this: http://www.avon-weather.com/statistics.html

Sorry for the confusion,
Steve

So the STRECENT$ gives you the 7 & 28 day block of stats?

Steve

  • Global Moderator
  • Storm
  • *****
  • Posts: 1558
    • DW8454
    • KOHAVON11
    • Avon Weather
  • Station Details: Davis Wireless VP2 Plus w/24 hr FARS, Leaf & Soil Station, 2023 Mac mini M2 Pro, 32GB RAM, Mac OS 14, WeatherCat 3.2
Re: Statistics
« Reply #6 on: June 30, 2012, 11:32:35 PM »
So the STRECENT$ gives you the 7 & 28 day block of stats?

Yep! Today, 24 hours, 7 days, and 28 days. With those three tags, it should be just the same as the ST1$ tag in LWC2

Steve
Steve - Avon, Ohio, USA


CWOP: DW8454 - WU: KOHAVON11 - AWEKAS - CoCoRaHS
PWSweather - WeatherCloud - Twitter - Facebook

jg

  • Strong Breeze
  • ***
  • Posts: 151
Re: Statistics
« Reply #7 on: July 01, 2012, 04:52:31 AM »
Thanks, working great now:

http://www.jgweather.info/StowWeather/wximprovedalmanac.html

I posted something as a feature request, but maybe its there and  haven't found it.  Is there a way to get first and last frost of a season (I see we now have frost dates).