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

Yearly Data Summary

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
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: Yearly Data Summary

Post by beteljuice »

There are many (including the beteljuice) whose providers are still using 'old' php :roll: , but at least you run into less problems when the globals / TZ etc. haven't been set up properly :lol:
Image
......................Imagine, what you will KNOW tomorrow !
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 »

beteljuice wrote:There are many (including the beteljuice) whose providers are still using 'old' php :roll: , but at least you run into less problems when the globals / TZ etc. haven't been set up properly :lol:
Haha always something to try us eh?!
Ah well back to the JS version...
At least it wasn't me being dumb :lol:
---------------------------------------------------------------------------------------------
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 »

I'm using PHP 5.3.3 -- will try and adjust the script for earlier versions if I can.

I have also tested it on 5.2 without issue.

PS - Mr beteljuice, may I have a constructive comment rather than a swipe, or have a mis-understood the inference? ;)
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
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: Yearly Data Summary

Post by beteljuice »

PS - Mr beteljuice, may I have a constructive comment rather than a swipe, or have a mis-understood the inference? ;)
No swipe nor slur intended :shock:

I was referring to nearly all the 'clever' stuff in PHP5 having to be configured / initialized whatever by the (server) admin. Especially TZ functions (Inc. local ? sunrise / sunset etc.)

Most of which seem to never be done or are incomplete.

NO SLIGHT INTENDED - DAJ IS A WIZARD CHAP, blah, blah, blah Image
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Super-T
Posts: 906
Joined: Tue 09 Sep 2008 3:37 am
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Yearly Data Summary

Post by Super-T »

Thanks Dave & Dave.
I found this works but probably only because all the files are in the same directory.
$dayfile='dayfile.txt';

I'll run with DaveNZ's as it is nicer :-)
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 »

beteljuice wrote:NO SLIGHT INTENDED
LOL, that's fine then. Hit squad cancelled ;)

Sometimes the written word is not best to get the 'tone' of a message
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
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: Yearly Data Summary

Post by captzero »

Hi daj,

I was able to add my Wind Run data to the Yearly Data Summary and have added the appropriate button to view the figures, (see: http://www.brisbaneliveweather.com/annual.php) however, I would like to centralise the buttons above the data table as they are now slightly off centre. How can i do this?

Thanks in advance.
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
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 »

Hi dave,

Your script wont read my dayfile. I think it is due to the fact I am using a different format. Here is how my data looks like :


16-01-11;32,2;225;14:50;-12,8;23:55;0,0;00:00;0,00;00:00;1021,14;23:55;0,0;00:00;0,0;-11,1;88,2;14,5;14:35
17-01-11;32,2;225;11:05;-19,7;07:40;-12,9;00:00;1021,20;00:00;1031,67;19:22;0,0;00:00;0,0;-16,9;161,5;16,1;10:45

What can I do ?

tkx

Yvan
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 »

rayauger wrote:Hi dave,

Your script wont read my dayfile. I think it is due to the fact I am using a different format. Here is how my data looks like :


16-01-11;32,2;225;14:50;-12,8;23:55;0,0;00:00;0,00;00:00;1021,14;23:55;0,0;00:00;0,0;-11,1;88,2;14,5;14:35
17-01-11;32,2;225;11:05;-19,7;07:40;-12,9;00:00;1021,20;00:00;1031,67;19:22;0,0;00:00;0,0;-16,9;161,5;16,1;10:45

What can I do ?

tkx

Yvan
I've the same format and it works perfect did you change the delimiters ?
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 »

Hi Yvan,
rayauger wrote:Hi dave,
David ;)
Your script wont read my dayfile. I think it is due to the fact I am using a different format. Here is how my data looks like :
Did you do the configuration part of the setup?
http://wiki.sandaysoft.com/a/AnnualData ... _Variables

You need to edit the script to say your field delimiter is ;
and your date delimiter is -

Should work if you do that
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 »

Hi Dan
captzero wrote:..... however, I would like to centralise the buttons above the data table as they are now slightly off centre. How can i do this?
You have inheritied some CSS styling from another stylesheet on the page.

in the weatherstyleannual.css you have set element 'ul' to margin-left: 10%; which may be needed elsewhere on the page, however in the datasummary table it is also using it.

To solve the problem, specifically tell the datasummary.css to have no margin for the ul element, so..

Look in datasummary.css for

Code: Select all

#table_menu ul {
    list-style-type: none;
}
and add an extra line

Code: Select all

#table_menu ul {
    list-style-type: none;
    margin-left: 0px;
}
That should solve it
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
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: Yearly Data Summary

Post by PaulMy »

I have updated to the PHP version and added '(C)' in the .css file for celcius in the data heading description, but how can I add the degree sign charactor there? I tried copying the '(°C)' from your site but that gives a wrong charactor for the degree sign. Probably something very simple but another lesson to be learned :oops:

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
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 »

Did you do the configuration part of the setup?
http://wiki.sandaysoft.com/a/AnnualData ... _Variables

You need to edit the script to say your field delimiter is ;
and your date delimiter is -

Should work if you do that
Did the trick. tkx. Next time I will read the instruction. Yah sure....

yvan
User avatar
steve
Cumulus Author
Posts: 26672
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 »

PaulMy wrote:I have updated to the PHP version and added '(C)' in the .css file for celcius in the data heading description, but how can I add the degree sign charactor there? I tried copying the '(°C)' from your site but that gives a wrong charactor for the degree sign. Probably something very simple but another lesson to be learned :oops:
You probably need to use

Code: Select all

°
instead of the degree symbol.
Steve
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: Yearly Data Summary

Post by PaulMy »

You probably need to use
Code: °
instead of the degree symbol.
Yes, and thank you Steve,

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
Locked