Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Yearly Data Summary

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Yearly Data Summary

Post by daj »

I was reading a post on here a few days ago and someone was looking for a way to summarise yearly data in a table. I thought I would set myself a little challenge to do this, but also not to use PHP as not everyone has it enabled on their webservers.

The result is a pure HTML & Javascript page. No database needed, just the dayfile.txt on your webserver. An example of what I 'threw' together is here.

And of course, I wrote a wiki page as I ended up adding several options to customize it. Colours, layout, data sets and how to change from English to another language are all inlcuded in the wiki.....AnnualDataSummary

UPDATE -- a PHP verison is now included giving you the choice of which one to use
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yearly Data Summary

Post by nitrx »

Great job David :clap: , saw you also implented the different separators , will soon give it a try, works fine in IE9 too.

edit works fine with mine delimiters http://www.apeldoorn.tk/weer/datasummary.html
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yearly Data Summary

Post by nitrx »

For some reason you don't count values between 0,1 and 1 as a value by rain and wind ;)
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Yearly Data Summary

Post by daj »

nitrx wrote:For some reason you don't count values between 0,1 and 1 as a value by rain and wind ;)
A possible failing in the Javascript -- on mine it treats 0.1 as a value and shows it. On yours it does not so I assume Javascript has a problem with 0,1 as a value. I will see what I can do
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary

Post by steve »

Very good. I get frustrated sometimes that I don't have time to try the 'add ons' that people produce, but this looked so good, and so easy to set up that I had to give it a go.

http://sanday.org.uk/weather/datasummary.html

I added the units to my headings :)
Steve
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Yearly Data Summary

Post by bnwrx »

Thank you David,(again!!). This is great for us NON-PHP people. :clap: :clap:

Should we add the dayfile.txt to those files Cumulus uploads to the website?
rayauger
Posts: 47
Joined: Tue 18 Jan 2011 9:36 pm
Weather Station: Davis Vantage Vue
Operating System: Window 7.0
Location: Canada

Re: Yearly Data Summary

Post by rayauger »

That looks great. Thanks for the effort and thanks for keeping the none-php people in mind.

Is there a routine somewhere so we can chart those data ? Someone ever used Google charts ?

Yvan
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Yearly Data Summary

Post by daj »

steve wrote:I added the units to my headings :)
Yeah -- the units are not included in the dayfile so I had no reference -- this was why I ended up giving an easy was to customize the headings; then I decided to allow all the text to change.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Yearly Data Summary

Post by daj »

bnwrx wrote:Should we add the dayfile.txt to those files Cumulus uploads to the website?
NO

This would upload your dayfile every 10 minutes (or however often Cumulus updates the site)

I use Cumulus Toolbox -- which is a bit of over kill just for this simple task, but I use toolbox for other stuff too. I guess we could do this one job with the windows scheduler task.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
PaulMy
Posts: 3849
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: Yearly Data Summary

Post by PaulMy »

Excellent, thank you David. Got it to work and also started to use Toolbox :clap:

One observation; for the years I have full 12 months data (2009 and 2010) then for the Min/Max tab whenever there is a date that has low temperature of lower than -9.9 which has 5 charactors (i.e. -10.0) then the data is shown on 2 lines with the '-' sign on the 1st line and the 10.0 on the second line. This does not occur for years where I do not have full year's data - i.e. 2008 when first started Cumulus and this year when we are only into March. Not sure if that is my monitor, or if another setting issue?

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
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Yearly Data Summary

Post by daj »

Paul

It could be any one of a number of things -- basically the text is wrapping as it can not fit it in the cell.

You could edit the dataSummary.css

Code: Select all

#table_container .smallfont { font-size: 70%;}
Drop the 70% to 65% or less, but it is getting a little small. This is the code used when it is displaing the min/max temp. together.

Alternatively increase the size of each cell slightly

Code: Select all

#table_container table td,table th {
	width: 65px;
Maybe 70 pixels

But if you increase the size, the table may need to get bigger too

Code: Select all

#table_container {
	width: 900px;
try 1000px

Your browser could also be affecting it depending on zoom and screen resolution, but less likely
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yearly Data Summary

Post by steve »

If it helps the diagnosis, Paul's page looks fine from here.
Steve
SouthUistWX
Posts: 12
Joined: Wed 08 Dec 2010 8:15 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Isle of South Uist
Contact:

Re: Yearly Data Summary

Post by SouthUistWX »

Thanks daj, that's just great

Been amusing myself playing around with this and it's not looking too bad: http://www.southuist-weather.info/wxdataannual.html and comparing it to how the TNET tabular data looks (php): http://www.southuist-weather.info/wxdata.php

Using Cumulus Toolbox works really well for uploading the dayfile.txt once a day
---------------------------------------------------------------------------------------------
Image
User avatar
PaulMy
Posts: 3849
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: Yearly Data Summary

Post by PaulMy »

David, set the smallfont to 60% and now all on 1 line. Text getting a little small so may experiment with the table settings, etc. now that I've got a feel of such settings :oops: . Thanks very much.

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
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Yearly Data Summary

Post by Synewave »

Bloomin' excellent. Just what my site was missing, and I didn't want to get into SQL etc. Well done David and thank-you! :clap:
Locked