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

Enhancement request for monthly stats

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Enhancement request for monthly stats

Post by beteljuice »

Sorry about that nitrx :oops:

I've been waiting for the reports 'suite' to standardized / updated / tweaked, but it seems to have fallen by the wayside a bit.

One of the 'problems' is the sheer volume of data now available / calculable :shock:

May be time for a rethink / rebuild.
A few lines of code ........... :bash:
eg. Month Alltimes

I 'finished' the 3rd column today, just to see if I could remember all the logic I created.
... that made me remember why I took a break from it :lol:

Currently 1,481 lines of code which escalates with each new data entry
eg. Let's say I was going to introduce T apparent.

Apart from the arrays that have to created to calculate
  • Max Hi
    Max Low
    Max Avg
    Min Hi
    Min Low
    Min Avg
    Max difference
    Min difference
all per month, additional arrays have to keep track of 'All Time' - all these arrays hold value, date and where applicable time.

Almost forgot, I also keep track of when that dataset was first recorded - Not all records begin at the year dot ;)

Then from that single dataset I would have 3 columns with 6 data cells and 6 mouseovers per month. ie. 36 data cells and 36 mouseovers in all.

The other reason I stopped was because I couldn't decide whether it was data for data sake or not !!!
Image
......................Imagine, what you will KNOW tomorrow !
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Enhancement request for monthly stats

Post by RayProudfoot »

beteljuice wrote:Currently 1,481 lines of code which escalates with each new data entry
Whilst you have calculated more stats that feature on my Access screenshot further back in this thread I was curious how many lines of VBA were in my code to get those stats.

95 lines was all it took. Clearly PHP is very versatile but the amount of code required seems excessive.
Cheers,
Ray, Cheshire.

Image
User avatar
JennyLeez
Posts: 336
Joined: Wed 16 Dec 2009 2:32 am
Weather Station: La Crosse WS3083
Operating System: Windows XP, Win7 & Win 10
Location: Wairoa, Hawkes Bay. New Zealand.
Contact:

Re: Enhancement request for monthly stats

Post by JennyLeez »

Looking good, do you need a hand....lol
Wairoa, Hawkes Bay, New Zealand Weather Station:
http://wairoa.net/weather/index.htm
Cumulus Topsites:
http://cumulussites.net/
Image
bigmac
Posts: 159
Joined: Wed 13 May 2009 9:35 am
Weather Station: Davis Vantage Pro 2 Wireless
Operating System: Raspbian wheezy
Location: Nr Ilkley, West Yorks, UK
Contact:

Re: Enhancement request for monthly stats

Post by bigmac »

Ooops, sorry beteljuice, I thought it was a mere distraction to while away a few idle moments, clearly it would be a rather large undertaking. I'll go back to gazing in wistful wonder :lol:
Post Reply