Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

Yearly Data Summary--Adding new fields

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

Re: Yearly Data Summary--Adding new fields

Post by mcrossley » Sun 01 Jan 2012 4:49 pm

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: 81
Joined: Mon 23 Mar 2009 2:50 pm
Weather Station: WH3080
Operating System: Win XP SP3
Location: Skegness

Re: Yearly Data Summary--Adding new fields

Post by scoobs » Tue 03 Jan 2012 9:05 pm

Might be having a blonde moment but where can i get this script from ? cheers

User avatar
mcrossley
Posts: 5234
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yearly Data Summary--Adding new fields

Post by mcrossley » Tue 03 Jan 2012 9:58 pm

In the wiki

User avatar
yv1hx
Posts: 221
Joined: Mon 05 Apr 2010 10:40 pm
Weather Station: WX-200 / WS-2310
Operating System: Win XP Professional
Location: Cabimas, Zulia, Venezuela

Re: Yearly Data Summary--Adding new fields

Post by yv1hx » Wed 04 Jan 2012 3:02 am

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

I hope the wiki have the last and stable version. :shock:
Marco-Luis
YV1HX
Cabimas, Zulia, Venezuela
http://www.twitter.com/meteoven

User avatar
mcrossley
Posts: 5234
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yearly Data Summary--Adding new fields

Post by mcrossley » Wed 04 Jan 2012 9:50 am

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: 81
Joined: Mon 23 Mar 2009 2:50 pm
Weather Station: WH3080
Operating System: Win XP SP3
Location: Skegness

Re: Yearly Data Summary--Adding new fields

Post by scoobs » Sun 22 Jan 2012 12:18 pm

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.

Post Reply