Page 1 of 2

Getting wxssgauges.php to Work

Posted: Mon 08 Jan 2018 12:44 am
by acatalano
I have the gauges working on my website ( boulderwx.com/gauges.htm), but would like to get them working in the Saratoga templates which I am using on the rest of the site. Realtimegauges.txt and gauges-ss.htm are being updated in the root directory of the site. The SteelSeries gauges also work from the root directory (boulderwx/gauges-ss.htm). However to get wxssgauges to operate I believe I need gauges-ss-basic-inc.php to update. I tried to follow the directions online and have edited ssg/scripts/gauges.js to point to the relevant paths and looked into various .js and gauges-ss.css files to see if there were paths that seemed faulty, but just have not found the problem. Any advice would be appreciated.

Tony Catalano
www.apcat.org
www.boulderwx.com
www.boulderweather.org

Re: Getting wxssgauges.php to Work

Posted: Mon 08 Jan 2018 3:01 am
by saratogaWX
Your wxssgauges.php page is looking for (and not finding):

scripts/steelseries_tween.min.js
scripts/language.min.js
scripts/gauges.js
scripts/RGraph.common.core.min.js
scripts/RGraph.rose.min.js

Your webserver is returning a index.php instead for those page(s) -- maybe a 404-Not Found response?

Put those scripts in ./scripts/ and your page should work.

Re: Getting wxssgauges.php to Work

Posted: Mon 08 Jan 2018 3:07 am
by saratogaWX
And.. trying check-fetch-times.php?show=versions yields
check-fetch-times.php Version 1.14 - 06-Jul-2015
Included Settings.php time=0.013 secs.

..fetching recent version information.
GET /wxtemplates/template-version-info.txt HTTP/1.1
Host: saratoga-weather.org Port: 80 IP=74.208.149.102
Network error: Permission denied (13)
HTTP stats: dns=0.241 conn=0.000 put=n/a get( blocks)=n/a close=n/a total=0.241 secs
fetch function elapsed= 0 secs.
RC=, bytes=0
------------
Headers returned:


------------

Skipped cache write to ./cache/template-version-info.txt file.
Error: ./cache/template-version-info.txt file is not complete..skipping testing.
That permisssion-denied error is a problem. You're running an old version of check-fetch-times.php utility.. I suggest you download a copy from [https://saratoga-weather.org/wxtemplate ... p?sce=view]here[/url] and try it. You may have multiple scripts that need updating...

Re: Getting wxssgauges.php to Work

Posted: Mon 08 Jan 2018 4:59 pm
by acatalano
Many thanks for the great feedback & suggestions. I checked the scripts folder and all the files you listed are present already. I'll set about updating immediately. Regarding permissions, the files were set to 644, so just read & write. Is that OK?

Best Regards
A. Catalano

Re: Getting wxssgauges.php to Work

Posted: Mon 08 Jan 2018 5:36 pm
by ConligWX
acatalano wrote:Many thanks for the great feedback & suggestions. I checked the scripts folder and all the files you listed are present already. I'll set about updating immediately. Regarding permissions, the files were set to 644, so just read & write. Is that OK?

Best Regards
A. Catalano
to check it is working just goto:

http://www.apcat.org/check-fetch-times. ... w=versions

you'll see

Code: Select all

check-fetch-times.php Version 1.14 - 06-Jul-2015
Included Settings.php time=0.013 secs.
..fetching recent version information.
GET /wxtemplates/template-version-info.txt HTTP/1.1 
      Host: saratoga-weather.org  Port: 80 IP=74.208.149.102
Network error: Permission denied (13)
HTTP stats: dns=0.001 conn=0.000 put=n/a get( blocks)=n/a close=n/a total=0.001 secs 
fetch function elapsed= 0 secs.
RC=, bytes=0
------------
Headers returned:


------------

Skipped cache write to ./cache/template-version-info.txt file.
Error: ./cache/template-version-info.txt file is not complete..skipping testing.
Network error: Permission denied (13)

yep that looks like you have a permission problem.

looks like your site will no connect outwards to Host: saratoga-weather.org Port: 80 IP=74.208.149.102

