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

Saratoga, CumulusMX and new trend graphs

Discussion of Ken True's web site templates

Moderator: saratogaWX

Sadgit
Posts: 109
Joined: Sun Jan 04, 2009 5:56 pm
Weather Station: Vantage Vue
Operating System: Windows 7
Location: Middlesbrough, England

Saratoga, CumulusMX and new trend graphs

Postby Sadgit » Thu Aug 13, 2015 7:34 am

Hello,

Has anyone manages to get the new trends page from CumulusMX working with Saratoga Template please?
like these
http://sanday.org.uk/weather/trends.htm

If so what do I need to do to get them working please?

Cheers
Mark

philpugh
Posts: 123
Joined: Tue May 24, 2011 8:34 am
Weather Station: DAVIS VantageVue
Operating System: Debian Jessie
Location: Antrobus, Cheshire
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby philpugh » Thu Oct 08, 2015 12:17 pm

Do you mean like this?

http://goosegate.plus.com/wxgraphsCMX.php

PLEASE NOTE. Only just installed the Saratoga templates yesterday and still fixing up the site. Also it is hosted on a Raspberry Pi and my internet connection is VERY SLOW. I mean 512Kbps down and 256Kbps up. :o
Phil Pugh
Davis Vantage Vue Raspberry Pi 2B Stretch-Lite MySQL 128Gb SSD
http://goosegate.plus.com/

BCJKiwi
Posts: 859
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby BCJKiwi » Thu Oct 08, 2015 7:21 pm

Like this?
http://silveracorn.nz/weather/wxcharts.php (was wxgraphs.php)
This has been working since February viewtopic.php?f=28&t=13382

You will need to make changes to the attached file to suit your website layout - particularly the path settings for the lib and js folders.
Also the .json files need to be uploaded to the correct path by CumulusMX. In my layout they are in the wxshare folder which holds the lib and js folders
You do not have the required permissions to view the files attached to this post.
Last edited by BCJKiwi on Sun Dec 31, 2017 8:57 pm, edited 1 time in total.

philpugh
Posts: 123
Joined: Tue May 24, 2011 8:34 am
Weather Station: DAVIS VantageVue
Operating System: Debian Jessie
Location: Antrobus, Cheshire
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby philpugh » Thu Oct 08, 2015 7:54 pm

That's a slightly neater presentation than mine!

I would however suggest renaming the file and altering the menu to pull in the new code. That way you don't run the risk of accidental overwrite.
Phil Pugh
Davis Vantage Vue Raspberry Pi 2B Stretch-Lite MySQL 128Gb SSD
http://goosegate.plus.com/

BCJKiwi
Posts: 859
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby BCJKiwi » Thu Oct 08, 2015 9:44 pm

Don't understand your comment.
Never had anything overwritten that was not intended.
This, like the rest of Saratoga (and my other sites as well actually) is all primarily PHP.
Virtually everything is static on the webserver - the only things being sent to the webserver by CumulusMX in relation to this page are the .json files - no other files being sent by CumulusMX - no chance of anything unintended being "overwritten".

philpugh
Posts: 123
Joined: Tue May 24, 2011 8:34 am
Weather Station: DAVIS VantageVue
Operating System: Debian Jessie
Location: Antrobus, Cheshire
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby philpugh » Thu Oct 08, 2015 10:36 pm

Just meaning that it mskes updating a bit easier. Only need to replace the menu page when templares are updated.
Phil Pugh
Davis Vantage Vue Raspberry Pi 2B Stretch-Lite MySQL 128Gb SSD
http://goosegate.plus.com/

BCJKiwi
Posts: 859
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby BCJKiwi » Fri Oct 09, 2015 4:13 am

Sorry, you don't understand. No templates are used or updated, ever, by CumulusMX. ALL the info you see on the Saratoga style (and my other websites as well) is presented by fixed never changing non-updating files which read the only thing that does change - i.e. the .json data files.
This will also be apparent from the file attached to my first post in this thread. That file resides on the webserver and contains the menu.
This is one of the main advantage of PHP - it is all server-side. The scripts on the server are all PHP and NOT uploaded from template files by CumulusMX.

Suggest you re-read this http://sandaysoft.com/forum/viewtopic.php?f=28&t=13382
If you take another look at how the Saratoga system works, this should become apparent.
While it is possible to send PHP files to the webserver from template files this is not the most efficient way to do it.

