Page 1 of 2

Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 5:53 pm
by MagnusGallstad
Hello

My trends page does not work like it should.
Can anyone halp me tp solve whats wrong.

I can see it says "404" on http://192.168.1.100/cumulusmx/lib/jque ... est.min.js

But its on my webserver.

/Magnus

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 6:00 pm
by sfws
The link
MagnusGallstad wrote: Sat 18 Apr 2020 5:53 pm I can see it says "404" on http://192.168.1.100/cumulusmx/lib/jque ... est.min.js
you provide is not valid away from your computer.

Taking a guess, based on your screen image, you are using a MX release of Cumulus with a trends.htm web page that is designed for Cumulus 1, not the web page that comes in MX package.

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 6:02 pm
by water01
I think (but it is difficult to read as it is so small at the bottom of your trends page) that the problem is that you have an incorrect path to jquery.min.js as it appears to be pointing at the server on your network instead of

https://ajax.googleapis.com/ajax/libs/j ... ery.min.js

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 6:12 pm
by MagnusGallstad
This code is frpm latest release, bottom of trend page file

<a href="https://cumuluswiki.wxforum.net/a/Software" target="_blank">Cumulus</a> v<#version> (<#build>)
</p>
</div>
<script src="lib/jquery/jquery-latest.min.js"></script>
<script src="https://code.highcharts.com/stock/8.0/h ... "></script>
<script src="https://code.highcharts.com/themes/grid.js"></script>
<script src="js/cumuluscharts.js"></script>
</body>
</html>

Should it be in this way ?

<a href="https://cumuluswiki.wxforum.net/a/Software" target="_blank">Cumulus</a> v<#version> (<#build>)
</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/j ... "></script>
<script src="https://code.highcharts.com/stock/8.0/h ... "></script>
<script src="https://code.highcharts.com/themes/grid.js"></script>
<script src="js/cumuluscharts.js"></script>
</body>
</html>

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 6:22 pm
by MagnusGallstad
Here is a link to the public site


http://www.beavis2000.com/cumulusmx/trends.htm

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 6:52 pm
by sfws
MagnusGallstad wrote: Sat 18 Apr 2020 6:22 pm Here is a link to the public site
That shows 404 for "graphconfig.json", so that is the file not being uploaded. I think that jQuery is a red herring, not sure what you were showing in your first post, unless you have already changed something.
MagnusGallstad wrote: Sat 18 Apr 2020 6:12 pm This code is frpm latest release, bottom of trend page file

<a href="https://cumuluswiki.wxforum.net/a/Software" target="_blank">Cumulus</a> v<#version> (<#build>)
</p>
</div>
<script src="lib/jquery/jquery-latest.min.js"></script>
<script src="https://code.highcharts.com/stock/8.0/h ... "></script>
<script src="https://code.highcharts.com/themes/grid.js"></script>
<script src="js/cumuluscharts.js"></script>
</body>
</html>

Should it be in this way ?

<a href="https://cumuluswiki.wxforum.net/a/Software" target="_blank">Cumulus</a> v<#version> (<#build>)
</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/j ... "></script>
<script src="https://code.highcharts.com/stock/8.0/h ... "></script>
<script src="https://code.highcharts.com/themes/grid.js"></script>
<script src="js/cumuluscharts.js"></script>
</body>
</html>
[No, do not change the standard web page, waters01 has not actually confirmed that the web page works with jQuery 3.4.1. MX uses the even older jQuery version 1.9.1, that is 2014 vintage and very obsolete and that is what you will have installed on your web server from the standard MX package. Anyway the latest version is 3.5.0 (the official https://jquery.com/download/ gives the most up to date version).

By the way, sorry I mentioned Cumulus 1 web page, I now recall that did not use jQuery. My wild guess was wrong.

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:06 pm
by MagnusGallstad
graphconfig.json is on my webserver

screendump from ftp window

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:19 pm
by water01
I could be wrong but it is saying /jquery/jquery-latest.min.js doesn't exist in your lib folder, does it? I can see lib in your picture but what does it contain?

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:32 pm
by sfws
In my browser it shows this
Trends.PNG
It finds jQuery, but not the json file.

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:42 pm
by water01
OK I am confused. Are we trying to solve a problem when you are pointing at an internal server on your network (192.168.1.100) or your web page on your webserver at http://www.beavis2000.com/cumulusmx/trends.htm as the first picture you posted indicated it was pointing at 192.168.1.100?

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:43 pm
by water01

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:45 pm
by MagnusGallstad
Yes it does :-)

I run an old windows 2012 server, and it was no mime type for .json files

Thanks google :-)

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:48 pm
by MagnusGallstad
Wind dir seems not work, all other does

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:56 pm
by water01
I see wind direction OK, why do you say its not working?

Re: Cumulus standard template not displaying anything from 'Trends' link

Posted: Sat 18 Apr 2020 7:59 pm
by MagnusGallstad
water01 wrote: Sat 18 Apr 2020 7:56 pm I see wind direction OK, why do you say its not working?

Because it only stand with "loading" :D

I did a refresh, and now can I se all tabs.