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 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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--Adding new fields

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yearly Data Summary--Adding new fields

Post by mcrossley »

Because you have applied a fix to the PHP script to account for displaying the previous years data on the 1st January but not the javascript.

Code: Select all

if (urlParams['year']) {
  drawYear=urlParams['year'];
} else {
  var d = new Date();
  var curr_date = d.getDate();
  drawYear=d.getFullYear();
}
becomes

Code: Select all

if (urlParams['year']) {
  drawYear=urlParams['year'];
} else { 
  var d = new Date();
  var curr_date = d.getDate(); 
  d.setDate(d.getDate() - 1);
  drawYear=d.getFullYear();
}
scoobs
Posts: 82
Joined: Mon 23 Mar 2009 2:50 pm
Weather Station: WH3080
Operating System: Windows server
Location: Skegness

Re: Yearly Data Summary--Adding new fields

Post by scoobs »

Might be having a blonde moment but where can i get this script from ? cheers
Image
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yearly Data Summary--Adding new fields

Post by mcrossley »

In the wiki
User avatar
yv1hx
Posts: 223
Joined: Mon 05 Apr 2010 10:40 pm
Weather Station: No station yet ...
Operating System: Win XP Professional
Location: Some point in the Earth

Re: Yearly Data Summary--Adding new fields

Post by yv1hx »

mcrossley wrote:In the wiki
http://wiki.sandaysoft.com/a/AnnualDataSummary

I hope the wiki have the last and stable version. :shock:
Marco
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yearly Data Summary--Adding new fields

Post by mcrossley »

yv1hx wrote:I hope the wiki have the last and stable version. :shock:
I doubt it, it says it is version 1.1 from March 2011. As David is taking a bit of a break from the forum any volunteers for updating it with some of the 'patches' - but please do not add loads of value colouring, leave that as an exercise for the user. ;)
scoobs
Posts: 82
Joined: Mon 23 Mar 2009 2:50 pm
Weather Station: WH3080
Operating System: Windows server
Location: Skegness

Re: Yearly Data Summary--Adding new fields

Post by scoobs »

Cheers mcrossley and yv1hx i did look but looked under 3rd Party Apps lol silly me :)

Anyway its working ok just one thing how do you get the buttons to show on two lines using the javascript version ?, i had a look but most are doing it on the php one.
Image
Post Reply