Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 6:31 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Enhancement request for monthly stats
PostPosted: Wed Feb 22, 2012 12:11 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
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.
Quote:
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 !


Top
 Profile  
 
 Post subject: Re: Enhancement request for monthly stats
PostPosted: Wed Feb 22, 2012 6:54 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
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


Top
 Profile  
 
 Post subject: Re: Enhancement request for monthly stats
PostPosted: Sat Feb 25, 2012 12:58 am 
Offline
User avatar

Joined: Wed Dec 16, 2009 2:32 am
Posts: 150
Location: Wairoa, Hawkes Bay. New Zealand.
Weather Station: La Crosse WS1081
Operating System: Windows XP, XP Pro & Win 7
Looking good, do you need a hand....lol

_________________
Wairoa, Hawkes Bay, New Zealand Weather Station.
http://wairoa.net/weather/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Enhancement request for monthly stats
PostPosted: Mon Feb 27, 2012 10:37 pm 
Offline

Joined: Wed May 13, 2009 9:35 am
Posts: 110
Location: Nr Ilkley, West Yorks, UK
Weather Station: WMR-200
Operating System: Windows 7
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:

_________________
bigmac
Menston Weather


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group