Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

SteelSeries Gauges - version 1.0

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post by FTBoomer »

Yep
mcrossley wrote:Your realtimegauges.txt file contains the raw webtags, have you ticked the 'process' checkbox for that file in Cumulus?
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post 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
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: SteelSeries Gauges - version 1.0

Post 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 :?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post 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.
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post 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
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post 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.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post 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...
R-II
Posts: 11
Joined: Wed 21 Dec 2011 8:29 pm
Weather Station: Smart Weather WH2080
Operating System: Windows 7
Location: United Kingdom

Re: SteelSeries Gauges - version 1.0

Post 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
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SteelSeries Gauges - version 1.0

Post 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.
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: SteelSeries Gauges - version 1.0

Post 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-)
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post by FTBoomer »

http://goo.gl/PnOAT

Here's my link
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: SteelSeries Gauges - version 1.0

Post 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...
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post 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...
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post 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)
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post 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";
Last edited by mcrossley on Wed 28 Dec 2011 4:10 pm, edited 1 time in total.
Post Reply