also:

Error: ./cache/template-version-info.txt file is not complete.

what is the perms on your cache folder? try 755

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 1:36 am
by acatalano
Thanks very much for the additional info. The problem with communicating with Saratoga is fixed and the update list & text file is created. I keep forgetting that my host requires me to "open up" and allow a connection to a specific IP address. That is now done. I've updated all (except one that appears minor) the new templates today. I'm using the new wxindex.php renamed to index.php. Unfortunately no joy as regards the wxssgauges.php yet. Please note I am doing all these changes to www.boulderwx.com, not (yet) to apcat.org. Also, boulderweather.org is aliased to boulderwx.com

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 1:49 am
by acatalano
...and one more thing...Cache has been set to 755 all along

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 1:52 am
by acatalano
...and most of the files in root have 644 permissions (read/write by user only, read by others. Not sure if that is important. Other than wxssgauges.php site is working fine.

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 7:49 am
by ConligWX
inside wxssgauges.php can you check that

Code: Select all

$ssgDir = './lib/steelseries/';
and the folder is there and has content in it?

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 1:25 pm
by acatalano
So... wxssgauges.php has $ssgDir='./ssg/ not /lib/steelseries. I have been focusing on ./ssg as the directory where the "action" was. Looks like I made a left turn instead of a right turn somewhere along the way... So what should the directory structure and file content be? I'll show what I have now in another post... :groan:

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 2:10 pm
by acatalano
My current file structure for which wxssgauges.php does not work is:
./lib/highstock
./lib/jquery
./lib/steelseries/css,images,scripts
no other files within lib; all files are within those folders.

then:
./ssg/css,fonts,images,scripts
and within ./ssg the files gauges-ss-basic-inc.php, gauges-ss-basic.php, gauges-ss.htm, gauges-sst.htm, realtimegauges-longpoll.php, realtimegauges.txt, realtimegauges.txttmp, steelseriesVWSjson.php
I have another realtimegauges.txt in root and have been updating both as part of an experiment to see what works.
I'm guessing from your question that these "loose" files within ./ssg/ should be in ./lib/steelseries?

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 4:05 pm
by ConligWX
acatalano wrote:I'm guessing from your question that these "loose" files within ./ssg/ should be in ./lib/steelseries?
it really depends on YOUR file structure AND what it say in the the contents of the file called wxgauges.php LINE 44:

Code: Select all

$ssgDir = './lib/steelseries/'; // set to relative directory location of the SteelSeries gauge directory

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 5:56 pm
by acatalano
I had the wxssgauges.php path set to ./ssg/ NOT ./lib/steelseries/ making that change solved the problem!!!!!!!!!!!!!!! I was way too focused on the contents of the ssg folder, and blinded myself to the correct path (so to speak). Cannot thank you enough!

The (additional) silver lining is that it got me to update the site which I have been putting off!

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 5:57 pm
by ConligWX
acatalano wrote:I had the wxssgauges.php path set to ./ssg/ NOT ./lib/steelseries/ making that change solved the problem!!!!!!!!!!!!!!! I was way too focused on the contents of the ssg folder, and blinded myself to the correct path (so to speak). Cannot thank you enough!
hey now worries, we all get confused from time to time, glad you got it sorted.

Re: Getting wxssgauges.php to Work

Posted: Tue 09 Jan 2018 9:43 pm
by acatalano
Sooo...one step forward but two back. After all was said and done the windrose was blank, so I thought I'd work on that. I could not find the file windrose.js anywhere within the scripts subdirectory or anywhere else. I downloaded the latest steelseries files and realized that several of the files were newer than what I was using, so I uploaded them to /lib/steelseries/. Things pretty much fell apart there. Now wxssgauges.php does not work anymore.

I believe I have the steelseries gauges now ( and have been) located in two directories: ./ssg/ and ./lib/steelseries/ and that may be part, if not all the trouble. Even though I have the realtimegauges.txt updating, no data is getting read; the gauges display but the indicators do not move.
I thought I finally understood what was happening, but that isn't the case now.