Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Warmest/coldest/wettest/windiest etc since...

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Warmest/coldest/wettest/windiest etc since...

Post by mcrossley »

Inspired by this thread I thought, those would be really simple queries on the MySQL database...

First stab result...
http://weather.wilmslowastro.com/since.php
Last edited by mcrossley on Sat 14 Mar 2015 2:32 pm, edited 1 time in total.
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: XXX since...

Post by PaulMy »

Looks very nice Mark.

Now to borrow the code and see what I can do :)

Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Warmest/coldest/wettest/windiest etc since...

Post by mcrossley »

I have added the usual view=sce or view=src option.

This is a quick hack - the units are all hard coded for example.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Warmest/coldest/wettest/windiest etc since...

Post by mcrossley »

I have just added, Warmest/coldest/wettest/windiest etc in <month> since...
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Warmest/coldest/wettest/windiest etc since...

Post by sfws »

Useful queries.
I quickly altered first to cover more standard today/yesterday rows and to output date in normal Cumulus format dd MMM yyyy.
Adjusting the 2nd month one is not so quick/simple for those using 9am roll-over where I guess need to take month from <#metdate>
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Warmest/coldest/wettest/windiest etc since...

Post by mcrossley »

Yes a 9am rollover does complicate many of these type of queries. The formatting needs some work too, for another day...
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Warmest/coldest/wettest/windiest etc since...

Post by PaulMy »

Mine can't match Mark's version but I have been learning a bit and came up with http://www.komokaweather.com/weather/maxmin.php
It uses the Cumulus "realtime.txt" and "dayfile.txt" for the data. Today there is little difference between now and most recent past min or max, but it is interesting when the today temp or other data is the lowest or highest since several months ago.

I also have it for the Saratoga template set http://www.komokaweather.ca/wxmaxmin.php but will likely split it to use an "include" file for the data extraction and php. Fun, and learning.

Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Warmest/coldest/wettest/windiest etc since...

Post by mcrossley »

sfws wrote:Useful queries.
I quickly altered first to cover more standard today/yesterday rows and to output date in normal Cumulus format dd MMM yyyy.
Adjusting the 2nd month one is not so quick/simple for those using 9am roll-over where I guess need to take month from <#metdate>
Thinking about this, all you need do is subtract 9 hours to current time in PHP for 'today', and subtract 33 hours from current for yesterdays date. Your dayfile will already have the correct 'met-date' logged against each entry.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Warmest/coldest/wettest/windiest etc since...

Post by mcrossley »

Those pages are coming along nicely Paul.
Post Reply