WXforum.net

Weather Software => Cumulus => Topic started by: mkutche on December 19, 2020, 03:36:53 PM

Title: CumulusMX Graphs
Post by: mkutche on December 19, 2020, 03:36:53 PM
For some reason since switching to Cumulus MX latest build i lost my graphs.. http://gosportwx.com/wxgraphs.php they use to show up with 1.9.4 any idea how to fix this?
Title: Re: CumulusMX Graphs
Post by: saratogaWX on December 19, 2020, 04:38:49 PM
You seem to be missing http://gosportwx.com/cumx/jquery/jquery-latest.min.js and http://gosportwx.com/cumx/cumulusmxcharts.js on your site.  That can cause the highcharts to not load data correctly.
Title: Re: CumulusMX Graphs
Post by: mkutche on December 19, 2020, 08:20:25 PM
You seem to be missing http://gosportwx.com/cumx/jquery/jquery-latest.min.js and http://gosportwx.com/cumx/cumulusmxcharts.js on your site.  That can cause the highcharts to not load data correctly.

uploaded those to /cumulus/ folder but still not working
Title: Re: CumulusMX Graphs
Post by: PaulMy on December 19, 2020, 08:37:17 PM
I still use Cumulus1 for my Saratgoa site.  CumulusMX uses different graphs and not sure how you would use them on Saratoga template but Brian has it figured out Silver Acorn Weather - Auckland, New Zealand - Graphs (https://silveracorn.nz/weather/wxcharts.php)


Enjoy,
Paul
Title: Re: CumulusMX Graphs
Post by: mkutche on December 19, 2020, 08:45:43 PM
I still use Cumulus1 for my Saratgoa site.  CumulusMX uses different graphs and not sure how you would use them on Saratoga template but Brian has it figured out Silver Acorn Weather - Auckland, New Zealand - Graphs (https://silveracorn.nz/weather/wxcharts.php)


Enjoy,
Paul

is he a member here?
Title: Re: CumulusMX Graphs
Post by: PaulMy on December 19, 2020, 08:54:57 PM
Yes


Enjoy,
Paul
Title: Re: CumulusMX Graphs
Post by: saratogaWX on December 19, 2020, 10:21:05 PM
You seem to be missing http://gosportwx.com/cumx/jquery/jquery-latest.min.js and http://gosportwx.com/cumx/cumulusmxcharts.js on your site.  That can cause the highcharts to not load data correctly.

uploaded those to /cumulus/ folder but still not working

Umm... http://gosportwx.com/cumx/jquery/jquery-latest.min.js and http://gosportwx.com/cumx/cumulusmxcharts.js both return 404-Not Found still.  Note that the two files have to be in ./cumx/ subdirectory with the jQuery one in ./cumx/jquery/ subdirectory.
Title: Re: CumulusMX Graphs
Post by: saratogaWX on December 19, 2020, 10:22:27 PM
I still use Cumulus1 for my Saratgoa site.  CumulusMX uses different graphs and not sure how you would use them on Saratoga template but Brian has it figured out Silver Acorn Weather - Auckland, New Zealand - Graphs (https://silveracorn.nz/weather/wxcharts.php)


Enjoy,
Paul

The current Cumulus plugin detects MX and uses the Highchart graphs automatically.  If V1.9.4 is used, the static graph images are used.
Title: Re: CumulusMX Graphs
Post by: mkutche on December 19, 2020, 11:31:19 PM
You seem to be missing http://gosportwx.com/cumx/jquery/jquery-latest.min.js and http://gosportwx.com/cumx/cumulusmxcharts.js on your site.  That can cause the highcharts to not load data correctly.

uploaded those to /cumulus/ folder but still not working

Umm... http://gosportwx.com/cumx/jquery/jquery-latest.min.js and http://gosportwx.com/cumx/cumulusmxcharts.js both return 404-Not Found still.  Note that the two files have to be in ./cumx/ subdirectory with the jQuery one in ./cumx/jquery/ subdirectory.

ok they are in cumx now, but still doesn't want to work
Title: Re: CumulusMX Graphs
Post by: saratogaWX on December 20, 2020, 12:17:50 AM
Now it is loading those scripts, but missing http://gosportwx.com/graphconfig.json (gets a 404-Not Found).

I suggest you view http://gosportwx.com/wxgraphs.php while the developer tools are active in your browser (it's CTRL-SHIFT-K in FireFox) and examine the XHR (JSON requests) and Requests to see which other parts may be missing on your site.  It's what I did to cite the first two JavaScripts that were missing.
Title: Re: CumulusMX Graphs
Post by: mkutche on December 20, 2020, 02:10:55 AM
Now it is loading those scripts, but missing http://gosportwx.com/graphconfig.json (gets a 404-Not Found).

I suggest you view http://gosportwx.com/wxgraphs.php while the developer tools are active in your browser (it's CTRL-SHIFT-K in FireFox) and examine the XHR (JSON requests) and Requests to see which other parts may be missing on your site.  It's what I did to cite the first two JavaScripts that were missing.

ok so how do i auto upload those and still have cumulus upload to /cumx? because if i just upload outside cumx the wxgraph works, but the .htm files upload outside of cumx.
Title: Re: CumulusMX Graphs
Post by: the beteljuice on December 20, 2020, 06:43:05 AM
The trends graphs are updated End Of Day.
The very latest release of cumx will upload at at start up as well.
Quote
     New: If enabled, the daily graph data files are now created at start-up and uploaded at first interval FTP. Previously you had to wait for the first EOD rollover.

Settings | Internet Settings | Web/FTP Settings | Include graph data files

If they ARE enabled, your page should be fine by the time you read this  ;)
Title: Re: CumulusMX Graphs
Post by: mkutche on December 20, 2020, 07:20:37 AM
The trends graphs are updated End Of Day.
The very latest release of cumx will upload at at start up as well.
Quote
     New: If enabled, the daily graph data files are now created at start-up and uploaded at first interval FTP. Previously you had to wait for the first EOD rollover.

Settings | Internet Settings | Web/FTP Settings | Include graph data files

If they ARE enabled, your page should be fine by the time you read this  ;)

I have the include graph data files enabled. it checked the cumx directory and when the 5 minute update occurs they update in the cumx folder rather than outside the directory.
Title: Re: CumulusMX Graphs
Post by: the beteljuice on December 20, 2020, 10:43:13 AM
Your data files seem to be in the right place and upto date (http://gosportwx.com/cumx/tempdata.json), so I don't know how you are getting static, older data being shown  :roll:

... better post on the Cumulus forum !
Title: Re: CumulusMX Graphs
Post by: mkutche on December 20, 2020, 11:02:31 AM
Your data files seem to be in the right place and upto date (http://gosportwx.com/cumx/tempdata.json), so I don't know how you are getting static, older data being shown  :roll:

... better post on the Cumulus forum !

just did a temp fix uploaded the .json files from /web/ folder on cumulus to main folder. so they'll be uploaded in both places incase something changes. lol
Title: Re: CumulusMX Graphs
Post by: the beteljuice on December 20, 2020, 12:10:46 PM
That seems to be working ...

... but why ?
Title: Re: CumulusMX Graphs
Post by: mkutche on December 20, 2020, 12:16:58 PM
That seems to be working ...

... but why ?

Don't have a clue, lol