Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Yearly Data Summary--Adding new fields

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
User avatar
mcrossley
Posts: 5170
Joined: Thu Jan 07, 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

Postby mcrossley » Sun Jan 01, 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: 77
Joined: Mon Mar 23, 2009 2:50 pm
Weather Station: WH3080
Operating System: Win XP SP3
Location: Skegness

Re: Yearly Data Summary--Adding new fields

Postby scoobs » Tue Jan 03, 2012 9:05 pm

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

User avatar
mcrossley
Posts: 5170
Joined: Thu Jan 07, 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

Postby mcrossley » Tue Jan 03, 2012 9:58 pm

In the wiki

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

Re: Yearly Data Summary--Adding new fields

Postby yv1hx » Wed Jan 04, 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: 5170
Joined: Thu Jan 07, 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

Postby mcrossley » Wed Jan 04, 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: 77
Joined: Mon Mar 23, 2009 2:50 pm
Weather Station: WH3080
Operating System: Win XP SP3
Location: Skegness

Re: Yearly Data Summary--Adding new fields

Postby scoobs » Sun Jan 22, 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.


Return to “3rd Party Tools”

Who is online

Users browsing this forum: No registered users and 1 guest