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
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
Moderator: mcrossley
-
n9mfk
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: SteelSeries Gauges - version 1.0
Hi Mark, I noted in the html you used
two times id="gaugeTable">
also i known html5 is a work in progress
is there any way to make that page pass wc3
keep up the great work
Beau
two times id="gaugeTable">
also i known html5 is a work in progress
is there any way to make that page pass wc3
keep up the great work
Beau
- GraemeT
- Posts: 312
- Joined: Wed 21 Oct 2009 11:19 am
- Weather Station: La Crosse WS-2355 & WS-2306
- Operating System: Windoze 7, 10, 11
- Location: Bayswater, Australia
- Contact:
Re: SteelSeries Gauges - version 1.0
Beau,
This line, and lines like it will fail w3c validation because, apparently, the rel attribute isn't supported in html5 canvas as either a Global or Event attribute.
The code will still work, but w3c validation will generate the error "Attribute rel not allowed on element canvas at this point"
I just make sure there are no other errors and accept that it's not allowed.
Edit: You'll get an error for each gauge you display.
cheers.
This line, and lines like it
Code: Select all
<canvas id="canvas_temp" style="width:251; height:251" rel="imgtip[0]"></canvas>The code will still work, but w3c validation will generate the error "Attribute rel not allowed on element canvas at this point"
I just make sure there are no other errors and accept that it's not allowed.
Edit: You'll get an error for each gauge you display.
cheers.
Cheers,
Graeme.
Graeme.
- GraemeT
- Posts: 312
- Joined: Wed 21 Oct 2009 11:19 am
- Weather Station: La Crosse WS-2355 & WS-2306
- Operating System: Windoze 7, 10, 11
- Location: Bayswater, Australia
- Contact:
Re: SteelSeries Gauges - version 1.0
Beau,
There is always the option of removing the rel="imgtip[x]" from each line it occurs in.
The trade-off is, no pop-up graphs.
Mark,
Is there another way to show the pop-up graphs without using rel ?
There is always the option of removing the rel="imgtip[x]" from each line it occurs in.
The trade-off is, no pop-up graphs.
Mark,
Is there another way to show the pop-up graphs without using rel ?
Cheers,
Graeme.
Graeme.
- 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
The id is just used to apply a CSS style, I was lazy and when the table split I used a duplicate ID. What I should have done is use a classname instead. So yes this can be fixed.n9mfk wrote:Hi Mark, I noted in the html you used
two times id="gaugeTable">
also i known html5 is a work in progress
is there any way to make that page pass wc3
Not using the popup library I currently use. If you wrap each <canvas> in an <div> and apply the rel to the div will that pass w3c? (probably not, rel attribute only applies to <a> and <link>?)GraemeT wrote:Mark,
Is there another way to show the pop-up graphs without using rel ?
I could rewrite the HTML and the popup library to use the canvas id instead, but I'd have to move away from using English reading names like "canvas_wind" to something like "canvas_2", though perhaps with a bit of regex tweaking it could be "canvas_2_wind". The point is it needs to be machine readable and order-able, which means looking for a numeric value.
- GraemeT
- Posts: 312
- Joined: Wed 21 Oct 2009 11:19 am
- Weather Station: La Crosse WS-2355 & WS-2306
- Operating System: Windoze 7, 10, 11
- Location: Bayswater, Australia
- Contact:
Re: SteelSeries Gauges - version 1.0
As I see it, the use of rel and rev isn't completely ruled out, but doesn't have much html5 support, either.
I read on a w3c forum a few weeks ago something about it not yet being decided whether to support these 2 attributes and to what extent.
I wish they could make up their collective minds!
I've tried a number of ways to disguise use of the rel attribute, but nothing works for me. Whatever the configuration, it seems the rel has to be within canvas tags to do what you want it to do, and then it's not legal html5.
I did wonder if a javascript work-around was feasible, but my javascript is on the low end of minimal, so I'll leave that one to someone else and enjoy this little can of worms....
cheers for now.
I read on a w3c forum a few weeks ago something about it not yet being decided whether to support these 2 attributes and to what extent.
I wish they could make up their collective minds!
I've tried a number of ways to disguise use of the rel attribute, but nothing works for me. Whatever the configuration, it seems the rel has to be within canvas tags to do what you want it to do, and then it's not legal html5.
I did wonder if a javascript work-around was feasible, but my javascript is on the low end of minimal, so I'll leave that one to someone else and enjoy this little can of worms....
cheers for now.
Cheers,
Graeme.
Graeme.
- 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
You could fudge it in JS, by adding the rel attributes dynamically, then it would pass the static w3c test. I'm looking at changing the popup library to use the id instead - with partial success so far...
- 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
I now have a version that removes the duplicate table id's and removes all the 'rel's, and passes w3c.
Do you want me to release this as version 1.3.2? (with no functional changes?)
w3c validator on my (customised version): http://validator.w3.org/check?uri=http% ... ator%2F1.2
EDIT: v1.3.2 now posted, no functional changes from 1.3.1 so you only need to update if w3c validation is important to you.
Do you want me to release this as version 1.3.2? (with no functional changes?)
w3c validator on my (customised version): http://validator.w3.org/check?uri=http% ... ator%2F1.2
EDIT: v1.3.2 now posted, no functional changes from 1.3.1 so you only need to update if w3c validation is important to you.
Last edited by mcrossley on Fri 30 Dec 2011 5:53 pm, edited 3 times in total.
-
Mapantz
- Posts: 1992
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: SteelSeries Gauges - version 1.0
Love the Steel Gauges work! Just got mine up and running.
Just wondered something though .. i've seen a few people's sites using the gauges, and they had a cloudbase gauges, are there other designs to use, or extra gauges to add?
Regards.
Just wondered something though .. i've seen a few people's sites using the gauges, and they had a cloudbase gauges, are there other designs to use, or extra gauges to add?
Regards.
- 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
Can't find the .json file when using peazip.
edit* Just tried it again and no realtimegaugesT.json file
*edit II: OK don't know what a .json file is but 1.3.2 is now working for me just fine. Not sure I understand the dual compass yet though.
*edit III: OK, red pointer is average, got it.
*edit IV: Could someone please post a 2-row version guages-ssT.htm for me.
edit* Just tried it again and no realtimegaugesT.json file
*edit II: OK don't know what a .json file is but 1.3.2 is now working for me just fine. Not sure I understand the dual compass yet though.
*edit III: OK, red pointer is average, got it.
*edit IV: Could someone please post a 2-row version guages-ssT.htm for me.
- 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
The realtimegaugesT.txt is the json file - the internal structure has changed to the JSON data format, I decided against changing the file extension due to possible web server issues.
You can look at my gauges page to see an example of a two row format page - I leave as an exercise to change gauges-ssT.html to a similar format!
You can look at my gauges page to see an example of a two row format page - I leave as an exercise to change gauges-ssT.html to a similar format!
- 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
mcrossley wrote:The realtimegaugesT.txt is the json file - the internal structure has changed to the JSON data format, I decided against changing the file extension due to possible web server issues.
I did not change the file name from .txt to .json and everything seems to be working. Should I change the extension?
- 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
No, just leave it ".txt" that is what is requiredFTBoomer wrote:I did not change the file name from .txt to .json and everything seems to be working. Should I change the extension?
- 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
mcrossley wrote:No, just leave it ".txt" that is what is requiredFTBoomer wrote:I did not change the file name from .txt to .json and everything seems to be working. Should I change the extension?
OK, check your README file then it is incorrect
I you look at my page (link below) I'm trying to change the font colors of the radio buttons but I'm new to css. Where would I change the font color wiothin the css file?
I'm going to use fafdff unless you would recommend another bright contrast color
- 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
Good catch, thanks, file updated.FTBoomer wrote:OK, check your README file then it is incorrect
You would have to add it into gauges-ss.css in the .gaugeTable section. The text colour is not specified, you would have to add it as "color: #fafdff;"FTBoomer wrote:I you look at my page (link below) I'm trying to change the font colors of the radio buttons but I'm new to css. Where would I change the font color wiothin the css file?
I'm going to use fafdff unless you would recommend another bright contrast color
-
gpercival
- Posts: 22
- Joined: Fri 11 Feb 2011 11:00 am
- Weather Station: La Crosse 2355
- Operating System: Windows XP
- Location: Asquith, NSW, Australia
Re: SteelSeries Gauges - version 1.0
George,gwheelo wrote:Mark - thanks for the code. Results here: http://www.wheelocknet.net/cumulus/gauges.html?gb.
The lines calling the fillStyle, however, did not work for me. The text color did not change. I substituted ctx.fillStyle = "rgba(0,50,255,1)"; for "Latest" and ctx.fillStyle = "rgba(255,0,0,1)"; for the "Average."
The color labels, I think, add just a bit more clarity when reading the gauge.
Thanks for all your help and the availability of the SteelSeries Gauges.
George Wheelock
I like your idea of colouring the "Latest" and "Average" titles however I can't follow your discussion. I have tried both yours and Marks suggestions and neither of them seem to work. Exactly where did you add the ctx.fillStyle statements?
Geoff
http://www.rhumbline.com.au/weather