Page 2 of 3

Re: Password Protect settings pages

Posted: Sun 24 May 2015 12:57 pm
by dan_mcclurg
steve, I cant seem to get the gauges from the dashboard working, I have tried copying them from my other template gauges page, but to no avail.

Re: Password Protect settings pages

Posted: Sun 24 May 2015 1:00 pm
by steve
What are you trying to do - use the interface gauges page on the web? Can you give a link to the web page?

Re: Password Protect settings pages

Posted: Sun 24 May 2015 1:00 pm
by dan_mcclurg
the gauges from the dashboard page do not work when processed and uploaded to my website.


live link here: http://homeservers.org.uk/weather

Re: Password Protect settings pages

Posted: Sun 24 May 2015 1:10 pm
by steve
You're using the dashboard.js file, that won't work as it depends on a web sockets connection to MX, so you'll need to remove that. You also need to turn off dashboard mode in gauges.js, set it to false

dashboardMode : true, //Used by Cumulus MX dashboard - SET TO FALSE OTHERWISE

Re: Password Protect settings pages

Posted: Sun 24 May 2015 1:16 pm
by dan_mcclurg
That worked a treat, the help is much appreciated!

Re: Password Protect settings pages

Posted: Sun 24 May 2015 2:58 pm
by dan_mcclurg
now on to the today/yesterday page, however im receiving an error regarding the data tables and AJAX simply states there is an ajax error

Re: Password Protect settings pages

Posted: Sun 24 May 2015 3:07 pm
by dan_mcclurg
On to the today/yesterday page and im receiving an error regarding the data tables, specifically table id AJAX error

Re: Password Protect settings pages

Posted: Sun 24 May 2015 3:33 pm
by steve
As with the dashboard page, you need to remove the javascript reference - todayyest.js in this case.

Re: Password Protect settings pages

Posted: Sun 24 May 2015 3:41 pm
by dan_mcclurg
ahh right, I assume the same with the month logs page too?


again thanks for the help:)

Re: Password Protect settings pages

Posted: Sun 24 May 2015 3:51 pm
by steve
Yes, you need to remove any of the Cumulus javascript on all of the pages, and only leave in the javascript that provides the framework - bootstrap etc. I'm not sure how you will do the data log viewer, though, or perhaps you already have a cunning plan...

Re: Password Protect settings pages

Posted: Sun 24 May 2015 4:00 pm
by dan_mcclurg
errrr no plan as of yet :? how is the data log viewer set up exactly?

Re: Password Protect settings pages

Posted: Sun 24 May 2015 4:05 pm
by steve
It uses this - https://www.datatables.net/

The code in MX sends the required page of data when requested (encoded as JSON).

Re: Password Protect settings pages

Posted: Sun 24 May 2015 4:09 pm
by dan_mcclurg
Hmm, that could pose quite a challenge, especially as my knowledge of JS and JSON is nil :?

Re: Password Protect settings pages

Posted: Sun 24 May 2015 4:11 pm
by dan_mcclurg
I think I'm also going to have to do the today and yesterday pages separately as I can't see exactly how it would work with webtags without a heck of a lot of new tables being created

Re: Password Protect settings pages

Posted: Sun 24 May 2015 4:12 pm
by steve
dan_mcclurg wrote:Hmm, that could pose quite a challenge, especially as my knowledge of JS and JSON is nil :?
You probably need PHP and a database.