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

Graphing from the monthly logs and dayfile.txt

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

Moderator: daj

Post Reply
DaveNZ
Posts: 373
Joined: Mon 07 Dec 2009 10:27 pm
Weather Station: Davis VP2
Operating System: Windows 7 64-bit
Location: Howick, Auckland, New Zealand
Contact:

Graphing from the monthly logs and dayfile.txt

Post by DaveNZ »

This is something I've been working on for a while now: creating historic graphs using monthly logs and dayfile.txt.
First I wrote up a script to create new log files with data every 10 minutes as opposed to 1 minute, which takes up a huge space on the server.

I just threw together a page (not part of the main site) "show-casing" the graphs I managed to output:
http://howick.localweatherview.com/hist ... owcase.php

Some of the data is averaged, still it is rather spiky though.

Overall a great php practice exercise (very time consuming, but there was a lot of time to spare recently!), and I learnt a few new things also.

Motivation behind the whole thing was that every browser can see the graphs as they are PNG's, and not javascript generated, and also because I prefer writing my own scripts - so much more satisfying ;)

My site visitors (who number few!) have barely used the current historic page to my disappointment, so gotta show someone...
Comments/suggestions welcome! :) 8-)
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Graphing from the monthly logs and dayfile.txt

Post by captzero »

Great work Dave. :clap:

Looks good. Too bad I don't have php on my server. :cry:

Cheers
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
DaveNZ
Posts: 373
Joined: Mon 07 Dec 2009 10:27 pm
Weather Station: Davis VP2
Operating System: Windows 7 64-bit
Location: Howick, Auckland, New Zealand
Contact:

Re: Graphing from the monthly logs and dayfile.txt

Post by DaveNZ »

You can always ask daj to move to the localweatherview domain! 8-)
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Graphing from the monthly logs and dayfile.txt

Post by captzero »

Good idea. I sent David a PM. Just waiting to hear back.
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
TNETWeather

Re: Graphing from the monthly logs and dayfile.txt

Post by TNETWeather »

Very nice work Dave.
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: Graphing from the monthly logs and dayfile.txt

Post by mcrossley »

Dave

Do you have any plans on releasing your scripts? They look very useful.

I've am moving my weather website from a hosted environment to my own 'weather' laptop at home (the traffic is negligible, nearly all me anyway!), and have not yet implemented any MySQL. Your scripts look like I may be able to do without it anyway.

Ta
Mark
DaveNZ
Posts: 373
Joined: Mon 07 Dec 2009 10:27 pm
Weather Station: Davis VP2
Operating System: Windows 7 64-bit
Location: Howick, Auckland, New Zealand
Contact:

Re: Graphing from the monthly logs and dayfile.txt

Post by DaveNZ »

mcrossley wrote:Dave

Do you have any plans on releasing your scripts? They look very useful.

I've am moving my weather website from a hosted environment to my own 'weather' laptop at home (the traffic is negligible, nearly all me anyway!), and have not yet implemented any MySQL. Your scripts look like I may be able to do without it anyway.

Ta
Mark
No plans at this stage - the script is rather messy and in its current state highly customised.
And I had planned to rewrite it at some stage in a 'better' way. Never enough time though!
Post Reply