Page 20 of 46

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 3:08 pm
by FTBoomer
Yep
mcrossley wrote:Your realtimegauges.txt file contains the raw webtags, have you ticked the 'process' checkbox for that file in Cumulus?

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 3:35 pm
by FTBoomer
So what are the TMP files? These are current but the dates and time don't match the files on my site. should I be uploading the tmp files and renaming them?

I've also noticed that my download countdown clock is not running

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 4:05 pm
by gemini06720
mcrossley wrote:It does not 'have' to be converted, but by doing so I can drop a whole is file (parserealtime.is) from the solution, and switch to a browser native JSON.parse().

It also makes the realtime file self documenting, and independent of the order of things within the file.
:? Mark, I must really be tired as I cannot make sense of your reply :?

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 4:10 pm
by mcrossley
When Cumulus processes the template file, it puts the new contents into the tmp file, then ftp's that file to your server and renames it.

the countdown is not running because the script is erroring out due to the unexpected contents of the realtime file. There is not as much error checking in the script as maybe there should.

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 7:02 pm
by FTBoomer
mcrossley wrote:When Cumulus processes the template file, it puts the new contents into the tmp file, then ftp's that file to your server and renames it.

the countdown is not running because the script is erroring out due to the unexpected contents of the realtime file. There is not as much error checking in the script as maybe there should.
So, how do I fix it?

The realguages.txt file in my FTP shows the date is not updating. what am I missing? How do I get the updated file into my site? I followed the directions.

edit* OK so the countdown clock is working

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 9:40 pm
by mcrossley
FTBoomer wrote: So, how do I fix it?

The realguages.txt file in my FTP shows the date is not updating. what am I missing? How do I get the updated file into my site? I followed the directions.
Hard to say. I'd start by deleting the file realtimegauges.txt in your web sites Weather folder. Then you can see if it is recreated.

Next we need to see what you have configured in Cumulus - that looks like where the problem lies.

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 9:56 pm
by mcrossley
I have released version 1.3.0 of the gauges

Please read the readme file in the archive.

A number of files have changed in this release, make sure that you update them all:
  • gauges-ssT.htm
  • steelseries.min.js
  • gauges.js
  • realtimegaugesT.txt
This release is designed to work with Cumulus 1.9.2 build 1025 or later, though it should work with earlier releases.

My computer time may be a little limited over the next week, so proceed with caution - make backups of your current installation, perform a parallel install until you are happy etc.

Good luck and I hope you like it...

Re: SteelSeries Gauges - version 1.0

Posted: Tue 27 Dec 2011 11:29 pm
by R-II
OK I may be being a bit stupid here... it is late but I appar to have a slight problem with the gauges part of my website not working properly

If I click "gauges" I get the old gauges displayed but if i type in a direct url to "gauges-ss.htm" it works fine, what have I done stupid :bash:

Regards

Richard

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 9:30 am
by steve
Have you edited the links in your other pages (in the template files, the ones with 'T' in them) so that they go to your new gauges page? The other pages as supplied have links to gauges.htm, you can't just add a completely new page and expect the other pages to automatically change.

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 11:33 am
by gemini06720
Why oh why is it so difficult for many of you to include a link to your web pages! :roll:

If you do not want (or do not know how) to include the link into your message signature at the very least, PLEASE, include the link into your profile!

How do you expect Steve or anyone else to provide assistance when the web pages cannot be seen/viewed!!! :evil:

We do not have the gift of 'mind reading'... 8-)

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 1:41 pm
by FTBoomer
http://goo.gl/PnOAT

Here's my link

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 2:00 pm
by gemini06720
It appears the 'realtimegauges.txt' file produced by Cumulus is good - it contains weather date... ;)

Looking at the settings of the 'gauges.js' script... As an experiment, could you try replacing the following lines:

Code: Select all

var realTimeURL = "/public_html/Weather/realtimegauges.txt";
var imgPathURL = "/public_html/Weather/images/"; 
var oldGauges = "/public_html/Weather/gauges.htm";
with those:

Code: Select all

var realTimeURL = "realtimegauges.txt";
var imgPathURL = "images/";
var oldGauges = "gauges.htm";
Please post the results...

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 3:38 pm
by FTBoomer
Thanks, I had those in my js script originally and during my troubleshooting I changed them. I will change them back and see what happens

Thank you, I'll let you know

*EDIT, Nope no luck


gemini06720 wrote:It appears the 'realtimegauges.txt' file produced by Cumulus is good - it contains weather date... ;)

Looking at the settings of the 'gauges.js' script... As an experiment, could you try replacing the following lines:

Code: Select all

var realTimeURL = "/public_html/Weather/realtimegauges.txt";
var imgPathURL = "/public_html/Weather/images/"; 
var oldGauges = "/public_html/Weather/gauges.htm";
with those:

Code: Select all

var realTimeURL = "realtimegauges.txt";
var imgPathURL = "images/";
var oldGauges = "gauges.htm";
Please post the results...

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 3:54 pm
by mcrossley
I have just noticed a couple of things about the 1.3.0 release that I had not intended.

Firstly, the rain gauge implements a gradient colour scheme for the LEDs, this smoothly changes the colour from green, through amber, red, bright red. But it is set to a fixed range of 0-100 for the complete gradient. This is suitable for a mm scale, but probably on the large size for an inch scale! I hadn't intended that to be in the release, it is something I put on my personal gauges page.

To disable this gradient set line 385:
useValueGradient : true,
to
useValueGradient : false,

The gradient colour scheme is defined at line 141.

I also left in some section colours on the rain gauge (these ARE disabled by default), again these are for a mm only scale. Section colours defined fixed LED colours for specified ranges of values. To enable this feature if you want to play with it, change line 386:
useSectionColors : false,
to
useSectionColors : true,

The section colour scheme is defined at line 372.

If both the value gradient, and section colours are disabled all the LEDs will take on the global pointer colour as they did in previous releases.

What I should do is make these two colour schemes optional and auto-rescale them for metric/imperial gauges - maybe in 1.3.1


The second thing I unintentionally left in was the tick label orientation, I changed it for my page to be horizontal, and forgot to take t out again. Each drawGauge() function has a line:
tickLabelOrientation: steelseries.TickLabelOrientation.HORIZONTAL
the default value from previous releases was NORMAL, the third option is TANGENT
So if you want to switch back to the previous style change all these to from HORIZONTAL to NORMAL.

Again for the next release I'll make this a global setting.

Anyone got 1.3.0 up and running yet? (about 25 downloads so far)

Re: SteelSeries Gauges - version 1.0

Posted: Wed 28 Dec 2011 4:03 pm
by mcrossley
FTBoomer wrote: *EDIT, Nope no luck
In that case I would try:

Code: Select all

var realTimeURL = "/Weather/realtimegauges.txt";
var imgPathURL = "/Weather/images/"; 
var oldGauges = "/Weather/gauges.htm";