philpugh
Posts: 123
Joined: Tue May 24, 2011 8:34 am
Weather Station: DAVIS VantageVue
Operating System: Debian Jessie
Location: Antrobus, Cheshire
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby philpugh » Fri Oct 09, 2015 3:10 pm

I'm obviously not expressing myself clearly.

Yes I know how php files work but in order to do things like include the new trend graphs you need to create a new or modify an existing php file in order for it to work.

All I was pointing out was that you seem to have used the 'original' Saratoga template file wxgraphs.php and modified it to draw the graphs - no problem. I chose to create a new version of the original file (wxgraphsCMX.php) to do this. If I had to reload the Saratoga templates (e.g. updates / replace) I was less likely to overwrite my modified files.

This means you have to alter the menu pages - but this is a small price to pay and most sites seem to have customised menus in any case. I do keep a regular backup of the entire web area of my server in any case!
Phil Pugh
Davis Vantage Vue Raspberry Pi 2B Stretch-Lite MySQL 128Gb SSD
http://goosegate.plus.com/

BCJKiwi
Posts: 859
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby BCJKiwi » Fri Oct 09, 2015 8:05 pm

No, it was not apparent to me that you were referring to an update of the Saratoga templates.

Many of my Saratoga templates have been modified in some way - some extensively and some are whole new files so updated Saratoga scripts are never just copied over the top of existing ones.
Any updated scripts are downloaded into a folder on the local PC, unzipped there, then diffmerge is used to compare the new and existing files to see what has changed and to determine if there is any effect on any changes already made, and to better understand what any updates are doing.
A decision can then be made as to which changes (if any) to incorporate into a temporary test version of the working file.
Once everything is checked OK and validated with the test file, the working file is renamed and the test file changed to the working file.
Last edited by BCJKiwi on Fri Oct 09, 2015 10:32 pm, edited 1 time in total.

philpugh
Posts: 123
Joined: Tue May 24, 2011 8:34 am
Weather Station: DAVIS VantageVue
Operating System: Debian Jessie
Location: Antrobus, Cheshire
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby philpugh » Fri Oct 09, 2015 9:21 pm

Excellent! I do have this problem of confusing people some of the time!

Keep up the good work!
Phil Pugh
Davis Vantage Vue Raspberry Pi 2B Stretch-Lite MySQL 128Gb SSD
http://goosegate.plus.com/

User avatar
PeterP
Posts: 79
Joined: Tue Apr 21, 2009 4:03 am
Weather Station: Davis VP2
Operating System: Vista
Location: Coromandel, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby PeterP » Mon Oct 24, 2016 12:25 am

Hi BCJKiwi,

Can you please advise where would I get a copy of the sunhrdata.php file that this error message talks of (attached). Also how it should it be customized if any, before uploading?

thank you
Peter
You do not have the required permissions to view the files attached to this post.

jlmr731
Posts: 117
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Youngstown, Ohio
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby jlmr731 » Mon Oct 24, 2016 3:22 am

Well atleast you got a chart to display. I do have errors on the sunhrdata.php
Looks nice when it works right

BCJKiwi
Posts: 859
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby BCJKiwi » Mon Oct 24, 2016 7:46 pm

Not sure what you are using for a source for this.
The files on silveracorn.nz are modified but the standard CumulusMX .json files and scripts should work without a sunhrs.php

User avatar
PeterP
Posts: 79
Joined: Tue Apr 21, 2009 4:03 am
Weather Station: Davis VP2
Operating System: Vista
Location: Coromandel, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby PeterP » Tue Oct 25, 2016 11:45 pm

Hi, the source is actually the wxgraphics.php file in the zip attachment from your earlier post, with modified paths as per the instructions.

BCJKiwi
Posts: 859
Joined: Mon Jul 09, 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Saratoga, CumulusMX and new trend graphs

Postby BCJKiwi » Wed Oct 26, 2016 7:28 pm

OK,
If you are referring to the earlier post in this thread than I had forgotten I had posted that and it did not show up when I searched for anything related in my posts :( .

If you simply rem out the line (around No 133);
include_once($sharedir.'sunhrdata.php');

and make sure the paths in the lines ( 119 thru 122 0 are pointing to the right place, then you should get the standard Sun Hrs chart the same as you see in the UI.

The sunhrdata.php generates a pair of different .json files to suit my preferences and is not required for the standard charts.


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 1 guest