Page 1 of 1

Help setting up

Posted: Sun 24 Apr 2016 8:11 pm
by perl
I need some clear eyes on what's wrong in my setup

I have no problems with the realtimesgauges.txt or gauges-ss.htm. I have testet it on my windows PC and on a new Raspberry, which i prefer to select.

I normally use saratoga on my page, but would like to test if the steelseries gauges should be a part of my page. The web page is on http://brugergruppen.dk/vejr/index.php

I have also tried uploading the realtimesgauges.txt as php and made a change of link in gauges.js - still with no positive result.

As You see on the picture from http:/brugergruppen.dk/vejr/gauges-ss.htm - nothing happens with the gauges. I have put some picture from the web.

I appreciate some suggestions on what I should try.

Per

Re: Help setting up

Posted: Sun 24 Apr 2016 9:04 pm
by steve
The gauges.js file is asking for the URL of your realtimegauges.txt and you have given it the location on the ftp server file store. JavaScript is client side code, it can't access your ftp server file store.

Re: Help setting up

Posted: Mon 25 Apr 2016 4:19 pm
by perl
steve wrote:The gauges.js file is asking for the URL of your realtimegauges.txt and you have given it the location on the ftp server file store. JavaScript is client side code, it can't access your ftp server file store.
I am still a bit confused.
In the file gauges.js is written: The realtime files should be absolute paths, "/xxx.txt" refers to the public root of your web server
This would be http://brugergruppen.dk/vejr/realtimegauges.txt
In the Readme file by Mark Crossley form July 2011 updated 12 Januar 2016 is written: If required edit the "gauges.js", the key items are at the top: The relative path on your website to "realtimegauges.txt" file
This would be "../realtimegauges.txt" I guess ( because Your are in the the file gauges.js, which are in the folder <scripts> in the root of my website).

I have tried both of theese adresses with no luck.

Now I have this in gauges.js file:
imgPathURL : './images/',
oldGauges : './gauges.htm',
realTimeURL_Cumulus: 'http://brugergruppen.dk/vejr/realtimegauges.txt',
and I hope this is correct.

But there is still no reaction on the gauges. Any suggestions what I should do?

Re: Help setting up

Posted: Mon 25 Apr 2016 4:39 pm
by steve
You have 'dashboard' mode set, but this is a web page, not part of the MX dashboard.


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

Note that the relative URL for your realtimegauges.txt would be

realTimeURL_Cumulus: 'realtimegauges.txt',

It's relative to the web page, not to the js file.

Re: Help setting up

Posted: Mon 25 Apr 2016 5:43 pm
by perl
You have truly strong eyes. I am very grateful and sent you a small donation of my retirement pension.
I can see that I still have much to learn - thanks for your great work.
_________
Per