That is really cool, and of course I can use it to choose which colors etc I would like to use,
but once I have done that, I do not see any way to IMPLEMENT it in my own steel gauge files,
and that is essentially my question.
At the following link/ page there are some instructions, but they do not apply (or do not seem to)
to the steel gauges from Mark Crossley.
This quote (below) from the latter page, shows something called “setFrameDesign function …”
but I do not see any file in our steel gauges folders which have such a function.
[color=blue]--------------------------------------------------------------
setFrameDesign function control “ring” appearance:
Parameter Description
BLACK_METAL Black Metal
METAL Metal
SHINY_METAL Shiny Metal
Am I not seeing something in the Crossley folders and files which would allow setting these various
gauge colors and parameters like pointer type, metal finish type, etc?
Thank you Niko, for that help. This afternoon I have been trying to change the appearance of the gauges
by changing lines like the following in the gauges.js file you pointed me to:
frameDesign : steelseries.FrameDesign.CHROME, // was TILTED_GRAY
background : steelseries.BackgroundColor.TURNED, // was BEIGE
foreground : steelseries.ForegroundType.TYPE2, // was TYPE1
pointer : steelseries.PointerType.TYPE5, // was TYPE8
None of these changes show up.
I’m thinking that there might not be a set of options
from which the program can interpret “CHROME” or “TURNED”.
But then I wonder why it “understood” the original “TILTED_GRAY” and “BEIGE” values
that were there originally. Those must be defined and created someplace.
I think I may have found them … in “steelseries.js”
I’ll try making changes there …
After reading again through the wiki file, I see that "normally the scripts in the src folder are not used but for debugging purposes … "
If I want to edit and use the steelseries.js, (to attempt changing background colors and pointer types for example), this file is found in the SRC folder, should I move it up to the main
steelgauges directory when I upload it? - or upload it to the SRC folder online?
Ah, I thought you might come through for me again, Niko!
This very sort of thing occurred to me, but I was not sure where to look for the connections.
I’ll play around with this new information when I get a chance tomorrow!
Have a nice New Years Eve and thanks again for your help!
That is a plain HTML file with the JS embedded so you can see the style coding used. Just use the styles you want in the gauges.js file in the gaugeGlobals section highlighted by Niko.
Ah, Mr. Crossley, your comment simplified things down to where I got things working better than ever.
I guess I am accustomed to things being much harder. Had I understood that ONLY the gauges.js file needed to be altered to change the appearance of the gauges, I would not have spent a day of my time switching away from all the “tween.min.js” type things and putting in the unminimzed versions of most of them from the src folder.
Now if only I can start modifying page structure (html and css) without messing the gauges up …
Thank you for chiming in! You lifted me out of the vortex of imagined complexity.
I did post a detailed step by step instructions on how to add a new dial, e.g an extra temp sensor
and that only involved changing the gauges.js file (and the .html file)
HELP!
For some reason, the steel gauges page I put together last week is no longer working. I have not changed ANY of the files involved in it. The LED banner says the site stopped working hours ago but the PC CONNECT program, wunderground and Weather-Display program are all getting fresh data right now. So I don’t know what is wrong.
LINK:[color=red] http://priscillanhk.com/0_Weather/STEEL_DREAMS/gauges-ss-basic-C.html[/color]
Does the page need to be set up with a time-out somehow so that it does not keep running when I (or anyone else) has it up in a browser?
I re-booted the computer and re-started Weather-Display and went to the set-up page (again) where
the customclientraw.txt file is and clicked “upload now” or “Start now” - something like that. Checked in my FTP program and it uploaded. Now the gauges are working again, HOWEVER, the last time that file had been uploaded was 10:30 this morning and even before then that gauges had stopped working. So they do stop
working at some point even if the customclientraw.txt file is being uploaded. Not sure why.
The data showing up on the gauges and in the wx.html file match what shows on the main screen
of Weather-Display, so I think this is working okay now. I do not know why it was failing most of the day yesterday unless it had “timed out” in some big way beyond just the page LED banner five minutes in some way.