Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: UncleBuck on December 29, 2012, 06:40:08 AM

Title: Steel Gauges
Post by: UncleBuck on December 29, 2012, 06:40:08 AM
Hi all,
I am currently working on a template set for the Steel Gauges  but there are a few things that I am unable to get working without major modification to the files.
I don't really want to go down that path as it would effectively create a new branch of the files you download from http://wiki.sandaysoft.com/a/SteelSeries_Gauges. Instead I would like to get the changes I make "incorporated" into Marks.

To do this would mean that some additional tags would need to be exposed by WC as follows:

Latitude
Longitude
Elevation
Apparent Temp
Humidex
Bearing of the maximum wind gust during a given time frame
Dominant Wind Direction
Total wind run for each of the 8 compass points for a given time frame

Could one of the WC devs please let me know which of the above would be easy for you to implement?

I have got most things working now and you can see it (with all it's bugs) at http://weather.kcsolutions.com.au/gauges-ssT.html

At some point I would like to get a volunteer who doesn't use metric to give it a go on their website and also someone who uses a station with more accuracy than what I can get from my WMR200.

Col.
Title: Re: Steel Gauges
Post by: Randall75 on December 29, 2012, 12:31:25 PM
Hi Uncle Buck
 So far they are looking really good thanks for working on them
 [cheers1]
Title: Re: Steel Gauges
Post by: WCDev on December 29, 2012, 07:57:06 PM
Hi Col,
How are you driving them? Is it Custom CGI, periodic file processing or a combination of both?
Title: Re: Steel Gauges
Post by: UncleBuck on December 29, 2012, 10:11:22 PM
The gauges are all done in Javascript.
They are driven by periodic file processing which at the moment I have set to every 30 seconds.
The gauges script is processing the JSON formatted file called realtimegaugesWC.txt.
The JSON file is being processed by WC and uploaded as part of the Custom Web > Additional Files every 0.2 minutes.
There is also a HTML file that is being processed by WC and uploaded as part of the Custom Web but this is only done every two minutes.

I hope all that made sense as I am by no means a programmer.

Col.
Title: Re: Steel Gauges
Post by: WCDev on December 29, 2012, 11:44:14 PM
OK, thanks Col.

The plan here would be to do all necessary tag additions as a 'oner' during the 1.2 development rather than in dribs and drabs.
 
Give me a day or two to plan the work out then I'll get back to you with suggestions and any further questions.

Quick question for now - by dominant wind direction, do you mean average wind direction?
Title: Re: Steel Gauges
Post by: UncleBuck on December 29, 2012, 11:54:28 PM
I am at a bit of a loss on the Dominant Wind Direction thing as what "I" believe that would be is the direction from which most of the wind came from.

An average direction would be a completely different result as an example.....

If the wind came from the West and South today and it spent most of the day coming from the South, then the dominant wind direction would be South. The average direction in this case would be somewhere around South-West.

I also forgot that the SS Gauges use UTC to determine if the site (data feed) is down, so could you please include that one in the list as well?

I have sent a message to the author of the script to see if my changes can be integrated into his scripts but we will have to wait and see on that front.

Col.
Title: Re: Steel Gauges
Post by: WCDev on December 30, 2012, 12:38:09 PM
Thanks Col, so with regards dominant wind direction, probably the longest wind run vector over the last 24 hours (WeatherCat has a vector for each degree). So this tag would be replaced with a numerical value 0 to 359. Is it 24 hours or today or some other time period?

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: UncleBuck on December 30, 2012, 12:49:02 PM
Stu,
I am not sure that is correct either.... If you have a period of 60 minutes where the wind speed is say 40 km/h from the North but the rest of the day it was 2 km/h varying from  NW to NE, does that make the dominant direction North? It's a hard call and I am not sure what the real answer is. I will post a message on the Cumulus forum so see what they believe is the right answer.

As we use 0900hrs as the start of the day here in Aus, then that is what I would use, but others may have a different opinion on that.

BTW, the request for UTC.... The format they expect in the file is yyyy,m,d,h,m,s

The script author has got back to me and asked what changes I have made etc. to which I have replied but as yet have heard nothing further.

I have still been unable to test the rain part of the gauges here as we haven't had any rain since the 20th Dec. I picked a bad time of year to try and get all this working.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on December 30, 2012, 12:54:29 PM
Just did a search over there and found this....

"...summing the speed-direction vector to get the dominant wind direction..."

Looks like you might have been correct.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on December 30, 2012, 01:04:31 PM
Stu,
Good old wikipedia to the rescue.....

The dominant winds are the trends in direction of wind with the highest speed over a particular point on the Earth's surface.

and as for the Windrose data.....

A wind rose is a graphic tool used by meteorologists to give a succinct view of how wind speed and direction are typically distributed at a particular location. Presented in a polar coordinate grid, the wind rose shows the frequency of winds blowing from particular directions. The length of each spoke around the circle is related to the frequency that the wind blows from a particular direction per unit time. Each concentric circle represents a different frequency, emanating from zero at the center to increasing frequencies at the outer circles. A wind rose plot may contain additional information, in that each spoke is broken down into color-coded bands that show wind speed ranges. Wind roses typically use 8 or 16 cardinal directions, such as north (N), NNE, NE, etc., although they may be subdivided into as many as 32 directions.

The SteelGauges only use the 8 cardinal directions for their data points.

Hope all that helps.
Col.
Title: Re: Steel Gauges
Post by: WCDev on December 30, 2012, 01:36:38 PM
Hi Col,

If we look at my wind run here (attached) we can see if we chose the longest vector the result would be approx 235 degrees which seems reasonable.

WeatherCat has a SINCE9AM time period specifier for the STAT$ tag - this can be used to give data since 09:00 - for example:
Rain since 9 a.m. = STAT$RAIN:TOTAL:SINCE9AM$

Thanks for the info re: the time formatting.

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: UncleBuck on December 30, 2012, 01:49:07 PM
Thanks for that Stu,
I new there was a SINCE9AM$ but wasn't sure if you had to specifically activate it for the ones I requested or if it was available to all tags.

While I have your attention (and before I get to tired), I was wondering why the TEMPUNITS$ tag uses the html ° instead of just using the °

Col.
Title: Re: Steel Gauges
Post by: WCDev on December 30, 2012, 02:09:11 PM
Hi Col,
Yes, SINCE9AM can be used in any STAT$ tag as the time period specifier.

The &# numbers come from a post processing run WeatherCat does when it finishes processing a file - it has a (long) list of replacements it must do to ensure the proper character is displayed.

There were problems with the names not being recognised on some characters in some browsers, hence we use the numbers (but this still throws up the occasional issue)  - see http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references for details.
Title: Re: Steel Gauges
Post by: UncleBuck on December 30, 2012, 02:42:17 PM
Thanks Stu,
I thought that was causing an issue in the gauges where it was still showing the HTML rather than the symbol but it turned out there is a bug in the original script.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on December 30, 2012, 11:00:48 PM
Just an update regarding the integration of my changes into the authors original script.

Reply from Mark:
Quote
I think I'll let the solution 'mature' a little before considering including it in the base release - when all the required tags are supported for instance.

Col.
Title: Re: Steel Gauges
Post by: WCDev on December 31, 2012, 03:48:34 AM
Sounds sensible. OK, I'll get on with the additional tags - should be in the first 1.2 development build.

Title: Re: Steel Gauges
Post by: WCDev on January 06, 2013, 01:39:55 PM
Hi Col,
I've just posted a development build of version 1.1.3 which I believe contains everything you need:
http://athena.trixology.com/index.php?topic=604.0 (http://athena.trixology.com/index.php?topic=604.0)

Give it a go and let me know how you get on.

Title: Re: Steel Gauges
Post by: UncleBuck on January 09, 2013, 12:17:28 AM
Ok, time for an update on where things are at with this....

Stu,
Thanks for all your work on this as it is greatly appreciated. All the exposed tags appear to be working as expected and the page is updating nicely. I still haven't been able to test the rain side of things as we haven't had any rain here since 20th Dec and as you may have seen in the news lately there are in fact major bushfires up and down the East coast of Australia so I don't expect to be able to test this part for a while yet. The BoM have stated that we are unlikely to get any relief until some time in late February.

Now for the bits that aren't yet working (please don't kill me for this)....
In the original request for the tags I inadvertently missed out some important points, however, in my defence this was probably due to the fact that I was still trying to understand the format of the Realtime file that the gauges require.

The Apparent Temp (AT) needs to also show the following:
The max and min AT for a given time period (e.g. SINCE9AM etc.).
The time that the max and min occurred in that time period.

The Wind Gust also requires the following:
The bearing of the max wind gust in a given time period. For example, if you show the max wind gust SINCE9AM, at what bearing was that gust.

Dominant Wind direction:
This appears to be using data from 0000 to 2359 and you cannot select a specific time period, is that correct?

Windrose data:
This appears to be using data from 0000 to 2359 and you cannot select a specific time period, is that correct?

I was unable to see a tag for UTC in the live view page at http://live.trixology.com/custom/. Was this implemented and I can't find it, or was it an oversight or have no just not got to it yet?

In regards to rain, this is a bit of a weird one.
They also use a tag for max total rain in one hour for a given time period and a tag for the time of that event. This would show up as something like 14mm at 10:00 am. As far as I can work out for this one, WC would need to total the amount of rain for each hour and then report the time as a single hour time stamp.
For example:
If there was 14mm of rain between 0900 and 1000 and there was 12mm of rain between 1000 and 1100 then the tags they use are (i believe) as follows,
"hourlyrainTH": this would display 14
"ThourlyrainTH": and this would display 1000

Additional tags that are in the realtime file:
The version and build number of the application are in two separate tags "version" and "build".
There is a tag for the Beaufort scale called "Tbeaufort" which is a text field stating the description of the Beaufort scale number (e.g. 4 = "Moderate breeze"). What I can't seem to work out on this at the moment is whether it actually pertains to the current windspeed or gust or average.
There is also a "SensorContactLost" tag, which I believe contains either a 0 or 1 but I am still unclear on this.

I feel like I am giving you way to much to do on this and I don't want it to take time away from more important updates and fixes but I known there are several people out there who would like to get this up and running and I believe it may be a way to expand the WC user base even further.

Col.
Title: Re: Steel Gauges
Post by: WCDev on January 09, 2013, 06:19:19 PM
Thanks for the update Col, I hope the temperatures you're experiencing there at the moment aren't being too much of a problem for you.

The wind rose data and dominant direction is for today (since local midnight), if you want it from 9am, let me know.

Sorry, I missed the UTC time, I'll get that into the next release and see what I can do about the other stuff.

If you find out more, let me know.

Cheers,
Stu.
 
Title: Re: Steel Gauges
Post by: UncleBuck on January 09, 2013, 09:08:23 PM
The wind rose data and dominant direction is for today (since local midnight), if you want it from 9am, let me know.
Stu,
I do all readings SINCE9AM as that is how Australia does it's weather readings but I suspect there are a lot of folk out there that do not do it this way and so it would need to be an option for all the tags rather than a default.

Last night I changed the WINDROSE8$ over to WINDROSE45$ just to see if it could handle it, and guess what, it does. So the Steel Gauge Windrose can be used with either of those tags. One thing I did notice last night using the WINDROSE8$ was the the data was showing the longest wind run in a Southerly direction but the DOMWDTEXT$ was still say "W". I am still checking this part out to see if it was just a once off.

Col.
Title: Re: Steel Gauges
Post by: WCDev on January 10, 2013, 12:49:56 PM
Hi Col,
Yes, as it is it's certainly possible that the dominant wind would be different to the appearance of the wind rose, as it's just the longest vector (a sudden gust for example could do this).

I think what needs to happen is the dominant wind direction needs to look at sectors rather than 1 degree resoultion - 16 sectors I suspect would work well. I'll have a play with this.
Title: Re: Steel Gauges
Post by: UncleBuck on January 15, 2013, 05:12:51 AM
BTW, the request for UTC.... The format they expect in the file is yyyy,m,d,h,m,s
Stu,
I need to do a correction on this bit.... I was wrong about the UTC date format and it should be in the same format as the local date. The script does the reformatting as required.


Col.
Title: Re: Steel Gauges
Post by: WCDev on January 15, 2013, 09:46:37 AM
No worries Col, will the format you posted previously work OK?
Title: Re: Steel Gauges
Post by: UncleBuck on January 15, 2013, 11:33:53 AM
If you mean the yyyy,m,d,h,m,s then I don't think it will. Putting it in the same format that you have for the de$ t24s$ tags (but obviously UTC time) it should work fine.

I am currently using those tags for the timeUTC and it hasn't produced any errors.


To sum up, these are the missing tags we would need to have available before the author will consider including the Weather Cat changes into the base code:
<#timeUTC>   The current UTC date/time rather than local date/time
<#SensorContactLost>   1 if the station has lost contact with its remote sensors 0 if contact has been established
<#apptempTH>   Today's high apparent temperature
<#TapptempTH>   Time of today's high apparent temperature
<#apptempTL>   Today's low apparent temperature
<#TapptempTL>   Time of today's low apparent temperature
<#bearingTM>   The wind bearing at the time of today's high gust (i.e. STAT$WINDGUST:MAX:SINCE9AM$) in degrees
<#hourlyrainTH>   Today's highest hourly rain
<#ThourlyrainTH>   Time of today's highest hourly rain

There are a lot of other tags that Cumulus has available that can be found at http://wiki.sandaysoft.com/a/Webtags but the above ones that the author wants to see working first. The <#SensorContactLost> tag would be nice to have, it is not that important.

Col.
Title: Re: Steel Gauges
Post by: WCDev on January 19, 2013, 10:46:45 AM
Thanks Col,
I'll get some more into the next release. The max hourly rain and time can be produced with:
STAT$RAIN:MAX:TODAY$ and STAT$RAIN:MAX:TODAY:TIME$

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: UncleBuck on January 19, 2013, 08:06:13 PM
Thanks Stu,
Not sure how I managed to miss those two webtags.

I have now modified the display of the SS-Gauges to include a Windrun odometer. Just need to figure out how to get it to display in the right place when viewing them on a smartphone or tablet.

Col.
Title: Re: Steel Gauges
Post by: wurzelmac on January 20, 2013, 03:06:45 PM
Hi Col.
Is it planned to give us a "ready to use" template that we can use for our own websites? Would be great! They are looking really cool.
Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: UncleBuck on January 20, 2013, 07:55:13 PM
Reinhard,
As soon as the last few webtags are implemented, I will put together templates and instructions on what needs to be done to get the gauges going on your own site.

I would like someone to test the gauges first on their site but it really needs to be someone with a solar sensor and preferably some who is getting rain.
We haven't had enough rain here to register in the rain gauge sine 20th Dec so haven't yet been able to confirm those are working correctly yet.

Col.
Title: Re: Steel Gauges
Post by: Steve on January 20, 2013, 08:11:16 PM
Well, if you are looking for template beta testers, I'm certainly available. I'm retired and enjoy playing with new ideas for my web site. I've been Edouard's go to tester when he's tried a new AppleScript. I'd asked early on in WeatherCat development about being able to implement the Steel Series gauges, so I'm really pleased to see you getting so close!

Davis VP2 with Solar and UV, as well as soil station. I can't promise rain any time soon, but we should be getting more snow, which melts in my home made collector heater, so I'll have precipitation. ;)

Steve
Title: Re: Steel Gauges
Post by: wurzelmac on January 20, 2013, 08:18:29 PM
In a few days I will get a new Davis with solar/UV sensor, so maybe I am your man, too. On the other side it may be a bit difficult to get rain - we do expect an amount of snow the next 2 days and temperatures far below cero. Hopefully some 30 cm...  :)

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: UncleBuck on January 22, 2013, 04:51:14 AM
Stu,
Please don't hate me....... [rainyluck]

I dug deeper into the code and found that the UTC time MUST be in the format yyyy,m,d,h,m,s

I was of the understanding that it converted the local time to UTC in the javascript but this is not the case.

Col.
Title: Re: Steel Gauges
Post by: WCDev on January 22, 2013, 06:26:39 PM
Not a problem Col - thanks for the update.
Title: Re: Steel Gauges
Post by: Steve on January 31, 2013, 11:24:54 PM
Just curious if the Steel Gauge templates are waiting for an update from Mark, the developer, or on tags being added to the next development release? I'd love to get started testing these out for you.  [bounce]

Steve
Title: Re: Steel Gauges
Post by: UncleBuck on February 01, 2013, 07:39:58 AM
Steve,
I am just waiting for the changes to WC before I adjust the templates to suit and then release them. Mark has done more updates to the SS Gauges but these are also incorporated into the changes I made that I will give back to him once the additional tags are exposed in WC.

Col.
Title: Re: Steel Gauges
Post by: Steve on February 01, 2013, 03:48:41 PM
Cool, thanks Col! I posted a partial image of your gauges on Facebook yesterday when I was doing an update of plans for the future, and got a couple thumbs up for it.  [tup]

Thanks,
Steve
Title: Re: Steel Gauges
Post by: WCDev on February 02, 2013, 01:59:53 PM
I think I've got them all in 1.1.4 - let me know how you get on Col.

http://athena.trixology.com/index.php?topic=643.0
Title: Re: Steel Gauges
Post by: UncleBuck on February 04, 2013, 03:39:06 AM
I have put together a page in the Wiki with details of the webtags used with the SS-Gauges.
http://wiki.trixology.com/index.php/WeatherCat_Webtags_with_Cumulus_Equivalents
When implementing the gauges, this table can be used to create your realtime template file.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on February 04, 2013, 03:41:22 AM
Stu,
Could you please run your keen eyes over the wiki page to ensure I have got the descriptions of the tags correct.
The descriptions come from Cumulus and that is what the script expects to see in the realtime file.

Col.
Title: Re: Steel Gauges
Post by: WCDev on February 04, 2013, 08:36:03 AM
Will do - should get it done sometime in the next 24 hours. Thanks Col.
Title: Re: Steel Gauges
Post by: WCDev on February 04, 2013, 06:35:49 PM
Looks good Col - the page has been updated with the tags to get the hi/lo AT and times.

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: UncleBuck on February 04, 2013, 10:56:40 PM
Thanks Stu,
Once the change to the UTC date has been made and a few further tests have been done, I will approach Mark and see if he will incorporate my changes into the script.
Title: Re: Steel Gauges
Post by: saratogaWX on February 06, 2013, 04:46:11 AM
Since I helped Mark with getting the Steel Series gauges for VWS use, I've been following this thread with some interest :)

I've let Mark know that a WeatherCat Steel Series Gauges is soon to arrive.. nice work Stu and Uncle Buck!

Also, I've just updated the Saratoga template set (05-Feb-2013) to allow single-page HTML5/UTF-8 output and sample template page to display the Steel Series Gauges.  The updates are available on the updates tool page (http://saratoga-weather.org/wxtemplates/updates.php).

See the sample at http://saratoga-weather.org/wxtemplates/Test/wxssgauges.php

Best regards,
Ken
Title: Re: Steel Gauges
Post by: UncleBuck on February 06, 2013, 04:57:43 AM
Thanks Ken.
For the WeatherCat users, I will also knock up a basic page similar to that which comes with the SS-Gauges zip file. That way the not so tech savvy people will be able to make one or two VERY small changes and just plonk it in the folder to be uploaded to their site and presto.

Once the final testing has been done, I am going to put instructions in the Wiki so anyone can do it.

Big thanks to you for your work on Saratoga templates as well.

Col.
Title: Re: Steel Gauges
Post by: saratogaWX on February 06, 2013, 05:40:05 AM
Thanks for the kind words about the template set :)

I've added your site to the list too...

I found (doing the VWS version) that additions to the gauges.js script to support a new weather software are fairly straightforward in the script .. don't forget to provide him with the list of graphs to use with WeatherCat for the popups when a mouseover is done on a gauge.  That, and the WeatherCat template are likely all he needs to incorporate WeatherCat as a supported software in the set.

Best regards,
Ken
Title: Re: Steel Gauges
Post by: Steve on February 06, 2013, 04:25:29 PM
Col,

As I understand your intentions, you plan to have a simple template to run the Steel Series gauges as a standalone template, correct. It won't require Ken's Saratoga templates? That'll make it easier for more folks to use. While I like Ken's template and the flexibility it has, and had it running for some time, it is a bit difficult for the beginner to set up.

Thanks for your efforts on these!
Steve
Title: Re: Steel Gauges
Post by: UncleBuck on February 06, 2013, 09:59:01 PM
Steve,
The SS-Gauges comes with a basic htm page that will work straight away when the realtimegaugesWC.txt file is used and just one or two VERY small changes are made to the gauges.js file.

You can see the one that comes with the gauges at http://weather.kcsolutions.com.au/gauges/gauges-ss-basic.htm

Col.
Title: Re: Steel Gauges
Post by: Steve on February 07, 2013, 03:05:20 AM
Sounds great! Thanks Col.
Title: Re: Steel Gauges
Post by: mcrossley on February 09, 2013, 08:47:05 PM
Hi Guys,

Ken put me on to the work you are doing to get WeatherCat working with the SteelSeries gauges.

I am readying release 2.2.0 of the gauges and would like to include WeatherCat in that release.

I have made all the code changes that I think are required for WeatherCat, but obviously I will need your template JSON file if you want it including in the package.

I am making a few changes to the code and HTML/CSS for version 2.2 that you will maybe want to consider if you are going to produce a customised version of gauges-ss-basic.htm. The changes will make gauge pages much more flexible, allowing CSS (or HTML) control of the gauge sizes rather than script code. So you can easily have different sized of the gauges on a page, or resize for mobile devices say.

I am happy to make a pre-release test version of 2.2 available to the developers.

Cheers
Mark
Title: Re: Steel Gauges
Post by: UncleBuck on February 09, 2013, 10:27:41 PM
Mark,
There were a few little changes I had to make to your gauges.js file to get WeatherCat to work properly with the gauges and I guess you would have coded most of those already.
I have attached the template JSON file that I have been using with the gauges to this posting.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on February 09, 2013, 10:34:10 PM
Mark,
I have attached a file showing the differences between your version 2.1.1 and the one with my modifications. Please let me know if you have any questions regarding the changes I made.

Col.
Title: Re: Steel Gauges
Post by: WCDev on February 09, 2013, 10:59:00 PM
Hi Mark, Col.
We're going to need people are running version 1.1.4 of WeatherCat to work correctly with the gauges - I'm estimating this will be publicly released in the next two weeks. Would it be possible to have the script pick up the WeatherCat version and show an error message if it's less than 1.1.4?

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: mcrossley on February 09, 2013, 11:18:47 PM
I have attached the template JSON file that I have been using with the gauges to this posting.
I have put this into the zip now, thanks.

Mark,
I have attached a file showing the differences between your version 2.1.1 and the one with my modifications. Please let me know if you have any questions regarding the changes I made.

Col.
Thanks Col. Amazingly I had caught all of those changes, though I have restructured the code a little here and there. I'll ignore the 'style' changes  ;)

Hi Mark, Col.
We're going to need people are running version 1.1.4 of WeatherCat to work correctly with the gauges - I'm estimating this will be publicly released in the next two weeks. Would it be possible to have the script pick up the WeatherCat version and show an error message if it's less than 1.1.4?
Yep, I can put that in. Will the version string be exactly "1.1.4"? I'll have to spit it and handle as numerics in order to do a >= for future versions.


One other thing, are there any specific instructions for WeatherCat users that need to go into the ReadMe.txt and Wiki, or just a pointer to a page in your Wiki perhaps?
Title: Re: Steel Gauges
Post by: UncleBuck on February 10, 2013, 12:11:41 AM
I am happy to put together a page for the Wiki that covers the integration/setup of WC and SS-Gauges.

Col.
Title: Re: Steel Gauges
Post by: WCDev on February 10, 2013, 09:13:09 AM
Thanks Col.

Mark, the build info string is of the format:
Code: [Select]
VM.mm, Build Xwhere'M' is the major version and 'mm' is the minor. 'X' is an integer which is incremented every time it's built.
For example:
V1.14, Build 206

If you extract the string between 'V' and ',' and convert it to a floating point number , that's the version number that can be compared (obviously you can multiply it by 100 to get an integer if necessary).

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: UncleBuck on February 10, 2013, 12:24:26 PM
Mark,
There was one odd thing in the gauges.js file that just would not work for me....

In your original script you had
Quote
data.tempunit.replace('&deg;', '?');
to which I added the line
Quote
data.tempunit.replace('&#176;', '?');
to cater for WeatherCat

But it just flat out refused to replace the &#176;
In the end, the only way I could get it to work was to use the line
Quote
data.tempunit = data.tempunit.replace('&#176;', '?');
Hence why those couple of lines are different in yours and my script.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on February 10, 2013, 12:37:16 PM
Have started work on the Wiki page at http://wiki.trixology.com/index.php/Steel_Series_Gauges so it is up to you guys if you still want to put any instructions in the text file or just point people to the Wiki page.

Col.
Title: Re: Steel Gauges
Post by: mcrossley on February 10, 2013, 02:28:24 PM
Mark,
There was one odd thing in the gauges.js file that just would not work for me....

In your original script you had
Quote
data.tempunit.replace('&deg;', '?');
to which I added the line
Quote
data.tempunit.replace('&#176;', '?');
to cater for WeatherCat

But it just flat out refused to replace the &#176;
In the end, the only way I could get it to work was to use the line
Quote
data.tempunit = data.tempunit.replace('&#176;', '?');
Hence why those couple of lines are different in yours and my script.

Col.
That is one of the bits I have changed, the existing code was never called because the gauges ended up requiring a later build of Cumulus than the one that included the degree symbol in the unit string anyway.
Title: Re: Steel Gauges
Post by: mcrossley on February 15, 2013, 02:52:17 PM
Version 2.2.0 of the SteelSeries gauges is now available, and includes support for WeatherCat :)

The headline changes are:

Want to make a donation to the Weather Gauges? Please click here. (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R3Y5CFQPA9J5W)

Download it from here: http://wiki.sandaysoft.com/a/SteelSeries_Gauges


The image below shows the old and new style wind rose, I use 8 points with my Fine Offset but the code should work with 16 or any number!
Title: Re: Steel Gauges
Post by: jace on February 15, 2013, 03:58:36 PM
Looks very interesting, I'm a bit unsure of which files go where at the moment, but hopefully will get something up and running soon  [cheers1]

John
Title: Re: Steel Gauges
Post by: Steve on February 15, 2013, 06:22:54 PM
Thanks guys! I have a start at it here. All I've done so far is upload the files and point to my data.

http://www.avon-weather.com/steel/gauges-ss-basic.htm

Thanks so much for your efforts Col, Ken, and Mark!
Steve
Title: Re: Steel Gauges
Post by: wurzelmac on February 15, 2013, 08:14:11 PM
No success here on my side: I always get the reminder that the SteelSeries requires WeatherCat V 1.14 or later. No that I am using the german language settings my WeatherCat shows V 1,14 ... the point/comma issue returns.  :'( Maybe there is a chance to tell the gauges.js that it should accept 1.14 and 1,14.
Aside this one it would be cool if someone can explain which files should point to which data - thanks in advance to all SteelSeries workers!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jace on February 15, 2013, 08:22:18 PM

Aside this one it would be cool if someone can explain which files should point to which data - thanks in advance to all SteelSeries workers!
Cheers, Reinhard

That's the problem I'm having as well, gettin Http request failed so I've got something wrong somewhere.

John
Title: Re: Steel Gauges
Post by: Steve on February 15, 2013, 08:43:22 PM
I don't know if it is right, but here's what I did:

I downloaded the SSG folder
Renamed it: steel (I have mine set as a separate folder within my root folder)
Opened the gauges.js (in the scripts folder) file in Text Wrangler
- Changed line 18 to 3 for WeatherCat
- Changed line 19 to '/'
- Changed line 21 to 10
- Changed line 43 to '/realtimegaugesWC.txt'
- Saved gauges.js
Uploaded entire "steel" folder to the root of my weather directory on my FTP site (for me that results in avon-weather.com/steel)

Locally, I copied realtimegaugesWC.txt to my WeatherCat Custom Web Folder.
Now normally, it would only get processed every five minutes, or whatever you have your site set to upload. So I needed to add an additional file to be processed.

Open WeatherCat Preferences --> Online --> Custom Web --> Additional Files
Click Add
- Click Set Path
- Find your WeatherCat Custom Web Templates folder, and point to realtimegaugesWC.txt
- Leave Enable checked, and uncheck FTP, set time for .10 minute (every six seconds)
- Click OK
This sets the template to be processed every six seconds and moved to the upload file. Now you have to upload it.

Click Add again
- Click Set Path
- Find your WeatherCat Custom Web folder, and point to realtimegaugesWC.txt
- Leave Enabled Checked, and leave FTP checked, set time for .17 minutes (every ten seconds)*
- Click OK

*I set mine to every 10 seconds, because I get errors from my provided if I upload more than ten times a minute

Now, you should have data flowing by going to www.yourpage.com/steel/gauges-ss-basic.html If not, we'll figure out the next step.
Steve
Title: Re: Steel Gauges
Post by: wurzelmac on February 15, 2013, 09:09:29 PM
Hi Steve,
thanks for your support - I will give it a try tomorrow!

Cheers,
Reinhard

By the way: what do you mean with Line 20 to 10? Line 20 wants to know the path to my "old" gauges page, but I have never had an old gauges page?
Title: Re: Steel Gauges
Post by: jace on February 15, 2013, 09:35:10 PM
"tis weird I obviously had done sometime wrong, so deleted it all in a fit of temper, then re-installed it all with my settings again, and it's working.....

Going to play around with settings and integrate it into my home page page this weekend........... I hope

Thanks to  Col, Ken, and Mark and Steve !  [cheers1]

JC

Title: Re: Steel Gauges
Post by: Steve on February 15, 2013, 10:40:09 PM

By the way: what do you mean with Line 20 to 10? Line 20 wants to know the path to my "old" gauges page, but I have never had an old gauges page?

What do you mean, what do I mean? ;) Clear as mud; I typed the wrong number...  [banghead] Line 21 (I'll edit the original)

Use whatever number you want in line 21 for your delay between updates. Just change the timing accordingly in the WeatherCat Additional Uploads entries, too. I chose short times for the two additional files so that the 10 second web page update would be new most cycles, with the occasional overlap. (I could do the math, but my head would hut, and it's not that important.)

Steve
Title: Re: Steel Gauges
Post by: Randall75 on February 15, 2013, 11:00:54 PM
Hi Steve
 Ok help a dummy out here I did what you said to do but can't get it all to work see the attached this is all I get please help if possible
thanks
 [cheers1]
Title: Re: Steel Gauges
Post by: mcrossley on February 15, 2013, 11:06:10 PM
No success here on my side: I always get the reminder that the SteelSeries requires WeatherCat V 1.14 or later. No that I am using the german language settings my WeatherCat shows V 1,14 ... the point/comma issue returns.  :'( Maybe there is a chance to tell the gauges.js that it should accept 1.14 and 1,14.
Aside this one it would be cool if someone can explain which files should point to which data - thanks in advance to all SteelSeries workers!

Cheers,
Reinhard
Bah! I hadn't realised that the version string was locale specific - normally it is set in the program itself.

To fix that problem, in gauges.js at line 941, change:

                    if (+data.version < 1.14) {
to
                    if (+extractDecimal(data.version) < 1.14) {


that *should* work
Title: Re: Steel Gauges
Post by: WCDev on February 15, 2013, 11:12:34 PM
Nice work folks  [tup]

Reinhard, there'll be another release of 1.14 in the morning - I'll change BD$ to always output a full stop as the separator and add a BDL$ that will use the localised separator - that should solve the problem for you.

Steve, there's no need to add the file twice, just tick FTP on the first additional file, it'll be processed then FTP'd.

Cheers,
Stu.

Title: Re: Steel Gauges
Post by: wurzelmac on February 16, 2013, 06:47:21 AM
Thanks Mark,
I will give it a try today evening!

And thanks Steve,
for continuing help!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jace on February 16, 2013, 01:57:16 PM
can't get it all to work see the attached this is all I get please help if possible

Hi Randall

same problem I was getting. Got fed up and tried this:

Download the folder, (I did not rename it)
Open the file gauges.js (in the scripts folder using a text editor Text Wranger or page spinner etc.)

Line 18 (weather program) change to 3 (for weather cat)
Line 10 (ImgPathUrl) change to '/',
Line 21 (counter) changed from 60 to 10 ( optional it's just the update change period)
Line 43 should read '/RealTimegaugesWC.txt'

Save the file.

Uploaded using FTP the folders CSS Images and Scripts to the root on my web server, for me this is :

yoxford-weather.co.uk/Public-html/


In my weatherCat web templates folder for my web site in my Mac I put copies of the following files:

realtimegaugesWC.txt
gauges-ss-basic-htm

This worked for me, afterwards started looking at changing the update time like Steve did so mine updates every 30 secs now.

Hope this helps.

JC
Title: Re: Steel Gauges
Post by: jace on February 16, 2013, 02:59:46 PM
Going to have a play later on to remove the UV and solar radiation gauges as I don't have the sensors   [banghead]

I have noticed though and perhaps a Steel gauges guru can help here.

At regular intervals the gauges stop updating, the forecast ticker tape message reads that the page auto-update limit has been reached, and to click the status led. This starts the gauges again but the wind rose and miles run counter do not update so the wind run reads short for the day.

JC
Title: Re: Steel Gauges
Post by: wurzelmac on February 16, 2013, 05:57:52 PM
Stu, Mark, Steve, Col:
SUCCESS!  ;D
Is there a way to change the background (color to image) of the site?
Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jace on February 16, 2013, 07:48:30 PM
Removed the un-used gauges no problem, want to ply about with gauge sizes next.

The page auto-update and wind rose not showing the current wind run may be a Firefox browser problem. loaded the gauges page in Chrome and the wind run total is the same as WeatherCat's gauge total for the day. [tup]



Title: Re: Steel Gauges
Post by: Randall75 on February 16, 2013, 10:30:29 PM
Hi Jace
 Thanks for trying to help did what you said but still I only get the buttoms no gauges
 [cheers1]
Title: Re: Steel Gauges
Post by: Randall75 on February 16, 2013, 10:45:49 PM
Hi Weathercat Fans


 SinceI can't get the gauges to work on my web site is there a way to get them to work on my desk top
Thanks
 [cheers1]
Title: Re: Steel Gauges
Post by: UncleBuck on February 17, 2013, 05:40:32 AM
Randall,
Can you supply me with a link to where you have them on your site? I will take a look and see if I can spot the problem.

Col.
Title: Re: Steel Gauges
Post by: wurzelmac on February 17, 2013, 10:16:37 AM
Just want to report that everything fine here - found how to change the background to fit to my site. Looks very  8) !
Here you can see the results: http://wetter.unterwurzacher.at/steelgauges/gauges-ss-basic.htm

Thanks again to all brave helpers!

 [cheers1]
Reinhard
Title: Re: Steel Gauges
Post by: UncleBuck on February 17, 2013, 11:16:21 AM
Love the Steel background you are using. Glad that everything is working ok.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on February 17, 2013, 12:15:03 PM
I have updated the Wiki page at http://wiki.trixology.com/index.php/Steel_Series_Gauges but I would like someone to check it out to make sure I haven't missed a step somewhere.

There are two option paths you could follow with these instructions:

Option 1) The gauges will be located in the root level of your website (i.e. http://www.yourpage.com/gauges-ss-basic.htm)
Option 2) The gauges will be located in a subfolder of the root level of your website (i.e. http://www.yourpage.com/steel/gauges-ss-basic.htm)

Please let me know if there is anything more that needs to be added (or changed) in these instructions.

Col.
Title: Re: Steel Gauges
Post by: Randall75 on February 17, 2013, 01:38:55 PM
Hi Col
 Thanks for the help here is the http://randysweatheronthehill-usa.com/gauges-ss/gauges-ss-basic.htm (http://weatheronthehill.6te.net/gauges-ss/gauges-ss-basic.htm)
I have tried both of your options and get about the same thing
thanks
 [cheers1]
Title: Re: Steel Gauges
Post by: wurzelmac on February 17, 2013, 02:04:25 PM
Hi Col,
maybe it should be better explained that before "Open WeatherCat Preferences --> Online --> Custom Web --> Additional Files" someone should make a copy of "realtimegaugesWC.txt" and store it somewhere where it can be found easily. Because this is the only file that is needed on the local computer to be processed - all other files within the "steels folder" are ftp'd to the server and not needed on the local computer any more. For me I did store it in the Custom Web folder.

Just a thought.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Randall75 on February 17, 2013, 07:03:00 PM
Hi Weathercat Fans
 If get this correctly the only file that WC needs to process is realtimegaugesWC.txt and if so why can't I take it after WC processes it and put it in the gauges-ss folder on my desk top and get it to work there until 5 switch web hosting company would like to just see them work on my computer
thanks
Title: Re: Steel Gauges
Post by: WxOwl on February 17, 2013, 09:04:12 PM
Hi Col and all,

I have the steel gauges working on my web site. Followed the wiki instructions okay, but had to make a couple of changes due to having the custom web additional files already being used for my Saratoga format site. WeatherCat uploads all additional files to the FTP address specified in the custom web setup - in my case another existing subdirectory.    The additional ss files coexist without any problem.     
Line 19 was changed to:   '/subdirectory/',
and line 43 changed to :  '/subdirectory/reltimegaugesWC.txt',

The wiki final paragraph under "Final steps . . . " implies the additional files will ALWAYS be in the root directory when in fact they will be in the folder specified by the Custom Web FTP setup. 
       [ www.w6dsp.org/steel/gauges-ss-basic.htm]

Thanks to Col and all those who brought us this great addition.   [tup]

Now if I can just figure out how Reinhard got that great looking background !

Regards,
David
Title: Re: Steel Gauges
Post by: nowait on February 17, 2013, 09:20:43 PM
I'd love to see the page you set up.  I am also running the Saratoga template.  What is the url to your site?

Thanks!

Nowait
Title: Re: Steel Gauges
Post by: UncleBuck on February 17, 2013, 10:04:17 PM
Hi Col
 Thanks for the help here is the http://weatheronthehill.6te.net/gauges-ss/gauges-ss-basic.htm (http://weatheronthehill.6te.net/gauges-ss/gauges-ss-basic.htm)
I have tried both of your options and get about the same thing
thanks
 [cheers1]
Randall,
The error that is causing the problem is that your page cannot load the gauges.js file. It is looking for the file at http://weatheronthehill.6te.net/gauges-ss/scripts/gauges.js but for some reason it does not appear to be there. Are you able to FTP into your site and confirm that the file exists and is in that location?

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on February 17, 2013, 10:07:03 PM
Hi Col,
maybe it should be better explained that before "Open WeatherCat Preferences --> Online --> Custom Web --> Additional Files" someone should make a copy of "realtimegaugesWC.txt" and store it somewhere where it can be found easily. Because this is the only file that is needed on the local computer to be processed - all other files within the "steels folder" are ftp'd to the server and not needed on the local computer any more. For me I did store it in the Custom Web folder.

Just a thought.

Cheers,
Reinhard
Actually that is a good point. You could leave the file where it is in the folder structure or you could move it to a location that makes more sense to you. I will change the Wiki page to reflect your suggestion.

Col.
Title: Re: Steel Gauges
Post by: wurzelmac on February 17, 2013, 10:08:42 PM
Now if I can just figure out how Reinhard got that great looking background !

Hello David,
for adding an individual background image you have to edit the code in the gauges-ss.css:
Code: [Select]
body {
font-family: Verdana, Helvetica, sans-serif;
font-size: 10pt;
text-align: left;
        background-image: url(/regenmetal.jpg);
}
I added the 4th line, and pointed the css to the place where the desired background pattern is stored on your web directory.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: UncleBuck on February 17, 2013, 10:28:53 PM
Now if I can just figure out how Reinhard got that great looking background !

Hello David,
for adding an individual background image you have to edit the code in the gauges-ss.css:
Code: [Select]
body {
font-family: Verdana, Helvetica, sans-serif;
font-size: 10pt;
text-align: left;
        background-image: url(/regenmetal.jpg);
}
I added the 4th line, and pointed the css to the place where the desired background pattern is stored on your web directory.

Cheers,
Reinhard

Thanks Reinhard. Have now added these instructions to the Wiki page as well.

Col.
Title: Re: Steel Gauges
Post by: Randall75 on February 18, 2013, 01:01:06 AM
Hi col
Yes everything is being uploaded there I have tried everything here is a snap of the root directory

Title: Re: Steel Gauges
Post by: UncleBuck on February 18, 2013, 01:06:39 AM
What is in your gauges-ss folder?
That is where the htm page is being run from so there should be all the gauges files in there. Not sure why you have all the folders for the gauges sitting at the root level of your site when they should all be in the folder gauges-ss.

Col.
Title: Re: Steel Gauges
Post by: UncleBuck on February 18, 2013, 01:13:02 AM
Having another look at the image, it shows a lot of files there that should be there. (All the .js files for example).

It is as if you uploaded the folder but it didn't retain the folder structure.

Col.
Title: Re: Steel Gauges
Post by: Randall75 on February 18, 2013, 01:57:02 AM
Hi Col
 I first tried what steve said uploaded the whole folder and changed the name to steel
Then I tired what Jace said and uploaded a folder with everything in it that is download  and upzipped
Then I tried uploading all filies that were in the gauges-ss seperately I know WC in processing the realtimegaugesWC.text file and I checked it out on my web site with the correct reading from my WC gauges so the files you were seeing were the ones I uploaded seperately it my be the cheap web site I'm using looking change web hosting soon
Thanks
 [cheers1]

Title: Re: Steel Gauges
Post by: UncleBuck on February 18, 2013, 03:56:02 AM
Randall,
It wouldn't be anything to do with your hosting provider as ss-gauges is really basic and should be able to run anywhere.

What I would do (if I were you) is remove all the files in the root level that are not required. The ones I can see in the image that you can delete are:
The four RGraph files.
The gauges-ss folder and any files in it.
The steel folder and any files in it.
The RealTimegaugesWC.txt file.

I would need to see what was in the scripts folder before I would say you can remove it.
Same goes for the css folder and the images folder.

What you should then do is upload your steel folder again to the root level but make sure the folder structure stays intact.
You should end up with the root folder having a sub-directory called steel and all the gauges folders and files underneath it.

Let me know when you have done that and I will check it out for you again.

Col.


Title: Re: Steel Gauges
Post by: saratogaWX on February 18, 2013, 04:17:52 AM
The problem lies in the scripts/gauges.js
Code: [Select]
            realTimeURL_WC     : '/subdirectory/gauges-ss/realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***
which specifies the wrong place for the realtimegaugesWC.txt file.  It should read
Code: [Select]
            realTimeURL_WC     : '/gauges-ss/realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***
and then should work properly as the data is in http://weatheronthehill.6te.net/gauges-ss/realtimegaugesWC.txt

It would also work in this case with
Code: [Select]
            realTimeURL_WC     : './realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***
as the spec, since the page itself is coming from the same directory (./gauges-ss/) as the realtimegaugesWC.txt file.

Best regards,
Ken
Title: Re: Steel Gauges
Post by: UncleBuck on February 18, 2013, 04:25:37 AM
Totally agree with what you are saying Ken.
I was just trying to get the mess cleaned up so that there were not files all over the place where they are not required.

Col.
Title: Re: Steel Gauges
Post by: wurzelmac on February 18, 2013, 06:45:03 AM
David,
just google for "brushed metal texture" - maybe you can find a texture that fits your needs!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jace on February 18, 2013, 12:51:29 PM
Only one minor problem I've got, don't know if anybody else has seen this at all.

All the gauges except the wind rose update regularly and are accurate with the 'Cat. However the wind rose does not seem to update and the total wind run counter under reads.

I thought initially this was a browser problem as I had it in Firefox but not when I first opened the gauges page in Chrome, alas next day it was the same there too.

Wind wise it has been extremely calm for the last 3 days. probably only had a total wind run for about 20 miles.

My gauges.js settings are:

weatherProgram    : 3,                     
imgPathURL        : '/',             
oldGauges         : 'gauges.htm',           
counter           : 10,                   
gaugeMobileScaling: 0.85,                 
graphUpdateTime   : 15,                   
stationTimeout    : 3,                     
pageUpdateLimit   : 0,       (changed the page update limit from 20 minutes to 0, after 20 minutes the page stopped updating and when I reset using the remote sensor button the rose would not update at all, now the page is updating constantly I get some wind rose data.)             

Cheers

JC
 
Title: Re: Steel Gauges
Post by: WxOwl on February 18, 2013, 04:17:01 PM
Thanks Reinhard for the how-to instructions and the suggestions on sources for backgrounds. I've found several  textures that I am now playing with.

Nowait, if you were looking for my Saratoga template site it is:  http://www.weather.w6dsp.org
and the gauges are at: http://www.w6dsp.org/steel/gauges-ss-basic.htm

Regards,
David
Title: Re: Steel Gauges
Post by: saratogaWX on February 18, 2013, 04:30:10 PM
Hi David,

You might want to use the wxssgauges.php page in your template .. I'll need to put that in the WCT-plugin.zip distribution, but it is attached here.  Just change the $ssgDir variable to where you have the gauges installed and it should work out-of-the-box.

Best regards,
Ken

p.s. I added your site to the list of template sites too :)
Title: Re: Steel Gauges
Post by: Randall75 on February 18, 2013, 07:10:04 PM
Hi Ken and Col
 After deleting and changing everything per what Ken said the gauges now show up
My problems ins now that the realtimegaugesWC.txt is not uploading to my gauges-ss folder and now it won't up date the gauges
Can some one tell me how to get it to be directed to my gauges-ss folder I can move it manually and it works I'm just not good at this web stuff
thanks
 [cheers1]
Title: Re: Steel Gauges
Post by: UncleBuck on February 18, 2013, 08:56:16 PM
Randall,
It is a shortcoming of WeatherCat that you cannot upload an additional file to a different folder to your custom web FTP settings.

If you have your FTP setting uploading your custom web to the root level of your website, then you need to make a change to the gauges.js file so that it can find the realtimegaugesWC.txt file.

Edit the gauges.js file and change the line where it specifies the reaTimeURL_WC to read as follows:
Code: [Select]
realTimeURL_WC     : '/realtimegaugesWC.txt',

Then upload the gauges.js file replacing the one you have there already.

Col.
Title: Re: Steel Gauges
Post by: Randall75 on February 18, 2013, 09:40:50 PM
Hi col
 Tried that but it still does not find it
I can use my ftp uploader and upload it from WC Web to the gauges-ss folder and it works but really don'r want to have it running all the time
thanks for the help
 [cheers1]
Title: Re: Steel Gauges
Post by: wurzelmac on February 18, 2013, 09:53:41 PM
Col,
I do see that you have changed the background color of the gauges themselves to a background image - can you tell me how to? I want to change the background to the pattern attached in this post.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Randall75 on February 18, 2013, 10:08:17 PM
Hi Col
 Finally have them working thanks to you and Ken
in the gauges.js file this is what it looks like for it work for me

  weatherProgram    : 3,                      //Set 0=Cumulus, 1=Weather Display, 2=VWS, 3=WeatherCat
            imgPathURL        : '/',             //*** Change this to the relative path for your 'Trend' graph images
            oldGauges         : 'gauges.htm',           //*** Change this to the relative path for your 'old' gauges page.
            counter           : 10,                     //download data counter (secs, default 60)
            gaugeMobileScaling: 0.85,                   //scaling factor to apply when displaying the gauges mobile devices, set to 1 to disable
            graphUpdateTime   : 15,                     //period of popup data graph refesh, in minutes (default 15)
            stationTimeout    : 3,                      //period of no data change before we declare the station offline, in minutes (default 3)
            pageUpdateLimit   : 20,                     //period after which the page stops automatically updating, in minutes (default 20),
                                                        // - set to 0 (zero) to disable this feature
            pageUpdatePswd    : 'its-me',               //password to over ride the page updates timeout, do not set to blank even if you do not use a password
            digitalFont       : true,                   //Font control for the gauges & timer
            digitalForecast   : true,                   //Font control for the status display, set this to false for languages that use accented characters in the forecasts
            showPopupData     : true,                   //Popup data displayed
            showPopupGraphs   : true,                   //If popup data is displayed, show the graphs?
            showWindVariation : true,                   //Show variation in wind direction over the last 10 minutes on the direction gauge
            showIndoorTempHum : true,                   //Show the indoor temperature/humidity options
            showUvGauge       : true,                   //Display the UV Index gauge
            showSolarGauge    : true,                   //Display the Solar gauge
            showRoseGauge     : true,                   //Show the optional Wind Rose gauge
            showRoseGaugeOdo  : true,                   //Show the optional Wind Rose gauge Windrun Odometer
            showGaugeShadow   : true,                   //Show a drop shadow outside the gauges
                                                        // The realtime files should be absolute paths, "/xxx.txt" refers to the public root of your web server
            realTimeURL_Cumulus: 'realtimegauges.txt',     //*** Cumulus Users: Change to your location of the realtime file ***
            realTimeURL_WD     : 'customclientraw.txt',    //*** WD Users: Change to your location of the ccr file ***
            realTimeURL_VWS    : 'steelseriesVWSjson.php', //*** VWS Users: Change to your location of the JSON script generator ***
            realTimeURL_WC     : 'realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***
Thanks for all your help [cheer] [tup] [woohoo]

Title: Re: Steel Gauges
Post by: mcrossley on February 18, 2013, 10:29:45 PM
Just a heads up, but I have released v2.2.1 of the gauges today. Two minor bug fixes in there, one only relevant to Cumulus users, but the gauges.js file has been updated to fix the auto scaling of the gauges when view on a mobile device - I broke that in v2.2.0 :(

Good to see that most of you seem to be getting these gauges working - stick at it!
Title: Re: Steel Gauges
Post by: WCDev on February 18, 2013, 10:34:22 PM
Thread 'stickied'.
Title: Re: Steel Gauges
Post by: Steve on February 18, 2013, 10:58:16 PM
Hi guys,

Looks like a lot has gone on since I last checked in. Sorry to have added my guess at how to get it working and then bailing. I had company from Friday evening until just a few hours ago, and haven't been on the computer.

I'll read through what everyone has done and see if I need to make any changes to my original settings. Thanks Ken, MArk, Col, and Stu for getting this up and running on WeatherCat!

Steve
Title: Re: Steel Gauges
Post by: WxOwl on February 19, 2013, 01:03:12 AM
Hello All,

As noted previously by Jace, there is a problem with the wind run indication.

Only one minor problem I've got, don't know if anybody else has seen this at all.

All the gauges except the wind rose update regularly and are accurate with the 'Cat. However the wind rose does not seem to update and the total wind run counter under reads.

It appears the conversion from km to miles is being applied twice somewhere. For example my WeatherCat gauges shows 144.6 km or 89.9 miles for today while the SS gauges shows 89.9 km or 55.8 miles. The ratio between all these numbers (and those in Jace's example) is the conversion factor of about 0.62. Really windy here today so I've had plenty of chances to compare the numbers.

Regards,
David
Title: Re: Steel Gauges
Post by: Randall75 on February 19, 2013, 02:38:58 AM
Hi David and Jace
 I notice if you set the wind to m/s instead of mph it matches WeatherCat
Wind Run and Speed
 [cheers1]
Title: Re: Steel Gauges
Post by: Steve on February 19, 2013, 03:29:16 AM
OK, I think I'm all caught up. You guys have done some nice work documenting things over the past few days, and I've got Mark's latest update installed.

Have I missed a unit of measure setting somewhere for windspeed? Mine is in MPH, but the gauge is showing 2-3 times actual windspeed. It shows my max gust today was 58 MPH, when it really was 26. This was both before and after updating to the latest version.

Thanks!
Steve
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 09:17:23 AM
To help diagnose the wind speed discrepancies I think we will need a screen shot of the gauge, and a copy of your realtimegaugesWC.txt file taken at the same time. Then we can see what data is being sent, and what is being done with it.

Thanks
Mark
Title: Re: Steel Gauges
Post by: jace on February 19, 2013, 10:37:06 AM
Hi David and Jace
 I notice if you set the wind to m/s instead of mph it matches WeatherCat
Wind Run and Speed
 [cheers1]

Your right,   [cheers1] I've just set the wind speed to km/h and then m/s  the wind run counter has re-set itself to match Weather Cat. If set to mph and knots both under read compared to Wcat.

[interesting]

JC
Title: Re: Steel Gauges
Post by: jace on February 19, 2013, 10:44:38 AM
To help diagnose the wind speed discrepancies I think we will need a screen shot of the gauge, and a copy of your realtimegaugesWC.txt file taken at the same time. Then we can see what data is being sent, and what is being done with it.
Thanks Mark

Hi Mark here is my reatimegaugesWC.txt and the gauges taken at the same time. weatherCat was reading a wind run of 1.85 miles at the time. The realtimegauageWC.txt file shows the same, but displayed 1.2 miles on the wind rose dial.

"EDIT"  - I've just noticed that if km/h or m/s are selected, after a wee while the selected units defaults to mph, only happens for wind speed. Temp, pressure, rainfall stay on the selected units.

{"date":"19/02/13",
"timeUTC":"2013,2,19,10,32,18",
"SensorContactLost":"0",
"forecast":"Current forecast is -- Increasing clouds with little temperature change. Precipitation possible within 24 to 48 hours. --", "tempunit":"&#176;C",
"windunit":"MPH", "pressunit":"mb", "rainunit":"mm",
"temp":"1.8",
"tempTL":"-3.8", "TtempTL":"03:00", "tempTH":"1.8", "TtempTH":"10:27", "temptrend":"0.6", "intemp":"18.4",
"dew":"1.1", "dewpointTL":"-4.4", "dewpointTH":"1.2", "TdewpointTL":"03:00", "TdewpointTH":"10:21", "apptemp":"-0.3", "apptempTL":"-6.4", "apptempTH":"0.0", "TapptempTL":"03:00", "TapptempTH":"10:00", "wchill":"1.8", "wchillTL":"-3.8", "TwchillTL":"03:00", "heatindex":"1.8", "heatindexTH":"1.8", "TheatindexTH":"10:27", "humidex":"-0",
"wlatest":"2",
"wspeed":"0.0", "windTM":"4.00",
"wgust":"3",
"wgustTM":"4", "bearingTM":"261", "TwgustTM":"09:17", "bearing":"265", "avgbearing":"266", "BearingRangeFrom10":"260", "BearingRangeTo10":"260", "Tbeaufort":"0", "press":"1020.4", "pressTL":"1020.3", "TpressTL":"09:40", "pressTH":"1022.2", "TpressTH":"00:01", "pressL":"967.9", "pressH":"1038.5", "presstrendval":"0.0", "LastRainTipISO":"2013-02-14", "hourlyrainTH":"0.0", "ThourlyrainTH":"10:00", "rfall":"0.2",
"rrate":"0.0",
"rrateTM":"0.0",
"TrrateTM":"10:00",
"hum":"95",
"humTL":"95",
"ThumTL":"10:26",
"humTH":"98",
"ThumTH":"09:00",
"inhum":"35",
"UV":"0.0",
"SolarRad":"0",
"CurrentSolarMax":"0",
"domwinddir":"W",
"WindRoseData": [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.1,0.6,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0], "windrun":"1.85",
"version":"V1.14, Build 230", "build":"0",
"ver":"9"}

Cheers John
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 11:44:18 AM
OK, I think I see the problem, WeatherCat is sending the wind speed units as "MPH" the script is expecting "mph".

If you insert at line 1095 in gauges.js...
                data.windunit = data.windunit.toLowerCase();

Does that fix it?

EDIT: What strings does WeatherCat use for the other wind units available?
Title: Re: Steel Gauges
Post by: UncleBuck on February 19, 2013, 11:48:41 AM
Col,
I do see that you have changed the background color of the gauges themselves to a background image - can you tell me how to? I want to change the background to the pattern attached in this post.

Cheers,
Reinhard

I'm actually not using an image, it is one of the lines in the gauges.js file.
Code: [Select]
background             : steelseries.BackgroundColor.BEIGE,was changed to
Code: [Select]
background             : steelseries.BackgroundColor.BRUSHED_METAL,
I believe you can incorporate an image as a background on the gauges, however, I haven't explored that yet. Maybe Mark can give you an idea.

Col.
Title: Re: Steel Gauges
Post by: jace on February 19, 2013, 11:57:38 AM
Hi mark

Line 1095 is :    if (_gaugeStatus) {

Something to do with the staus LED display. However my copy of gauges.js from line 1052 onwards reads:

 // Wind data conversion for display required?
                if (data.windunit !== _displayUnits.wind && _userUnitsSet) {
                    // rain needs converting
                    convWindData(data.windunit, _displayUnits.wind);
                } else if (_firstRun) {
                    _displayUnits.wind = data.windunit;
                    _displayUnits.windrun = getWindrunUnits(data.windunit);
                    setRadioCheck('rad_unitsWind', _displayUnits.wind);

Line 1055 refers to converting rain units, as does line 1045 in the section above this block of code.

Does line 1055 need changing to read    //wind needs converting

 I haven't changed  line 1095 yet, just in case I screw something up.
Cheers.
                JC
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 12:00:23 PM
Ah, I was using v2.2.1 of the gauges.js script. On 2.2.0, insert at line 1025, just before...

                if (data.windunit === 'kmh') {  // WD wind unit omits '/'
                    data.windunit = 'km/h';
                }
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 12:02:45 PM

I believe you can incorporate an image as a background on the gauges, however, I haven't explored that yet. Maybe Mark can give you an idea.
You can yes, either you can overlay an image on top of the gauge background (this obviously works best with images that have transparency), or you can remove the gauge background completely and have whatever is behind the gauge on the web page show through.

Below is a gauge with a transparent image overlay on the background (one I happen to have lying around for some reason! ;) )
Title: Re: Steel Gauges
Post by: jace on February 19, 2013, 12:24:17 PM
Hi mark.

I've inserted data.windunit = data.windunit.toLowerCase(); at Line 10 so that block of code now reads:

}
                 data.windunit = data.windunit.toLowerCase();
                if (data.windunit === 'kmh') {  // WD wind unit omits '/'
                    data.windunit = 'km/h';
                }

WeatherCat data is: 4.4 miles wind run

Gauge in mph is 4.4 miles wind run
Gauge in knots is 3.8 wind run
Gauge in m/s is 6.7 wind run
Gauge in km/h is 7.2 wind run

JC
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 12:28:11 PM
OK, close but no banana, let me do some testing with the realtime file you supplied above...
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 12:41:32 PM
JC

I cannot reproduce your results. I used the realtimegaugesWC.txt file you supplied above, but changed the wind run to "10.00" to make things simple.

After adding the lowercase() change in I find with the gauges displaying...

mph, run = 10.0 miles
km/h , run = 16.1 km
m/s, run = 16.1 km
knots, run = 8.7 n.miles

Which looks correct to me. Can you provide a link to your page so I can run it in a debugger?

EDIT: I also set the latest wind speed = 10 mph, and that converts correctly to km/h, m/s, knots (within rounding errors)
Title: Re: Steel Gauges
Post by: jace on February 19, 2013, 01:24:28 PM
Hi Mark

Home page is: www.yoxford-weather.co.uk
SS page is: http://www.yoxford-weather.co.uk/steel/gauges-ss-basic.htm

Looking at the wind run counter in mph it seems to be in agreement with Wcat now, and it has stopped defaulting to mph from km/h or m.s after a period of time.

Regards
John
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 01:33:17 PM
Yep, that looks to be behaving itself now.

I'd just like confirmation of all the unit strings WeatherCat can send for wind unit, pressure unit and rain unit if someone can provide this info?
Title: Re: Steel Gauges
Post by: Randall75 on February 19, 2013, 01:54:41 PM
Hi Jace and Mark
 I add  data.windunit = data.windunit.toLowerCase(); to line 1025 all is well here now
 thanks to both of you
 [cheers1]
Title: Re: Steel Gauges
Post by: jace on February 19, 2013, 02:18:50 PM
Yep, that looks to be behaving itself now.

I'd just like confirmation of all the unit strings WeatherCat can send for wind unit, pressure unit and rain unit if someone can provide this info?

Very many thanks for all your hard work Mark.

I'm sorry but I'm not sure what the unit strings are, but hopefully Stu will be able to help.

How would I be able to alter the gauge size if I wanted to ?

JC
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 02:27:24 PM
How would I be able to alter the gauge size if I wanted to ?
It is set by CSS, in gauges-ss.css, there is a class called .gaugeSizeStd, alter the width/height values in there to globally change the size.

There are two other classes defined (you are free to add your own as well of course) .gaugeSizeSml and .gaugeSizeLrg, you can assign these classes to individual gauges in the HTML if you want some gauges larger/smaller than the others for a custom layout.
Title: Re: Steel Gauges
Post by: Steve on February 19, 2013, 03:09:29 PM
To help diagnose the wind speed discrepancies I think we will need a screen shot of the gauge, and a copy of your realtimegaugesWC.txt file taken at the same time. Then we can see what data is being sent, and what is being done with it.

Thanks
Mark
Thanks Mark,

Here's a screenshot of the gauges and realtimegaugesWC.txt file. I temporarily set it at 1 minute to grab the shot, but normally have it set to update every .11 minute. Note my max gust is now 76 MPH. It's a hurricane! :)

(http://www.morrisgarage.com/skitch/Finder-20130219-100717.jpg)


And here are my settings, with the arrow pointing at the changes I made.

(http://www.morrisgarage.com/skitch/gauges.js-20130219-100328.jpg)

Thanks,
Steve

[EDIT] Oops, I didn't notice there was another page of replies. I added line 1095 as "                data.windunit = data.windunit.toLowerCase();" and the windspeed works fine now. Thanks for the fix!

http://www.avon-weather.com/steel/gauges-ss-basic.htm

Steve
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 03:19:16 PM
Hi Steve, I think we have this sorted, try adding

Code: [Select]
data.windunit = data.windunit.toLowerCase();
to line 1025 of gauges.js (v2.2.0)
[or to line 1095 in gauges.js (v2.2.1)]

Just before...
Code: [Select]
if (data.windunit === 'kmh') {  // WD wind unit omits '/'
I'll fix this in the next release.
Title: Re: Steel Gauges
Post by: wurzelmac on February 19, 2013, 05:19:35 PM
Col,
thanks for assistance & help  :) !

Mark,
a big thanks to you, too! Would it be possible to give all gauges a background instead of the color BEIGE but a picture/pattern like the one attached in this post? Thanks in advance!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 05:27:19 PM
The library has a built in background that is similar - 'stainless' - try it here: http://www.wilmslowastro.com/steelseries/demoRadial.html

Set the background to steelseries.BackgroundColor.STAINLESS in the gauge = {} Gauge Global look'n'feel settings

There is a variation, "turned" which is stainless with a turned pattern overlaid on top of it.

Title: Re: Steel Gauges
Post by: WCDev on February 19, 2013, 05:38:33 PM
Yep, that looks to be behaving itself now.

I'd just like confirmation of all the unit strings WeatherCat can send for wind unit, pressure unit and rain unit if someone can provide this info?

Hi Mark,
Here are the strings:
Code: [Select]
Precipitation: mm or in
Temperature: ?C or ?F
Windpseed: MPH, Knots, m/s, km/h
Pressure: inHg, mb, hPa

If you need more info just shout.

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: wurzelmac on February 19, 2013, 05:39:19 PM
Thanks for advice, Mark - really appreciated!

Took it - that's it! http://wetter.unterwurzacher.at/steelgauges/livewerte.html

Thanks to all involved in this one!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 05:54:14 PM
Hi Mark,
Here are the strings:
Code: [Select]
Precipitation: mm or in
Temperature: ?C or ?F
Windpseed: MPH, Knots, m/s, km/h
Pressure: inHg, mb, hPa

If you need more info just shout.

Cheers,
Stu.
Thanks for that, I will have to convert the "MPH" to "mph" and "Knots" to "kts" internally in script to make WeatherCat compatible with the existing logic.

I have attached a test version of v2.2.2 with just those two changes in if people would give it a whirl - including someone who uses Knots as their native wind speed unit would be good  :)
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 05:56:57 PM
Thanks for advice, Mark - really appreciated!

Took it - that's it! http://wetter.unterwurzacher.at/steelgauges/gauges-ss-basic.htm

Thanks to all involved in this one!

Cheers,
Reinhard
[bounce] That is looking great - I used to have a very similar background myself on my gauges page some time ago, it disappeared for some reason!
Title: Re: Steel Gauges
Post by: wurzelmac on February 19, 2013, 06:11:20 PM
[bounce] That is looking great - I used to have a very similar background myself on my gauges page some time ago, it disappeared for some reason!

I am very impressed of the abilities of your script! Well done! I love the gauges and will give some bucks on your donation account. Thanks a lot!

Reinhard
Title: Re: Steel Gauges
Post by: Steve on February 19, 2013, 06:20:36 PM
I have attached a test version of v2.2.2 with just those two changes in if people would give it a whirl - including someone who uses Knots as their native wind speed unit would be good  :)

Not using knots, but this version works fine. Note that you left WeatherCat as the default application in the new file, which I assume you'd want as Cumulus in the final release.

Thanks for your help!
Steve
Title: Re: Steel Gauges
Post by: mcrossley on February 19, 2013, 06:22:31 PM
Note that you left WeatherCat as the default application in the new file, which I assume you'd want as Cumulus in the final release.
It was deliberate, just for WC users  ;), but thanks for pointing it out.
Title: Re: Steel Gauges
Post by: Randall75 on February 19, 2013, 08:03:34 PM
Hi Reinhard
 Your gauges look great
 [cheers1]
Here is what mine looks Like:
Title: Re: Steel Gauges
Post by: mcrossley on February 22, 2013, 11:34:43 AM
Version 2.2.2 is available (http://wiki.sandaysoft.com/a/SteelSeries_Gauges). The main fix is for WeatherCat users using MPH or knots for their wind units. There is a slight tweak to the gauges-ss.css to pretty the units table slightly, and the Nederlands translation has been updated that's it.

I have also updated the FAQ (http://wiki.sandaysoft.com/a/SteelSeries_FAQ) with information on tweaking the wind rose appearance.
Title: Re: Steel Gauges
Post by: wurzelmac on February 22, 2013, 12:32:11 PM
Thanks for the update, Mark.

Attached a screenshot: I cannot arrive any of your pages... ???
Title: Re: Steel Gauges
Post by: mcrossley on February 22, 2013, 12:34:13 PM
We are having problems with the Cumulus hosting server being on a go-slow at the moment, they are going to move the site to a new server, so please try again a bit later.
Title: Re: Steel Gauges
Post by: Randall75 on February 22, 2013, 12:43:37 PM
Hi Mark and Reinhard
Yes it was slow getting it to load but once load all went well
 [cheers1]
Title: Re: Steel Gauges
Post by: jace on February 22, 2013, 02:58:08 PM
Hi Mark.

New version downloaded (eventually), and once I'd got my head around how to reconfigure the files again, all works great.

JC

Title: Re: Steel Gauges
Post by: Steve on February 23, 2013, 03:14:11 PM
I've posted a notice over on the WXforum that the SteelSeries Gauges are now available for WeatherCat http://www.wxforum.net/index.php?topic=18352.0
Title: Re: Steel Gauges
Post by: rustman on March 01, 2013, 09:02:26 PM
Steve:  a quick note, to thank you for helping usher Steel Gauges into WeatherCat's bag of tricks.  Installation and live implementation was quick and easy, thanks to very clean instructions on the wiki page, and especially clear code.
   Following configuration directions on the wiki, I placed all the files at top level of my website. Next, edited gauges.js in the scripts sub-folder, including line 19, replacing imgPathURL with imgPathURL        : '/',
.
  However, the website gauges did not respond as expected - e.g., when I would "mouse-over" any of the gauges,
the resulting popup graph was blank - showing a small "?" to indicate a missing image.  The imgPathURL value seemed incorrect.
.
   So I ftp'd the locally-generated graphics to the web site into the images sub-directory, and changed gauges.js back to original value of imgPathURL        : './images/',
   Now the web site worked as expected, with popup strip chart graphics.
.
   Satisfied with the above results, I tried the following edit to line 19 in gauges.js:

imgPathURL        : './/',             //*** Change this to the relative path for your 'Trend' graph images

  and, now things are working to my satisfaction - the images are being updated routinely by FTP to the top level of the web server.

  for whatever it's worth, my current WeatherCat / steel series gauges server is hosted by Charter's user web pages sites - webpages.charter.net
  just prior to the release of Steel Series Gauges, I was using Dropbox to host the site, in my /Public sub-directory.
  I don't have any experience with webpages.charter.net - and can't explain the discrepancy in the '/' and './/', but thought it might shed some light for other users trying to get their mouse-over strip chart graphics to work as expected.

  again, the information above reflects only my recent experience with the gauges.  I am very pleased with the results, and especially impressed with this forum, its moderation, and the user input.  It's quite obvious that the members are very community-minded.  What a great service to those just getting started.
Title: Re: Steel Gauges
Post by: wurzelmac on March 02, 2013, 06:02:28 PM
Thanks for the update, Mark.

Attached a screenshot: I cannot arrive any of your pages... ???

Still the same:
Quote
Forbidden

You don't have permission to access /a/SteelSeries_FAQ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on March 03, 2013, 10:22:57 AM
Very odd, access to the Wiki isn't restricted as far as I know. Is anyone else having problems?
Title: Re: Steel Gauges
Post by: Randall75 on March 03, 2013, 01:23:24 PM
Hi Mark
 I was able to excess the site with no problems
 [cheers1]
Title: Re: Steel Gauges
Post by: wurzelmac on March 03, 2013, 02:27:40 PM
Tried it with different machines: iMac, MacMini, MacBook Air, on different Browsers (Safari, Firefox). Even a Windows Machine - no chance. But I can access your Wiki with my iPhone when WLAN is turned off in its preferences. So maybe a problem with my Modem/Router.

Maybe your Wiki disallows some IP-Adresses to have access? All of your other Website (except Wiki) is no problem. On the other side, a few time ago I did have access to all of your pages.

Strange.

Cheers,
Reinhard

Title: Re: Steel Gauges
Post by: mcrossley on March 03, 2013, 04:00:55 PM
OK, fixed a problem with the .htaccess file, please try it again. If it still fails can you tell me the two or octets of your IP address please?
Title: Re: Steel Gauges
Post by: wurzelmac on March 03, 2013, 04:26:28 PM
OK, fixed a problem with the .htaccess file, please try it again. If it still fails can you tell me the two or octets of your IP address please?

SUCCESS! Whatever you did, it works!

Thanks a lot!
Reinhard
Title: Re: Steel Gauges
Post by: jf-i2r on March 10, 2013, 09:21:52 AM
Hi

for the moment i test and i've that :

http://www.jf-i2r.com/meteo-jf2/gauges-ss-basic.htm

I would like the same metallic look like

http://wetter.unterwurzacher.at/steelgauges/livewerte.html

I'm not a great programmer so I'll need help

thks

jean frederic
Title: Re: Steel Gauges
Post by: wurzelmac on March 10, 2013, 10:06:17 AM
Hi Jean Frederic,

look at the gauges.js file and change the frame design to BLACK_METAL and background to STAINLESS.
Attached a screenshot of the lines.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jf-i2r on March 10, 2013, 11:53:32 AM
hI

Thks very much Reinhard  ;)

cheers

jean frédéric
Title: Re: Steel Gauges
Post by: mcrossley on March 12, 2013, 02:18:13 PM
We have a bug in v2.2.2 of the gauges with WeatherCat configured for windspeeds in Knots.  :(
So version 2.2.3 has been released to address this  :)
- there are a couple of other minor changes, but nothing worth worrying about if upgrading is a hassle.

http://wiki.sandaysoft.com/a/SteelSeries_Gauges

Change history here:
http://wiki.sandaysoft.com/a/SteelSeries_Versions
Title: Re: Steel Gauges
Post by: Randall75 on March 12, 2013, 02:32:02 PM
Hi Mark
 Thanks for the update and all your hard work


cheers
 [cheers1]
Title: Re: Steel Gauges
Post by: Steve on March 12, 2013, 03:48:47 PM
Thanks Mark! Appreciate the support for WeatherCat.

Steve
Title: Re: Steel Gauges
Post by: mcrossley on March 22, 2013, 10:16:35 PM
Version 2.3.0 of the SteelSeries gauges is available, the key change is the addition of support for Meteobridge, but the only change relevant for WeatherCat users is the updated windrose.js script which removes the blurring that sometimes occurs on the wind rose plot in previous releases.
Title: Re: Steel Gauges
Post by: Randall75 on March 23, 2013, 02:25:54 AM
Hi Mark
 thanks for the update
cheers
 [cheers1]
Title: Re: Steel Gauges
Post by: jf-i2r on March 23, 2013, 07:24:59 AM
hi

just a little question :)

how do you update the gauges.js without loosing all the personal setup on this file ?

thanks

jean frederic
Title: Re: Steel Gauges
Post by: mcrossley on March 23, 2013, 12:14:49 PM
There is no automated way. But I hope most of your customisation is in the first 50 odd lines so copying it over shouldn't be too onerous? Do a 'diff' of the current and new files to highlight your changes.
Title: Re: Steel Gauges
Post by: wurzelmac on March 24, 2013, 05:29:07 PM
Hi Mark,
thanks for the update and your hard work to provide us WeatherCat users with your impressive gauges. Update was no problem. One thing I noticed is that the counter (I set it to reload every 30 sec) is showing a 10 very short after going to zero, but then counts down from 29 again. It is only cosmetically, maybe I am missing a setting somewhere? Attached a movie that shows the behavior.
Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Toremann on April 22, 2013, 05:55:27 AM
Hello my friends

I have just got my new Steel Gauges site up running, and i am really satisfied.
Is it any possibility to change the title of the site and add som text on top of the site

i am running weathercat version 1.15

Could anyone have a look at http://spilderdalen.com , and give me some feedback what i need to implement this

Best Regards
Tore Olsen
Title: Re: Steel Gauges
Post by: wurzelmac on April 22, 2013, 07:42:41 AM
Could anyone have a look at http://spilderdalen.com , and give me some feedback what i need to implement this.

Hello Tore,
take a look at my Gauges (http://wetter.unterwurzacher.at/steelgauges/livewerte.html) site and look into the source code. I added some things above and underneath the Gauges to fit to the rest of my page. Hope that helps!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on April 22, 2013, 09:06:42 AM
Hi Mark,
thanks for the update and your hard work to provide us WeatherCat users with your impressive gauges. Update was no problem. One thing I noticed is that the counter (I set it to reload every 30 sec) is showing a 10 very short after going to zero, but then counts down from 29 again. It is only cosmetically, maybe I am missing a setting somewhere? Attached a movie that shows the behavior.
Cheers,
Reinhard
Sorry, I thought I'd answered this (I think the same question may have been asked elsewhere).
The 10 secs that flashes up is the download timeout, so every time the script starts to download a fresh copy of the data file, it starts counting down from 10 seconds, if it reaches zero, it will cancel the download and try again. In normal running with a healthy web site the response comes back within a second, so you see the 10 secs flash up briefly, then after receiving the data the countdown is reset to the page refresh time.
Title: Re: Steel Gauges
Post by: wurzelmac on April 22, 2013, 09:22:09 AM
Thanks for explanation, Mark!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Toremann on April 23, 2013, 08:07:06 AM
Hello sir

I am not able to get my popup to update as they shoul, i have used FTP to upplade to root on website, but they dont update.
I have try to sett al parameters as shown but whit no luck

One more question: should gauges.js also be transfered to website by FTP?

my site is: http://spilderdalen.com


Any tip for me?

Best regards
Tore
Title: Re: Steel Gauges
Post by: jf-i2r on April 23, 2013, 11:11:56 AM
hi

all is explain here : http://wiki.trixology.com/index.php/Steel_Series_Gauges

just realtimegaugesWC.txt is transfered by ftp every x seconds

cheers
jean frederic
Title: Re: Steel Gauges
Post by: Toremann on April 23, 2013, 12:10:27 PM
Hello sir
Thank you for your replay, but its not updating the popup pictures

This is my setup:

var gauges = (function () {
    var strings = LANG.NO,         //Set to your default language. Store all the strings in one object
        config = {
            // Script configuration parameters you may want to 'tweak'
            scriptVer         : '2.3.0 - 2013-03-20',
            weatherProgram    : 3,                      //Set 0=Cumulus, 1=Weather Display, 2=VWS, 3=WeatherCat, 4=Meteobridge
            imgPathURL        : './',             //*** Change this to the relative path for your 'Trend' graph images
            oldGauges         : 'gauges.htm',           //*** Change this to the relative path for your 'old' gauges page.
            counter           : 10,                     //download data counter (secs, default 60)
            gaugeMobileScaling: 0.85,                   //scaling factor to apply when displaying the gauges mobile devices, set to 1 to disable
            graphUpdateTime   : 15,                     //period of popup data graph refesh, in minutes (default 15)
            stationTimeout    : 3,                      //period of no data change before we declare the station offline, in minutes (default 3)
            pageUpdateLimit   : 20,                     //period after which the page stops automatically updating, in minutes (default 20),
                                                        // - set to 0 (zero) to disable this feature
            pageUpdatePswd    : 'its-me',               //password to over ride the page updates timeout, do not set to blank even if you do not use a password
            digitalFont       : true,                   //Font control for the gauges & timer
            digitalForecast   : true,                   //Font control for the status display, set this to false for languages that use accented characters in the forecasts
            showPopupData     : true,                   //Popup data displayed
            showPopupGraphs   : true,                   //If popup data is displayed, show the graphs?
            showWindVariation : true,                   //Show variation in wind direction over the last 10 minutes on the direction gauge
            showIndoorTempHum : true,                   //Show the indoor temperature/humidity options
            showUvGauge       : true,                   //Display the UV Index gauge
            showSolarGauge    : true,                   //Display the Solar gauge
            showRoseGauge     : true,                   //Show the optional Wind Rose gauge
            showRoseGaugeOdo  : true,                   //Show the optional Wind Rose gauge Windrun Odometer
            showGaugeShadow   : true,                   //Show a drop shadow outside the gauges
                                                        // The realtime files should be absolute paths, "/xxx.txt" refers to the public root of your web server
            realTimeURL_Cumulus: 'realtimegauges.txt',     //*** Cumulus Users: Change to your location of the realtime file ***
            realTimeURL_WD     : 'customclientraw.txt',    //*** WD Users: Change to your location of the ccr file ***
            realTimeURL_VWS    : 'steelseriesVWSjson.php', //*** VWS Users: Change to your location of the JSON script generator ***
            realTimeURL_WC     : 'realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***
            realTimeURL_MB     : 'MBrealtimegauges.txt',   //*** Meteobridge Users: Change to the location of the JSON file
            useCookies        : true,                   //Persistently store user preferences in a cookie?
            tipImages         : [],
            dewDisplayType    : 'app'                   //Initial 'scale' to display  'dew' - Dewpoint
                                                        // on the 'dewpoint' gauge.   'app' - Apparent temperature
                                                        //                            'wnd' - Wind Chill
                                                        //                            'hea' - Heat Index
                                                        //                            'hum' - Humidex
Can you finde any wrong in this config?

Best Regards
Tore
Title: Re: Steel Gauges
Post by: jf-i2r on April 23, 2013, 01:08:20 PM
hi

do you have create a folder for example "gauges" for all the files from steel série gauges ?
the realtimegaugesWC.txt is in the root of your web site?

if yes :

realTimeURL_WC     : 'realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***

change to

realTimeURL_WC     : '/realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator ***


cheers
Title: Re: Steel Gauges
Post by: Toremann on April 23, 2013, 01:13:26 PM
Hello sir

No i have all my files at ROOT level at my server.

I have also set 777 as security to all my files there

I cant understand why the curves do no update

BR

Tore

you can see my weathercat setup under
Title: Re: Steel Gauges
Post by: jf-i2r on April 23, 2013, 01:24:16 PM
hi

the curve update but every 60s

in weathercat setup not every 10mn but for example 0,5s the realtimegaugesWC.txt in aditionnal file

(http://img18.imageshack.us/img18/2263/capturedcran20130423143.jpg) (http://imageshack.us/photo/my-images/18/capturedcran20130423143.jpg/)




cheers
Title: Re: Steel Gauges
Post by: Toremann on April 23, 2013, 01:39:24 PM
I have change to every 10 sec now

But i wander!! You say that realtimegaugesWC.txt is the only file that is been uploaded to server.

How could the curves been updated as log as they are jpg pictures?

Perhaps i need to set up a FTP transfer of all the .jpg files that is used om my site??

Sorry for bother you its most appreciated that you take your time to help me out  :)

Tore
Title: Re: Steel Gauges
Post by: Toremann on April 23, 2013, 03:59:17 PM
Still not work

Any ideas friends :)

Best Regards Tore
Title: Re: Steel Gauges
Post by: mcrossley on April 23, 2013, 04:11:16 PM
Not sure about your image problems, but WC does not seem to be providing a wind gust speed?

data.wgust = "N/A"

which is causing the script to error as it is expecting a number and then fails to update many of the gauges.

I'm not sure what the cause of this may be?
Title: Re: Steel Gauges
Post by: wurzelmac on April 23, 2013, 04:20:51 PM
Another thing I noticed, Tore:
Code: [Select]
imgPathURL        : './',should read
Code: [Select]
imgPathURL        : '/',without the dot.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: wurzelmac on April 23, 2013, 04:25:14 PM
Another one:
Code: [Select]
realTimeURL_WC     : 'realtimegaugesWC.txt',should read
Code: [Select]
realTimeURL_WC     : '/realtimegaugesWC.txt',
Cheers,
Reinhard

Update: Oh, jf-i2r has mentioned this before...  :-[
Title: Re: Steel Gauges
Post by: jf-i2r on April 23, 2013, 04:55:33 PM
hi


i think it will be more easy to install the Steel serie gauges llike the "wiki" : http://wiki.trixology.com/index.php/Steel_Series_Gauges

Quote
All the files for the gauges are or will be in the top level (root) of the website (option 1)
After following these setup instructions, you should be able to access the gauges by going to http://www.yourpage.com/gauges-ss-basic.htm
Once you have downloaded the zip file from http://wiki.sandaysoft.com/a/SteelSeries_Gauges, extract all the files from the zip file (retaining the folder structure)
You should now have created a folder called gauges-ss-vX-X-X (where X-X-X represents the version of SS-Gauges)



cheers
jean frederic
Title: Re: Steel Gauges
Post by: wurzelmac on April 23, 2013, 06:34:52 PM
my site is: http://spilderdalen.com


Any tip for me?

Seems to work now, except the Windrun: 116232,00 km today - heavy storm, isn't it?

 ;)

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jf-i2r on April 23, 2013, 06:54:00 PM
hi

 [bounce]

Quote
counter           : 60,                     //download data counter (secs, default 60)

i think you must setup every 15s or 30s

1mn is too long

cheers
jean frederic
Title: Re: Steel Gauges
Post by: Toremann on April 24, 2013, 07:05:35 AM
Hello Friends

Everything seems to work perfect now..

But i wander? is it possible to resize the whole side  so it will fit into a Joomla site as a external html tag.
As it is now it way to deep and wide , so i need to scroll bout ways to see all the gauges

As you may understand i a am a newbie to html programing

Have a great day [cheers1]
Title: Re: Steel Gauges
Post by: jf-i2r on April 24, 2013, 09:35:59 AM
hi

perhaps with a

<iframe src="/gauges-ss-basic.htm" frameborder="0" height="xxxx" scrolling="no" width="xxxx"></iframe>

but i'm a bad html programmer :)

cheers
Title: Re: Steel Gauges
Post by: bonzo on May 03, 2013, 10:29:53 PM
Hi, New member of the forum here!

I'm working with a friend of mine who has a station that he's using with Weathersnoop, it's currently uploading the stats to Wunderground and he's got the Rapid Fire widget on his website.

I boldly told him that I could find a better way of showing the world what the weather was doing from his website (which is based on Wordpress).

So, I found the gorgeous SteelSeries. and have downloaded (from sandaysoft).

You know what's coming next!...

So, looking at the Saratoga Weather site I can see that someone has created a plug-in (WSN-plugin) for that template that, if I'm not mistaken, takes the json file that Weathersnoop can upload to a web server and then converts it into a format that the Steelseries template scripts can understand. Because I am trying to get this working in Wordpress I just first want to create a standalone html page which I can then afterwards figure out how to get it into Wordpress...

I have the Steelseries downloaded and can see static dials, but I cannot figure out what I need to do to get the scripts to call the WSNplugin so that the data will get converted. In fact, I'm not even sure whether this plug-in will work in a standalone environment as their seems to be mention of an intermediate format (WX).

Any help very much appreciated!

Whoops! I've just realised that this is a forum for Weathercat users and I've just perhaps put the cat amongst the pigeons! Apologies if this is the wrong place...
Title: Re: Steel Gauges
Post by: saratogaWX on May 04, 2013, 01:19:00 AM
'Tis true, this is a WeatherCat forum  :-X

But, as the author of the WSN-plugin for WeatherSnoop and the Saratoga template set, I fear that WeatherSnoop for all its beauty does not emit sufficient data in the two files it can upload to drive the SteelSeries gauges .. better your friend should switch to WeatherCat.

Of the 10 software packages supported in the Saratoga template set, WeatherSnoop is in last place for number of weather tags available for upload -- even yesterday data is missing :(

Best regards,
Ken
Title: Re: Steel Gauges
Post by: WCDev on May 04, 2013, 09:04:23 AM
...better your friend should switch to WeatherCat...

Agreed :)
Title: Re: Steel Gauges
Post by: bonzo on May 04, 2013, 11:30:57 AM
Thanks for the heads up. He hasn't seen the steelseries gauges yet so I'll present him with a preview - it might drive him to move over to WC...

Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 12:02:37 AM
Version 2.3.1 of the gauges is available. A number of fixes in this release so I suggest everyone takes a look at it. At a minimum please update your copy of the steelseries library script files, the previous versions cause a script crash in Firefox v21+ if you use the following gauge frame types:

http://wiki.sandaysoft.com/a/SteelSeries_Gauges
Title: Re: Steel Gauges
Post by: JosBaz on May 19, 2013, 09:09:32 AM
Thank you!

This is working for me now, although (FYI, as it may help others) I had to make some additional changes compared to the Wiki 'Option 2' instructions.
In my case my WC directory is not the root directory on my website, i.e. all WC data goes into a subdirectory (http://www.weerenmeer.nl/wxi/)

So the additional changes I had to make to gauges.js were:
Change line 19 was changed to:   '/subdirectory/',
Change line 43 to:  '/subdirectory/realtimegaugesWC.txt'

So for the gauges I now go to: http://www.weerenmeer.nl/wxi/steel/gauges-ss-basic.htm

[EDIT: hmm.. pop-up graphs not working yet]

Jos
Title: Re: Steel Gauges
Post by: JosBaz on May 19, 2013, 10:33:43 AM
I was declaring victory too soon.  :-[

I can see the gauges, but there is no automatic update of the page (countdown is always '0') and the pop-up images are not working. I'm pretty sure it has something to do with how I set up my website:

The site is: http://www.weerenmeer.nl
Weathercat sits is http://www.weerenmeer.nl/wxi/
Steel Gauges go into: http://www.weerenmeer.nl/wxi/steel/gauges-ss-basic.htm

I've edited the gauges.js as in my previous post (before changing this the gauges were not even visible). The images are uploaded by WC to the /wxi/ directory.

Any ideas or tips would be much appreciated.

Thanks in advance.

Jos
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 01:10:39 PM
I also updated to the latest version, and the same thing happening to me...  :-[ : No automatic update, counter stays at "0", no popup images.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 02:08:15 PM
Update: Also the windrose stays blank till I change the settings from a unit to another (km/h to mph or vice versa, see windrose before and after). The popup images I can make visible to the gauges in the first row when changing In/Out, Dewpoint/Apparent/Windchill...(see temp before/after). But after I force a reload of the page, all images are gone and the windrose is blank again. Automatic reload is not working, counter stays at "0".
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 03:30:47 PM
Update#2: Went back to V2.3.0 with the same issues until I changed the realtimegaugesWC.txt (the one that is processed by WeatherCat) to the one distributed in V2.3.0 - now V2.3.0 is working as before. Don't understand it quite enough. All in all I was not able to make V2.3.1 work well, not even with the text file from V2.3.0 - so I will stay at V2.3.0 at the moment.  :)

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 05:01:27 PM
Oh dear! :( Can someone out up a demo page of 2.3.1 with it failing so I can take a look?
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 05:17:35 PM
Here you are: Testpage of V2.3.1 (http://wetter.unterwurzacher.at/steelgauges_new/livewerte.html) (only available via this thread, not linked directly in my weather site!)
(I think you can see the same results in the link within the first post after your announcement, posted from JosBaz.)

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 05:48:59 PM
Hi Reinhard, that page seems to still be using the old version 9 http://wetter.unterwurzacher.at/realtimegaugesWC.txt, the script is failing at the moment because it is expecting a value from the version 10 file.
Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 05:58:01 PM
But I see what the problem is now! Does WeatherCat have the ability to supply a "theoretical current solar maximum" value?
Edit: I guess not as I put a "N/A" value in the realtimetime file instead of a tag.

I'll patch 2.3.1 in a minute for you to test then I'll release as as version 2.3.2.
Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 06:07:10 PM
Here is an updated version of 2.3.1 which I think will fix the WeatherCat issues - I had only partially allowed for the non-return of the current theoretical max solar value, and of course it crashed at that the line where I omitted the check.

Let me know if this works for you...
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 06:08:15 PM
I feed the testpage now with a file called "realtimegaugesWC_V10.txt" (just to not disturb the SteelGauges V2.3.0). And yes, I thought it has something to do with the new "N/A" value at the bottom of the .txt file.  :)

I will check out the updated version!
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 06:21:42 PM
Hi Mark,
running perfect now except the gauge Solar Radiation (at the bottom right).

Cheers,
Reinhard

ps: Is there something to do within the script if WeatherCat provides us with the "theoretical current solar maximum" tag?
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 06:30:36 PM
Hi Mark,

got it: The searched tag is CPS$  [bounce]

Cheers,
Reinhard

UPDATE: All gauges working now as they should, automatic update ok, pop-up images ok! Thank you for your help!  [cheers1]
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 07:12:05 PM
got it: The searched tag is CPS$

Shame on me, Stu: You announced this tag in this thread (http://athena.trixology.com/index.php?topic=785.0), first point of the changes.  :-[ I didn't know what to do with this tag until now...  ::)
Maybe sometimes a cup of coffee would be better than a bottle of beer.  [coffee]

Thank you very much:
Mark for helping me resolve this issue and bringing your SteelGauges to us WeatherCat fans!
Stu for giving us Mac users such a great piece of weather software!

Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 07:17:26 PM
OK, here is an unofficial test version of 2.3.2 - can you check it out for errors, if it is OK it will become the official release and I will remove it from this thread. Nice that WC will now have a 'fully featured' solar gauge :)

Code: [Select]
2.3.2
  * Only WeatherCat users need to update from v2.3.1
  * Updated gauges.js
    - Fixed handling of current theoretical solar radiation in doSolar() for WC users
    - Made realtimegauges JSON file weather program dependent so updates to the JSON file for one program can
      be made idenpendently of the others
  * Updated realtimegaugesWC.txt
    - Added tag value for CurrentSolarMax to replace "N/A"
    - Version uplifted to 11
Title: Re: Steel Gauges
Post by: WCDev on May 19, 2013, 07:45:20 PM
Be aware that CPS$ hasn't been released yet (but is available in the current development builds). This goes back to a conversion we had a while back about how I'd put in the tag in the 1.2.0 development.

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: wurzelmac on May 19, 2013, 07:54:53 PM
...can you check it out for errors, if it is OK it will become the official release...
Adjusted all changes to fit optical with my weather site: It works as expected, give it a go!
(Maybe you should give a note that this version of SteelGauges would only work with WeatherCat V1.2 onwards - because the desired tag is available not prior this version.)

Thanks a lot!
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on May 19, 2013, 09:03:40 PM
OK, version 2.3.2 is 'official'

I have actually made a couple of changes from the test version posted earlier. The script now checks for WC version 1.2 or later (was 1.12) and I have added Portuguese to the language files.

http://wiki.sandaysoft.com/a/SteelSeries_Gauges

2.3.2
  * Only WeatherCat users need to update from v2.3.1 unless you want the additional Portuguese translation
  * WeatherCat version 1.2 or later is required to run this update.
  * Updated gauges.js
    - Fixed handling of current theoretical solar radiation in doSolar() for WC users
    - Made realtimegauges JSON file weather program dependent so updates to the JSON file for one program can be made idenpendently of the others
  * Updated realtimegaugesWC.txt
    - Added tag value for CurrentSolarMax to replace "N/A"
    - Version uplifted to 11
  * Updated language.js/language.min.js
    - Added Portuguese translation by 'Werk_AG'
Title: Re: Steel Gauges
Post by: JosBaz on May 20, 2013, 08:52:45 AM
Thank you Mark and Reinhard.

Works fine for me too now.
FYI: since WC 1.2 was not available yet, I downloaded the version 2.3.2 files and then replaced the gauges.js with the version you posted here (gauges.js.txt). Made adjustments for it to support my directory structure and all working fine now.
  [woohoo]

Upgraded to WC 1.2 just now and replaced the gauges file with the new one. All is fine!  :)

Jos
Title: Re: Steel Gauges
Post by: mcrossley on May 20, 2013, 09:21:04 AM
Sorry, I hadn't realised WC v1.20 was a dev release - hopefully it will be production before too long.
Title: Re: Steel Gauges
Post by: wurzelmac on May 20, 2013, 09:29:41 AM
Hi Mark,
the latest Version installed and running - all perfect except the following typo: In the "realtimegaugesWC.txt" the new tag is wrong named  "CP$" instead of correct "CPS$" - for me it was no problem but for other ones you should correct it. Shouldn't be a lot of work.  :)

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on May 20, 2013, 09:41:14 AM
Oops, thanks Reinhard - I have updated the 3.2.2 zip file with the amended realtimegaugesWC.txt file.

Please re-download it if you are not comfortable editing the file yourself.

I really need to recruit a WC beta tester or two for the next release.
Title: Re: Steel Gauges
Post by: wurzelmac on May 20, 2013, 09:44:23 AM
I really need to recruit a WC beta tester or two for the next release.


 ;D
Title: Re: Steel Gauges
Post by: jf-i2r on May 20, 2013, 10:09:25 AM
hi

thanks Mark and Reinhard   downloaded and  Installed [tup]

Reinhard is a very good WC beta tester  [cheers1]

cheers
jean frédéric
Title: Re: Steel Gauges
Post by: WCDev on May 21, 2013, 10:21:37 PM
Sorry, I hadn't realised WC v1.20 was a dev release - hopefully it will be production before too long.

I'm currently throwing stuff out of the dev plan left right and centre. I've been working on the 1.2 run for 6 weeks now and Mantis tells me I'm roughly 1/3 of the way through :( Gonna have to cut some stuff out...
Title: Re: Steel Gauges
Post by: mcrossley on June 04, 2013, 03:28:44 PM
Version 2.4.0 is available. A bug fix for VWS users, and a new look UV gauge for everyone.
The updated files are gauges.js and realtimegaugesWC.txt.

Thanks to Reinhard for testing this.

Quote
2.4.0
  * Updated gauges.js
    - Added global gauge option fullScaleDeflectionTime to control pointer 'speed'
    - Changed the UV gauge to use new gradient scale colours by default
    - Added Today's High value to the UV gauge
    - Changed rain gauge to always use blue LEDs - line 653
    - Fixed the 0.5" rain gauge code introduced in version 2.3.1
    - Applied fix for VWS not supplying the correct value for max rain rate today
  * Updated the realtime JSON files to include today's high UV value
    - Cumulus - realtimegaugesT.txt - v11
    - Weather Display - customeclientrawlocal.txt - v10
    - Weather Cat - realtimegaugesWC.txt - v12
    - Meteobridge - see Ken True's web site for updated script - v10
Title: Re: Steel Gauges
Post by: mcrossley on June 09, 2013, 01:36:33 PM
Version 2.4.1 is available, fixes a bug in the rain rate gauge autoscaling when using Inches and the value is between 0.5" and 1.0"
Title: Re: Steel Gauges
Post by: WCDev on June 09, 2013, 03:36:00 PM
Thanks for notification of the update Mark  [tup]
Title: Re: Steel Gauges
Post by: ELO on June 09, 2013, 10:01:19 PM
Mark,

I see where you made the change in the rain rate gauge function in line 1559. I'm no expert, but it seems like the same change from 1 to 0.5 should also be made in the rain gauge function at line 1521 in order to change the scaling when more than 1/2 inch of rain (rather than 1 inch) has accumulated. In fact I've been just patching the gauges.js file using a value of 0.45 ever since our original discussion where you made the basic gauge scaling change to .5 as a starting point.

Let me know if I've got this wrong!

Rick
Title: Re: Steel Gauges
Post by: mcrossley on June 10, 2013, 09:08:51 AM
Argggh!!! How did I miss that :( You are quite correct.
Title: Re: Steel Gauges
Post by: mcrossley on June 10, 2013, 10:28:57 AM
Version 2.4.2 is available, fixes a bug in the rain gauge autoscaling when using Inches and the value is between 0.5" and 1.0" - I stupidly missed this change out from 2.4.1
Title: Re: Steel Gauges
Post by: ELO on June 10, 2013, 01:28:28 PM
Thanks!

 [cheers1]

Rick
Title: Re: Steel Gauges
Post by: Randall75 on June 10, 2013, 04:22:59 PM
Hey Mark
 Don't beat your self in the head that why we are here to test the gauges for you
 it's going to happen
cheers
 [cheers1]
Title: Re: Steel Gauges
Post by: Tailspin45 on June 17, 2013, 03:44:24 PM
Weird problem with temperature units resetting.

http://athena.trixology.com/index.php?topic=828.msg7274#msg7274 (http://athena.trixology.com/index.php?topic=828.msg7274#msg7274)

Any ideas?
Title: Re: Steel Gauges
Post by: mcrossley on July 23, 2013, 10:38:39 PM
Version 2.4.3 is available, it fixes a missing units conversion for the maximum hourly rainfall today, a minor tweak to the UV level thresholds, and a change to the UV warning wording (English only).
Title: Re: Steel Gauges
Post by: wurzelmac on July 25, 2013, 11:24:25 AM
Thanks, Mark! Installed and working.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: wurzelmac on September 02, 2013, 06:54:17 AM
Version 2.4.4 available, installed and working fine.  :)

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: jf-i2r on September 29, 2013, 10:24:50 AM
hi

did some one can explain why with safari with my MacBook pro http://www.jf-i2r.com/gauges/gauges-ss-basic.htm  is ok but with ipad or iphone not ok and same problem with google chrome and firefox

MacBook pro :

(http://img841.imageshack.us/img841/904/m7my.jpg) (http://imageshack.us/photo/my-images/841/m7my.jpg/)

iphone:

(http://img841.imageshack.us/img841/3862/h5bv.jpg) (http://imageshack.us/photo/my-images/841/h5bv.jpg/)

thanks
jf
Title: Re: Steel Gauges
Post by: mcrossley on September 29, 2013, 11:41:33 AM
Hi, yes you are running version 2.2.2 of the gauges, there was a fix in version 2.3.1 for this...

  * Updated src/steelseries.js
    - New library version v0.14.3 - Fixes script exception/crash in Firefox v21+
    - Also updated src/steelseries.min.js & steelseries_tween.min.js

The latest version is 2.4.4
Title: Re: Steel Gauges
Post by: jf-i2r on September 29, 2013, 01:43:07 PM
hi mcrossley

thanks , i've loose to update one file after update all , now it's work  http://www.jf-i2r.com/wxstation-jf.php [bounce]

cheers  [cheers1]
Title: Re: Steel Gauges
Post by: wurzelmac on October 10, 2013, 09:31:18 PM
Is there anything I can do to make my steel-gauges w3c-conform (XHTML 1.0 Strict!)?

http://validator.w3.org/check?uri=http%3A%2F%2Fwetter.unterwurzacher.at%2Fsteelgauges%2Flivewerte.html&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on October 10, 2013, 09:34:53 PM
Nope! Not as xhtml anyway, they are html5, the supplied sample page does validate though.
Title: Re: Steel Gauges
Post by: wurzelmac on October 11, 2013, 12:08:26 PM
Thanks, Mark - got it marked and coded as HTML5 and passed all validations: HTML Validation (http://validator.w3.org/check?uri=http%3A%2F%2Fwetter.unterwurzacher.at%2Fsteelgauges%2Flivewerte.html&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices) and CSS Validation (http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwetter.unterwurzacher.at%2Fsteelgauges%2Flivewerte.html)!
 [bounce]
Now I will try to make the rest of my weather-site HTML5 ready!
Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Chippa05 on December 04, 2013, 10:12:18 AM
I have recently noticed a problem with my pressure gauge - it is appearing red and showing (static) incorrect readings.  I upgraded to the latest version of SteelSeries gauges and found no change.  Can anyone suggest what might be going on and a possible fix?
Title: Re: Steel Gauges
Post by: mcrossley on December 04, 2013, 11:08:46 AM
Can you provide a link to the page?
Title: Re: Steel Gauges
Post by: Chippa05 on December 05, 2013, 01:16:18 AM
Sure - http://www.weather.shanehoskingphotography.com/gauges-ss-basic.htm

Thanks Mark
Title: Re: Steel Gauges
Post by: mcrossley on December 05, 2013, 08:52:10 AM
OK, here are the pressure values you are sending...
Code: [Select]
press: "1,017.1"
pressH: "1,036.0"
pressL: "994.8"
pressTH: "1,017.1"
pressTL: "1,008.1"
presstrendval: "0.7"
pressunit: "hPa"

The gauge code attempts to parse the supplied values by first scanning for commas and converting them to full stops (to allow for the many people around the world that use comma for a decimal). This is the first time I have seen data being sent with commas for thousands separators. The gauge code is interpreting your values as pressure = 1.017 etc.

I don't know WC, but can you change the number format to stop using a thousand separator? It is unusual to see one in pressure values anyway.
Title: Re: Steel Gauges
Post by: Chippa05 on December 05, 2013, 09:42:48 AM
Thanks Mark.  Your keen eye helped me find a post detailing the comma separator issue that was in build 14.  The latest link is build 16 which apparently has a fix for this issue.  I'll download and install and see how it goes.  Appreciate your response!
Title: Re: Steel Gauges
Post by: Blicj11 on December 17, 2013, 06:09:52 PM
Looks like you have your steel gauges up and running. It's a great template isn't it?
Title: Re: Steel Gauges
Post by: Blicj11 on December 17, 2013, 06:15:09 PM
Chippa05:

One suggestion is that your use of black on black in the footer of your steel gauges page renders the text invisible, cutting out the acknowledgements of the template developers. If you highlight that section with your mouse, you can see what would show up if you changed the colour:

Scripts by Mark Crossley - version 2.4.4 - 2013-08-25
Gauges drawn using Gerrit Grunwald's SteelSeries JavaScript library
Wind Rose drawn using RGraph
powered by WeatherCat v1.23 (b16)
Title: Re: Steel Gauges
Post by: TechnoMonkey on August 30, 2014, 05:21:23 AM
Some bugs and lot's of work to go, but I got it up and running.

mac.technomonkeys.com/Weather (http://mac.technomonkeys.com/Weather)

Critique and suggestions always considered.
Title: Re: Steel Gauges
Post by: Blicj11 on August 30, 2014, 02:26:09 PM
Some bugs and lot's of work to go, but I got it up and running.

mac.technomonkeys.com/Weather (http://mac.technomonkeys.com/Weather)

Critique and suggestions always considered.
The link to your site isn't working for me this morning.
Title: Re: Steel Gauges
Post by: TechnoMonkey on August 30, 2014, 03:13:51 PM
I did not see anything in the server logs.  I will have to check the link later when I get to another location.  Everything always works onsite.

try   173.147.77.161/Weather (http://173.147.77.161/Weather).  If you type it in manually, the 'Weather' must be capitalized and no 'www'.
Title: Re: Steel Gauges
Post by: wurzelmac on August 30, 2014, 03:27:58 PM
Not working here, too - sorry.  :-[

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on August 30, 2014, 04:20:19 PM
Nope, neither dns name nor IP address work for me either.
Title: Re: Steel Gauges
Post by: Blicj11 on August 30, 2014, 07:11:39 PM
I have two questions about my steel gauges.

1. What is portrayed by the two dark red pie-slice wedges on either end of the pressure gauge?

2. The external humidity gauge displays a light red pie-slice wedge portraying the range during the last 24 hours. How can I add that same feature to the internal humidity?
Title: Re: Steel Gauges
Post by: mcrossley on August 30, 2014, 11:19:59 PM
Hi Block, the darker red sectors on the pressure gauge denote your all time low and high pressure records.
As I originally wrote the gauges for Cumulus which does not keep hi/lo data for the indoor humidity there is code in there to disable the sector when indoor humidity is displayed, if WC has this data then you will need to add it to the Jason data file, and undo the code in doHum() that suppresses the sector.

I'm on a tablet at the mo so cannot look at the code to suggest what you do, if you cannot figure it out I'll take a look tomorrow.
Title: Re: Steel Gauges
Post by: Blicj11 on September 03, 2014, 07:37:03 AM
As I originally wrote the gauges for Cumulus which does not keep hi/lo data for the indoor humidity there is code in there to disable the sector when indoor humidity is displayed, if WC has this data then you will need to add it to the Jason data file, and undo the code in doHum() that suppresses the sector.

I'm on a tablet at the mo so cannot look at the code to suggest what you do, if you cannot figure it out I'll take a look tomorrow.

Mark:

I have attached a screenshot of my gauges.js file. I assume lines 1601 and 1626 are what I need to change, but I'm not sure. Can you please tell me what those two lines of code do? Do I just duplicate line 1596 for 1601 but replace data.humTL with data.inhumTL, etc?

I know you don't run WC but any insight you can offer is appreciated.
Title: Re: Steel Gauges
Post by: mcrossley on September 03, 2014, 08:01:02 AM
Yes that should do it, you will obviously also have to add the two additional data items to your data file that WC produces as well.
Title: Re: Steel Gauges
Post by: Blicj11 on September 05, 2014, 06:18:48 AM
Mark:

Thanks to your help on this, I have now successfully modified my steel series internal humidity gauge to display today's range. I did this because I have a whole-house humidifier that kicks on when internal humidity falls below 30%. Tracking the internal humidity range is helpful to me to see how much of the day required the humidifier. Thanks for a great template and for your assistance.
Title: Re: Steel Gauges
Post by: mcrossley on September 05, 2014, 07:40:34 AM
No problem, I have added this as a standard feature for the next release (for those programs that supply the data).
Title: Re: Steel Gauges
Post by: wurzelmac on September 05, 2014, 02:33:46 PM
Hi Blick & Mark,
done those mods of the int hum gauge as well and it is working nice!
Thanks Blick for bringing this idea and the "how to" into the crowd.
Thanks Mark for support!
Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on September 05, 2014, 02:39:24 PM
For reference, my complete doHum() function now looks like this (in v2.5.0beta 14/9/5). It caters for those (such as Cumulus users) who do not have the additional indoor data in the realtime file.
Code: [Select]
        doHum = function (radio) {
            //if rad isn't specified, just use existing value
            var sel = (radio === undefined ? _hum.selected : radio.value),
                popupImg, tip;

            if (sel === 'out') {
                _hum.value = extractDecimal(data.hum);
                _hum.areas = [steelseries.Section(+extractDecimal(data.humTL), +extractDecimal(data.humTH), gauge.minMaxArea)];
                _hum.title = strings.hum_title_out;
                popupImg = 0;
            } else {
                _hum.value = extractDecimal(data.inhum);
                if (data.inhumTL && data.inhumTH) {
                    _hum.areas = [steelseries.Section(+extractDecimal(data.inhumTL), +extractDecimal(data.inhumTH), gauge.minMaxArea)];
                } else {
                    _hum.areas = [];
                }
                _hum.title = strings.hum_title_in;
                popupImg = 1;
            }

            if (_hum.selected !== sel) {
                _hum.selected = sel;
                //Change gauge title
                _gaugeHum.setTitleString(_hum.title);
                if (config.showPopupGraphs) {
                    $('#imgtip4_img').attr('src', config.imgPathURL + config.tipImgs[4][popupImg] + _cacheDefeat);
                }
            }

            _gaugeHum.setArea(_hum.areas);
            _gaugeHum.setValueAnimated(_hum.value);

            if (ddimgtooltip.showTips) {
                //update tooltip
                if (_hum.selected === 'out') {
                    tip = strings.hum_out_info + ':' +
                        '<br>' +
                        '- ' + strings.minimum_info + ': ' + extractDecimal(data.humTL) + '% ' + strings.at + ' ' + data.ThumTL +
                        ' | ' + strings.maximum_info + ': ' + extractDecimal(data.humTH) + '% ' + strings.at + ' ' + data.ThumTH;
                } else if (data.inhumTL && data.inhumTH) {
                    // we have indoor high/low data
                    tip = strings.hum_in_info + ':' +
                         '<br>' +
                        '- ' + strings.minimum_info + ': ' + extractDecimal(data.inhumTL) + '% ' + strings.at + ' ' + data.TinhumTL +
                        ' | ' + strings.maximum_info + ': ' + extractDecimal(data.inhumTH) + '% ' + strings.at + ' ' + data.TinhumTH;
                } else {
                    // no indoor high/low data
                    tip = strings.hum_in_info + ': ' + extractDecimal(data.inhum) + '%';
                }
                $('#imgtip4_txt').html(tip);
                if (_refreshGraphs && config.showPopupGraphs && config.tipImgs[4][0] !== null) {
                    $('#imgtip4_img').attr('src', config.imgPathURL + config.tipImgs[4][popupImg] + _cacheDefeat);
                }
            }
        },
Title: Re: Steel Gauges
Post by: wurzelmac on September 05, 2014, 06:04:19 PM
Thanks Mark,
much appreciated! Copied & pasted the whole code and working like a charm!
Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on September 05, 2014, 11:18:06 PM
No problem, I have added this as a standard feature for the next release (for those programs that supply the data).

Mark, whilst you are thinking about the next release, is there a possibility you would consider adding the option of including the daily range in internal temperature as well? I am considering modifying that section too but it's a wee bit more complicated than internal humidity.
Title: Re: Steel Gauges
Post by: mcrossley on September 06, 2014, 04:01:34 PM
I'll have a look, but it may be a while...
Title: Re: Steel Gauges
Post by: TechnoMonkey on September 11, 2014, 03:41:29 AM
There are some issues with Sprint blocking most of my ports including 80, 8080, 8088.  I still do not know why I can access my website via iPhone but not computer.  I guess it is time to cut Sprint off and get a better service.  For now, I have my DDNS porting to 984.

mac.technomonkeys.com/Weather (http://mac.technomonkeys.com/Weather)
Title: Re: Steel Gauges
Post by: Blicj11 on September 11, 2014, 03:08:35 PM
For now, I have my DDNS porting to 984.

I can see your steel gauges, but they load very slowly. I know it takes a second or two for DDNS to resolve, but this seems out  of the ordinary slow to me.
Title: Re: Steel Gauges
Post by: TechnoMonkey on September 11, 2014, 06:19:31 PM
It is my Sprint service.  Sometimes quick, most of the time slow.  Just got off the phone and I will be trying out a new service come Monday and should also be able to resolve on the proper port 80.
Title: Re: Steel Gauges
Post by: TechnoMonkey on September 23, 2014, 03:37:13 AM
Sprint go bye-bye.  My weather station is online with standard ports.

mac.technomonkeys.com/Weather (http://mac.technomonkeys.com/Weather)

(Best viewed with Safari or Chrome)
Title: Re: Steel Gauges
Post by: Steve on September 24, 2014, 12:34:59 AM
Looks great! You do have a weird word-wrap, though (Safari 7.1 on Mac OS X 10.9.5)

(http://www.morrisgarage.com/skitch/TechnoMonkeys_Weather-20140923-193336.jpg)

Steve
Title: Re: Steel Gauges
Post by: TechnoMonkey on September 24, 2014, 02:17:29 AM
I changed the tables to divs.  I am running Safari 6.1.6 and OS X Server 10.7.5.

I will recheck my divs.

Thanks
Title: Re: Steel Gauges
Post by: Steve on September 24, 2014, 03:07:36 AM
It looks OK now (10 PM EDT)
Title: Re: Steel Gauges
Post by: TechnoMonkey on September 25, 2014, 12:34:23 AM
Thanks for your input.

By the way, I was raised in Ohio. Mentor Headlands, Kirtland and Perry.
Title: Re: Steel Gauges
Post by: Blicj11 on January 31, 2015, 02:53:30 AM
For anyone who might be interested, Mark Crossley's latest version of SteelSeries Gauges is 2.5.3 dated 30 January 2015. He has made some nice improvements since 2.4. The folders in the download have been slightly reorganised, several options have been added to the Series and the documentation is better. You can read about the changes in the latest release here: http://wiki.sandaysoft.com/a/SteelSeries_Versions

I have edited the WeatherCat wiki entry to reflect line numbers and a few of the tweaks in the latest release. You can view that at: http://wiki.trixology.com/index.php/Steel_Series_Gauges

The SteelSeries Gauges continue to be a remarkably cool way to display current weather conditions. On behalf of WeatherCatters who use SteelSeries Gauges, I thank Mark for his many hours of fine-tuning this software and for helping out many of us here in this forum to debug our website installations. I also very much appreciate the changes that Stu has made (and continues to make) so that WeatherCat supports these gauges.

Mark and Stu, you guys are brilliant and your work is dead on.  [tup]
Title: Re: Steel Gauges
Post by: WCDev on February 01, 2015, 12:38:18 PM
Thanks Blick, nice work on the wiki  [tup]
Title: Re: Steel Gauges
Post by: wurzelmac on February 09, 2015, 10:45:05 AM
Hello Blick,

you may add a section in the Wiki for an upgrading procedure (e.g. from 2.4.4. to a higher version):
? Wich files are to be replaced (maybe the whole distribution)?
? When replacing/upgrading it is important to go into the replaced files with a text editor and do all the changes that are done to earlier files again (e.g. gauges-ss.css, gauge styles and counter settings in gauge.js, changes in languages.min.js and so on).

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on February 09, 2015, 03:48:02 PM
Good suggestion Reinhard. I added a section at the bottom of the Wiki entry covering upgrades. Please take a look and let me know if I missed anything.

http://wiki.trixology.com/index.php/Steel_Series_Gauges
Title: Re: Steel Gauges
Post by: wurzelmac on February 09, 2015, 04:56:06 PM
Thank you very much, Blick. Looks good!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on February 09, 2015, 07:57:47 PM
v2.5.4 with support for the WC cloudbase tags is now available from GitHub.
Title: Re: Steel Gauges
Post by: Blicj11 on February 09, 2015, 08:22:28 PM
Thank you very much, Blick. Looks good!

Reinhard, did you just copy over the files into your existing structure or did you replace the whole thing and redo your customisations?
Title: Re: Steel Gauges
Post by: Blicj11 on February 09, 2015, 08:24:31 PM
v2.5.4 with support for the WC cloudbase tags is now available from GitHub.

Mark:

Thank you so much for your extremely fast revision to accommodate WeatherCat users with the new Cloudbase Gauge!
Title: Re: Steel Gauges
Post by: wurzelmac on February 09, 2015, 08:25:01 PM
Thanks Mark for making SteelSeries Gauges (and the latest update) available for us.

(And for the patience to me.)

 [cheers1]
Reinhard
Title: Re: Steel Gauges
Post by: wurzelmac on February 09, 2015, 08:36:59 PM
Quote
Reinhard, did you just copy over the files into your existing structure or did you replace the whole thing and redo your customisations?

First of all let me say that I prefer Option 2 (from the Wiki). I did replace the whole distribution - into a new folder on the server at the same location as the old "steelgauges" folder was, I named it something like "steelgauges_new". So I could easily compare the changes that I have made on gauges-ss.css, gauges.js and so on. After all working fine in the new folder, I renamed "steelgauges" into "steelgauges_old" and "steelgauges_new" into "steelgauges".
Attached a screenshot of my structure on the web server.

Hope this helps.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on February 09, 2015, 09:29:16 PM
Thanks for the information. I agree with you. Option 2 is a cleaner way to keep it organised. I am going to work on my site now and see if I can remember how to do this. I'll let you know how turns out.
Title: Re: Steel Gauges
Post by: wurzelmac on March 05, 2015, 11:40:19 AM
I crawled through the WWW to find others using Steel Gauges - very interesting how versatile those gauges can be used. Attached a few links. Let me know of other links and I will add them to this thread (or would you like to add them to the Wiki, Blick?).

Cheers,
Reinhard

No Wait Weather: http://nowaitweather.com/wxssgauges.php

Yoxford:  http://www.yoxford-weather.co.uk/gauges-ss-basic.htm

Timberlakes: http://timberlakesutah.com/weather-gauges-explained/

Sommentier: http://www.sommentier.ch/meteo/index_new.php

La Noue Beach: http://www.jf-i2r.com/wxstation-jf.php

Son en Breugel: http://www.weerenmeer.nl/live_weer.php

Randys Weather On The Hill: http://randysweatheronthehill.com/gauges-ss-basic.htm

Long Road: http://www.avon-weather.com/steel/live.htm

Pr?graten am Gro?venediger: http://wetter.unterwurzacher.at/steelgauges/livewerte.html

Breckenridge: http://www.oshlo.net/weather/BreckWx.html

Point Cook: http://pcweather.kcsolutions.com.au/gauges/

Wilmslow Weather: http://weather.wilmslowastro.com/gauges-ss.php

Cecil County: http://www.cecilweather.com/wxgauges.php

Saratoga Weather: http://saratoga-weather.org/gauges.php

Carlsbad Obervatory: http://carlsbadwx.com/wxgauges.php

Leuven: http://www.weerstation-leuven.be/weather2/index.php?p=25&lang=en

Tasmania: http://www.geoffmurray.com/gauges-ss-basic.htm

Carefree Weather: http://carefreeweather.silvertooth.us/Cumulus/gauges-dark_UV.php

East Dallas TX Weather: http://www.eastdallasweather.com/weather2/index.php?p=97&lang=en

Wishaw Weather: http://www.andersonweather.co.uk

Indian Mountain Lakes: http://weather.hoke.org/weather2/index.php?p=25

Technomonkeys: http://mac.technomonkeys.com/Weather/main.php?page=steel.php

Uranusweather: http://www.uranusweather.com/weather2/index.php?p=25

D?rren?sch: http://www.domani.ch/domaniwetter/index.php
Title: Re: Steel Gauges
Post by: Blicj11 on March 05, 2015, 06:12:36 PM
Brilliant idea Reinhard. I just added these to the Wiki.
Title: Re: Steel Gauges
Post by: Randall75 on March 05, 2015, 10:45:04 PM
Hi gang
 How does the steal gauges at Breckenridge put the time in the forecast ticker?


cheers [cheers1]
Title: Re: Steel Gauges
Post by: mcrossley on March 05, 2015, 11:01:26 PM
You can put whatever tags you want into the ticker, just add them to the forecast entry from
Code: [Select]
"forecast":"Current forecast is -- CF$ --",
to say
Code: [Select]
"forecast":"de$ -- forecast is -- CF$ --",
If you look at my page I have changed it too.
Title: Re: Steel Gauges
Post by: Randall75 on March 05, 2015, 11:24:41 PM
Hi Mark
 Thanks for the reply [tup]





cheers   [cheers1]
Title: Re: Steel Gauges
Post by: Blicj11 on March 06, 2015, 07:21:06 AM
You can put whatever tags you want into the ticker, just add them to the forecast entry from
Code: [Select]
"forecast":"Current forecast is -- CF$ --",
to say
Code: [Select]
"forecast":"de$ -- forecast is -- CF$ --",

Thanks for the explanation. I have added this to the wiki.

Good question Randall.
Title: Re: Steel Gauges
Post by: wurzelmac on March 25, 2015, 06:50:08 PM
Mark,

thanks for upgrading to 2.5.7 (http://wiki.sandaysoft.com/a/SteelSeries_Gauges#Downloads)!

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: xairbusdriver on April 21, 2015, 11:58:23 PM
There is another place that might be nice to mention editing in the Steel Gauges Wiki. In the web_server directory is a file called "steelseriesVWSjson.php". Line 50 is a place for setting ones time zone. The file comes with a setting of "America/Los Angles", I think. If you don't live in the Pacific time zone and you want times translated to your local time, you'll need to change it to a major city in your time zone. Here's a <list of countries/cities (http://us.php.net/manual/en/timezones.america.php)> that PHP uses. Since I'm in the Central Time Zone, I just changed the city to "Chicago".

Of course, my page is still not live, so I can't vouch for my "expertise".  [blush] [lol] [banghead] If your site is working the way you want, don't 'fix' what ain't broke! [goofy]
Title: Re: Steel Gauges
Post by: Blicj11 on April 22, 2015, 05:39:53 AM
Xair:

As this script was written by Ken True, I assume that it is only used by those who are using the Saratoga Template for their website. My site is a WordPress site and this script does not appear to have any impact on my SteelSeries Gauges. My line 50 is still set on the default of Los Angeles and my gauges look fine to me. The time and date in the forecast window is correct and the dates and times in the popup graphs are all correct for my local time.
Title: Re: Steel Gauges
Post by: mcrossley on April 22, 2015, 09:18:01 AM
The steelseriesVWSjson.php script is for people using the Ambient Virtual Weather Station software.
Title: Re: Steel Gauges
Post by: xairbusdriver on April 22, 2015, 04:54:52 PM
OK. It's probably noted in the notes somewhere. Only reason I noticed it was because I had gone through the Saratoga files and seen a similar setting. Just follow my last line in my previous message. ;)
Title: Re: Steel Gauges
Post by: Blicj11 on August 01, 2015, 07:23:12 PM
Mark:

I have a question and a request.

In previous versions of the SteelSeries Gauges, there was a windrose.js file where one could change the colour of the windrose gradient. In the 2.5x releases this file is no longer part of the setup. I looked at your FAQ and it still refers to the windrose.js file. Where is the setting for wind rose plot colours?

The request is one more plea that you consider including your "altimeter" design for the cloud base gauge in a future release. Reinhard and I are still big fans of that tweak, which we hope you will share before you permanently "put your feet up."

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on August 01, 2015, 11:06:14 PM
Hi Blick, I'm currently away on vacation so I can't directly answer your question about the colours - replying from my phone - I'll come back to this sometime w/c 10th August, if I forget please poke me a reminder towards the end of that week.

Edit: sorry, blomin' spell checker on the phone changed your name to Block!
Title: Re: Steel Gauges
Post by: Blicj11 on August 02, 2015, 04:09:17 PM
Reinhard & Randy (or anyone else who uses custom graphs):

What is the relationship between the settings you enter in WC on a custom graph for the Web Width and Web Height and the pixels you set in the gauges-ss.css file for width and height?

I have been experimenting with custom graphs. So far, I know that if you just adjust the gauges-ss.css file, it appears to just stretch out the custom graph and it looks bad. Reinhard, your popup graphs look great. What did you adjust to get the size allocated correctly?

Thanks.
Title: Re: Steel Gauges
Post by: wurzelmac on August 03, 2015, 07:41:05 AM
Hallo Blick,

it is easy to adjust the size correctly:
First take a look at WC and adjust the output of the graph to (in my case) 600 x 250 px.
Second go to gauges-ss.css and find .tipimg and set it to the same size as you have chosen in WC.
You are done!

Cheers,
Reinhard

Title: Re: Steel Gauges
Post by: Blicj11 on August 04, 2015, 09:02:20 AM
Thanks Reinhard. I have now switched all of my popup graphs over to custom graphs. The custom graphs are much easier to read than the defaults.
Title: Re: Steel Gauges
Post by: Blicj11 on August 17, 2015, 01:06:39 AM
Mark:

Hope you enjoyed your holiday. This is just a reminder to have a look at this:

http://athena.trixology.com/index.php?topic=576.msg15885#msg15885

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on August 17, 2015, 05:13:06 PM

In previous versions of the SteelSeries Gauges, there was a windrose.js file where one could change the colour of the windrose gradient. In the 2.5x releases this file is no longer part of the setup. I looked at your FAQ and it still refers to the windrose.js file. Where is the setting for wind rose plot colours?

OK, that one is fairly easy, windrose.js has been replaced with RGraph.rose.js (actually the supplied demo pages use the minimised version RGraph.rose.min.js).

All the default colour definitions are defined in the this.properties object near the top of the file. Note these are what RGraph uses by default.
Code: [Select]
            'chart.colors':                 ['rgba(255,0,0,0.5)', 'rgba(255,255,0,0.5)', 'rgba(0,255,255,0.5)', 'rgb(0,255,0)', 'gray', 'blue', 'rgb(255,128,255)','green', 'pink', 'gray', 'aqua'],

Now you could edit that file and re-minimise it, but it is a standard distribution, so it is better to over-ride the defaults in gauges.js, which is what I have done.

So if you look in singleRose.update() at line 2121 onwards you will see I define a three point colour gradient for the chart plot at line 2137...

Code: [Select]
                        rose.Set('chart.colors', ['Gradient(#408040:red:#7070A0)']);
So that sets the min. value colur to to 0x408040 (darkish green), mid point red (0xff0000), and max. value 0x7070A0 (darkish purple)

I think it is those colours you are after?

You could set a solid colour in there if you wanted, or a two point gradient.

I'll reply to the second question separately.

PS: The holiday was great - plenty of surfing/body boarding on Fistral beach, Cornwall.
Title: Re: Steel Gauges
Post by: Blicj11 on August 17, 2015, 06:01:32 PM
Terrific. Thanks for the explanation.

Is there a similar override for the gradient colours used in the rainfall gauge? I notice that gauge starts in green and goes to yellow, but there does not appear to be a third colour in the gradient. I have searched through the gauges.js file but am a wee bit confused about the rainfall gauge gradient colour controls.
Title: Re: Steel Gauges
Post by: mcrossley on August 17, 2015, 10:34:45 PM
Terrific. Thanks for the explanation.

Is there a similar override for the gradient colours used in the rainfall gauge? I notice that gauge starts in green and goes to yellow, but there does not appear to be a third colour in the gradient. I have searched through the gauges.js file but am a wee bit confused about the rainfall gauge gradient colour controls.
The rainfall rate and rainfall total 'stepped' colours (not enabled by default) are defined in createRainRateSections (line 3089) and createRainfallSections (line 3112).

The continuous gradient colours for rainfall are defined in createRainfallGradient (line 3143), the full range of colours will be displayed from 0 - 100 mm, or 0 - 4 inches. You may want to 'tweak' those values.
Title: Re: Steel Gauges
Post by: Blicj11 on August 18, 2015, 09:07:10 AM
Again, thanks for the instruction. I would not have figured that out. I have tweaked the Rainfall Gradient values and now need to wait for a storm to see if I did it correctly.
Title: Re: Steel Gauges
Post by: wurzelmac on September 12, 2015, 08:10:36 PM
Hi Mark,
how about to add an additional temp sensor to the Temp-gauge?

*out*
*in*
*additional* (if turned on, user can give it a unique name in the script)

Possible?

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on September 16, 2015, 06:51:35 AM
The rainfall rate and rainfall total 'stepped' colours (not enabled by default) are defined in createRainRateSections (line 3089) and createRainfallSections (line 3112).

The continuous gradient colours for rainfall are defined in createRainfallGradient (line 3143), the full range of colours will be displayed from 0 - 100 mm, or 0 - 4 inches. You may want to 'tweak' those values.

Mark:

Thanks for explaining this. I tweaked my settings per your explanation and have been waiting for a storm to test my changes. We received that storm today and as you can see from the attached screenshot, it works great and I have updated the Wiki entry accordingly. Thanks mate.
Title: Re: Steel Gauges
Post by: Michel on September 17, 2015, 05:42:08 PM
Hello all !

I'm new to WeatherCat and bringing the data to the web and ran
into some difficulties with  the realtimegaugesWC.txt file.

In short, the gauges don't get updated.
I had a look at the browser's (Safari) error console and found
it throws a 404 when trying to access realtimegaugesWC.txt

In fact the file is where it should be, the problem seems to be
that it gets called with a parameter appended to the URL, ie.
http://michelswunderland.de/weather/realtimegaugesWC.txt?_=1234567890

The number included with the param is being incremented by 1 with each
attempt to read the file (every n seconds)...
Calling the file manually w/o the ?_=1234... appendix works just fine...

Since I'm no expert regarding JS ... can somebody please point out to me
- whether this param is actually needed for something (useful)
- whether this param can be omitted when calling the file
- where (in which script/function/line) the param is being appended to the URL

 Thanks for your insights !

   Michel



Title: Re: Steel Gauges
Post by: Blicj11 on September 17, 2015, 06:01:27 PM
Michel:

First, welcome to WeatherCat!

Your realtimegaugesWC.txt file needs to be located in whatever directory you have identified in WeatherCat Preferences | On-Line | Custom Web as your Set HTML Source.

WeatherCat will process that version and place the updated file with current data included in whatever directory you specified in WeatherCat Preferences | On-Line | Custom Web as your Set Save Path.

Then, your FTP settings in WeatherCat Preferences | On-Line | Custom Web should be uploading from the Set Save Path to your specified website upload location.

Good luck.
Title: Re: Steel Gauges
Post by: Michel on September 17, 2015, 06:20:33 PM
Blick,

thanks for your hints.

But the problem seems to be the webserver which is misinterpreting the param to be passed to a text file.
The file is in the right place, I'm quite sure it is.

Safari's error console says "404" - but if one calls the file manually without the "?_=1234565..." appendix, it shows up perfectly.


Title: Re: Steel Gauges
Post by: Blicj11 on September 17, 2015, 06:31:44 PM
Michel, can you do two things?
Title: Re: Steel Gauges
Post by: Michel on September 17, 2015, 06:35:13 PM
Blick,

thanks for your prompt response.

1 - Done :-)

2 - http://michelswunderland.de/weather/current.htm

Looking forward to a solution...

  Regards !

    Michel

Title: Re: Steel Gauges
Post by: Blicj11 on September 17, 2015, 06:53:11 PM
Michel:

When you open the processed data file in your WeatherCat Preferences | On-Line | Custom Web | Set Save Path do you see the correct data populated in the file?
Title: Re: Steel Gauges
Post by: Michel on September 17, 2015, 07:03:22 PM
Blick,

Ayup, I do.
There is just one minor error with cloudbasevalue. But this has - I think - nothing to do with the problem:

"cloudbasevalue":"***Syntax Error - expecting a variable type; or example EXTHUMIDITY or TEMPERATURE",
Say there is a wrong variable set in the template...

The problem most likely will be the param being passed along with calling the realtimeWC.txt which the webserver
doesn't like for a plain text file...

I wonder what I can do about that...

 Regards !

   Michel
Title: Welcome Michel (Was: Steel Gauges)
Post by: elagache on September 17, 2015, 11:11:36 PM
Dear Michel, Blick, and WeatherCat welcome wagon, . . . (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/welcomewagon.gif)

First things first, welcome to the WeatherCat forum! (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/welcome_smiley.gif)

I'm new to WeatherCat and bringing the data to the web and ran
into some difficulties with  the realtimegaugesWC.txt file.

Unfortunately, I"m not using that web template, so hopefully others will help you work through this problem.  However, once you have got your problem solved, please do us a favor and introduce yourself so we get you know your station installation a little better.  You can do that in this topic:

http://athena.trixology.com/index.php?board=8.0 (http://athena.trixology.com/index.php?board=8.0)

If there is anything unique about your weather station setup that you would like to share with us, by all means share that information in this forum topic:

http://athena.trixology.com/index.php?topic=969.0 (http://athena.trixology.com/index.php?topic=969.0)

We are always interested in learning about interesting ways to set up a weather station.

Thanks for joining the forum and we hope that you will continue to enjoy using WeatherCat!  [WCSmall]

Cheers, Edouard  [cheers1]
Title: Re: Steel Gauges
Post by: Blicj11 on September 17, 2015, 11:26:23 PM
Michel:

This is a bit weird so lets look at several things.

In your gauges.js file, on line 35, you have the following:

 imgPathURL        : './',

I assume that with this setting you are FTPing to the correct directory of your website. Line 35 shows that you should be FTPing to a subdirectory, one level removed from the root. Is this the case? It looks like your processed file is attempting to be FTPd to the XHRs directory. Is this where you expect it to be?

Can you manually FTP the processed file to the website and have it display on the gauges?

Also, make sure the box is checked in Preferences | Misc2 for Log FTP Operations. Then open the log and see if you get any additional info there about what is happening when WeatherCat attempts to FTP that file.

With regards to your template file, you should have two cloudbase variables:

"cloudbasevalue":"STAT$CLOUDBASE:CURRENT$",
"cloudbaseunit":"HEIGHTUNITS$",

Make sure they are both exactly correct.
Title: Re: Steel Gauges
Post by: Michel on September 18, 2015, 03:19:54 PM
Edouard,

thanks for your warm welcome. I'll honor that later in the "new member area".


Blick,

thanks for taking the time, but I meanwhile was able to identify the problem.
In short, all of the files are in the places they belong. It's the WASD webserver being too smart...

GAUGES.JS calls REALTIMEGAUGESWC.TXT and appends a number to the URL.
http://michelswunderland.de/weather/realtimegaugeswc.txt?_=12345678901234

The number appended is the system's time plus a counter - this is nothing but a trick to prevent
the page being cached.

The WASD webserver doesn't allow to pass parameters to files not being procedures or executables.
Moving the .TXT to the cgi-bin directory does help neither - the WASD webserver throws an error
that it can't start the file... it's pretty obvious why :-)

I've put the whole gear onto my VMS machine at home which is running an Apache webserver ...
and there it worked right out of the box... unfortunately, this machine is not running 24*365...

I think it's a configuration matter with the WASD webserver, but I think the owner of the machine
the WASD is runnning on has set this behaviour for an obvious reason - the "?whatever" appendix
to an URL can be used for nasty things...

The only solution to this problem seems to be a modification of GAUGES.JS so that it won't
append the parameter salad to the URL and to somehow prevent the page from being cached.


I think appending the parameter will happen around line 2614 in GAUAGES.JS,
but I'm not able to recognize how it is done...


So the question to the JavaScript experts here is:
What mod do I have to apply to GAUGES.JS  so that it won't append the parameter to the URL ?


  Regards !

     Michel



Title: Re: Steel Gauges
Post by: Blicj11 on September 18, 2015, 04:00:03 PM
Interesting discovery. I think we'll have to wait for Mark Crossley to weigh in here.
Title: Re: Steel Gauges
Post by: Michel on September 18, 2015, 06:17:19 PM
Welllll....

Having a closer look at GAUGES.JS it was pretty simple to disable the no-caching trick.
See attachment for applied mods - just 5 lines changed.

The result is at http://michelswunderland.de/weather/current.html

Next up is the question how to prevent the involved pages from being cached now...

And where are my indoor graphs ?? :-)

 Regards !

   Michel


PS: You need to open the attachemnt - the picture below is not the full truth...
Title: Re: Steel Gauges
Post by: Blicj11 on September 18, 2015, 11:20:50 PM
Progress! Looks like you are offline right now, but I saw some popup graphs.
Title: Re: Steel Gauges
Post by: Michel on September 18, 2015, 11:27:48 PM
Blick,

Offline ? Me ? Naah... never;-)

You are right indeed - at least a bit of progress.
It seems there is a chance I will get the spare part for the outdoor unit tomorrow
and so I hope to bring the outdoor values online again tomorrow...

And maybe the indoor graphs as well...

  Regards !

    Michel
Title: Re: Steel Gauges
Post by: xairbusdriver on September 18, 2015, 11:30:09 PM
I know your country code for your top level domain means you are probably in Germany, but that javascript is Greek to me! [blush]Never the less, I send you a hearty Welcome AboaRd, Michel! Looking forward to reading a post from you in the New Members area! BTW, your English is superb! [cheer]
Title: Re: Steel Gauges
Post by: Michel on September 18, 2015, 11:53:05 PM
xairbusdriver,

> [probably Germany]

BINGO ! That's absolutely correct, more precise in Northern Germany, 30km SW of the Baltic Sea
and 50km E of the North Sea, between Kiel and Hamburg. You may want to have a look at my profile's map.

> [JavaScript / Greek]

Yep ! In fact, it was like Chinese to me before I had a closer look at it.
But then, I'm in the IT business since 1984... having seen quite a few
languages helped to decipher it.

> [New Members area...]

I'll compose a resume ASAP ;-)
 
> BTW, your English is superb!

Come on, please refrain from exaggerations  ! :-)
But seriously, thanks for the kudos.

  Regards !

    Michel

Title: Re: Steel Gauges
Post by: WCDev on September 19, 2015, 03:07:18 PM
Welcome to the forum Michel  [tup]

Note, you'll need to update to the latest WeatherCat to fix your cloud base tag issue; it went in at version 2.1.0.
Title: Re: Steel Gauges
Post by: Michel on September 19, 2015, 10:02:16 PM
WCDev,

thanks for the pointer regarding the update. I've been a good user and updated to 2.2.1 immediately ;-)

All,

Question:

I'm at a loss with the graphs for internal temperature and internal humidity.
I've set them up in WeatherCat - but what do I need to tell WeatherCat so that it will FTP the related JPEGs to my webserver ?

 Regards !

     Michel
Title: Re: Steel Gauges
Post by: Blicj11 on September 19, 2015, 10:18:50 PM
I looked at your gauges.js file and it looks to be in order.

Are these two tags in your upload template?

GRHUMI$
GRTEMPI$

WeatherCat processes whatever tags it finds and puts them into the processed upload file and FTPs. If those rags are in there, it will FTP them.
 
Title: Re: Steel Gauges
Post by: Michel on September 19, 2015, 10:28:55 PM
Blick,

thanks for your quick response.

Yes, I put two tags "somegraph$1$" and "somegraph$2$" into one of the files to be processed.
The related JPEGs are created - but they aren't FTPed to my webserver.
It looks like the HTML file is being processed, but the output is not uploaded.
As opposed to the output of REALTIMEGAUGESWC.TXT which *is* being uploaded.

Any idea ?

  Regards !

    Michel
Title: Re: Steel Gauges
Post by: Michel on September 19, 2015, 10:55:40 PM
...

Hmmm... having had a look at WeatherCats logging it seems WeatherCat doesn't process
any HTML files for upload as long as the external sensors aren't available ??

See attachement...

Title: Re: Steel Gauges
Post by: xairbusdriver on September 20, 2015, 03:42:26 AM
I highly recommend re-reading the list of tags in the WC manual (pages 198 thru 212), as well as the pages covering how to use them and how WC does its 'magic' with them. ;) It's as simple as writing a plain text file, with nothing more than the WC tag, saving the plain text file as ".html" (or even ".htm") and adding it to the list in Preferences->On-Line->Custom Web->Additional Files. Of course, you have to set up the FTP info, but you don't even have to upload the file yourself. WC will see 'read' that list, open the file, look for WC tags and convert it to whatever it does (GRHUMI$ tells WC you want a graph of the indoor humidity). Then, WC will even upload the edited file for you. All you have to do is type in the correct url (and you can even test it on your own computer). I've over simplified the description for my simple mind.

Of course, as a IT guy, you already know all the web/FTP/javascript/PHP/coding details. I think of WC tags as a 'markup language' that uses the app to convert that language into specifically formatted numbers, graphs, gauges, and charts. Since you're using a 'template', it may be more difficult to figure out where to place the tag, just depends on how flexible the 'template' is. Hopefully, it's as simple as adding "GRHUMI$" in a 'settings' file.
Title: Re: Steel Gauges
Post by: Blicj11 on September 20, 2015, 06:33:03 AM
Looks like you have it figured out now. Both internal graphs are displaying. What did you tweak?
Title: Re: Steel Gauges
Post by: Michel on September 20, 2015, 07:32:11 AM
xairbusdriver,

thanks for your hints. I will need to remember looking into the manual rather
than reinventing the wheel ;-)

As you can see from the above attachment (log and directory) there are two files
in the directory for files to be processed by WC.

Both are processed by WC (see screenshot of output directy below), but only
realtimegaugesWC.txt gets FTPed to the webserver. The other files don't ! - WHY ?
See 2nd/3rd screenshot for related settings...

Blick,

As for what I have tweaked to get the indoor graphs...
I set up two custom graphs and put the corresponding tags into the html file to be processed
by WC and then FTPed the result (.JPG) over manually.


So the question is:
Does WC not FTP those files (except realtimegaugeswc.txt) to the webserver
as long as the external sensors are offline and the station does not deliver
all of the data it is expected to ?

   Regards !

    Michel

Title: Re: Steel Gauges
Post by: WCDev on September 20, 2015, 11:08:43 AM
Hello Michel,
Open the 'Status' window from WeatherCat's 'Tools' menu - it'll show you the current status of the custom web processing (and other systems). In this case it's going to be saying 'Waiting to start' - it won't actually start until it's happy with the data.
Title: Re: Steel Gauges
Post by: Michel on September 20, 2015, 11:34:04 AM
Hello WCDev !

Thanks for your insights - I'm glad to see my suspicion regarding the lack of data was correct.
And you are right, of course, the status display does say 'Waiting to start'.

So your hint was very useful since I don't need to wonder any longer whether there might be
something wrong and in need of attention.

The only thing being corrupt is the darn parcel service which was expected to deliver a spare
part for the outdoor sensors yesterday - but didn't fulfil its task. So hopefully tomorrow then...

  Regards !

    Michel
Title: Re: Steel Gauges
Post by: xairbusdriver on September 20, 2015, 06:39:29 PM
Quote
Does WC not FTP those files to the webserver as long as the external sensors are offline?
I hate to argue with the Dev, but I think WC was creating and uploading exactly what you gave it from the missing data; nothing! Fortunately, WC is a very 'smart' app and it saved some bits by compressing the non-existant data into only a single "mirco" bit and sent it via the same parcel service that only delivers on odd number days to even numbered addresses. I tell you, I doubt you came across a better bit builded than Stu! [cheer]
Title: Re: Steel Gauges
Post by: Michel on September 21, 2015, 11:15:09 AM
Quote
I hate to argue with the Dev,

That's comprehensible since Stu seems to know what he's doing.
WC's internals seem to be well thought according to what I've seen so far.
Unfortunately, this is a race on the verge of extinction given what one
usually is presented with these days...

Quote
but I think WC was creating and uploading exactly what you gave it
from the missing data; nothing!

Hook, line and sinker ...

Quote
Fortunately, WC is a very 'smart' app and it saved some bits by
compressing the non-existant data into only a single "mirco" bit
and sent it via the same parcel service that only delivers on odd
number days to even numbered addresses.

:-) Sounds like you know my address and the calendar...

But seriously, in the first place it was a bit confusing to see the realtime data
being FTPed while the customized HTML file and graphs weren't. A related
hint in the log - like perhaps "Sensor data not available,  FTP transmission
postponed until change" - would have been helpful (for a newbie ;-).

Quote
I tell you, I doubt you came across a better bit builded than Stu!

I think I won't dare to contradict :-)

 Regards !

   Michel



Title: Re: Steel Gauges
Post by: mcrossley on September 21, 2015, 05:06:08 PM
Hi Mark,
how about to add an additional temp sensor to the Temp-gauge?

*out*
*in*
*additional* (if turned on, user can give it a unique name in the script)

Possible?

Cheers,
Reinhard

Hi Reinhard

Sorry I've not visited the forum for a while - been busy at work and enjoying my new motor - so, to answer the question, yes anything is possible, it just depends how much effort you want to put in.

It's not something I want to add to the standard scripts, but I can give you some help and guidance if you want to add to your site?

Cheers
Mark
Title: Re: Steel Gauges
Post by: wurzelmac on September 21, 2015, 07:31:54 PM
Hi Mark,
how about to add an additional temp sensor to the Temp-gauge?

*out*
*in*
*additional* (if turned on, user can give it a unique name in the script)

Possible?

Cheers,
Reinhard

Hi Reinhard

Sorry I've not visited the forum for a while - been busy at work and enjoying my new motor - so, to answer the question, yes anything is possible, it just depends how much effort you want to put in.

It's not something I want to add to the standard scripts, but I can give you some help and guidance if you want to add to your site?

Cheers
Mark

Hello Mark,

I am not sure if I can do it but it will be worth a try - so if you can tell me where I shall begin, that would be cool.
What I have to feed the realtimegaugesWC.txt-file is:

? tag for temp2 actual
? tag for temp2 day high
? tag for temp2 day low
? graph for temp2

What I need is a third option at the temperature-gauge: * Out * In * Webcam *
So my very simple thinking of it is to duplicate the indoor temp gauge and rename it to e.g. Webcam and feed it with data of temp2...  ::)  ???

Thanks in advance,
and no need to hurry anything.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on October 01, 2015, 10:43:57 AM
Mark:

In the popup graph for rainfall, there is a line of text that states the Last Rain date. This text field does not seem to recognize rainfall in the minimum amount of .01 inches. For example, yesterday in rained .01 inches here, but the popup graph shows a date of 17 Sept as the last rain date. See attached screenshot. Is there someplace in the script where I can edit a setting to allow the text field in this graph to recognize any rainfall > .00 inches as the last rainfall date?

Thanks.
Title: Re: Steel Gauges
Post by: wurzelmac on October 17, 2015, 11:37:20 AM
Hi John,

the Last Rain Date does not come from the script, it comes from a tag from WeatherCat that is "translated" within the realtimegaugesWC.txt file: Open this file and search for "LastRainTipISO", herein you will find the corresponding tag "RLDi$", and this one is explained by Stu in its "Latest Weatherat Tags" -section here.

Hope this helps,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on November 30, 2015, 04:19:16 PM
Users of El Capitan:

Popup graphs in the SteelSeries Gauges do not seem to be working properly in El Capitan. Hovering your mouse over the gauge does not always pull up the graph for the gauge over which you are hovering. Clicking on the gauge sometimes pulls up the graph, sometimes it does not. The pop up graphs are there, they just don't pull up properly. I have seen this on my site, as well as on Reinhard's.

Anyone have any insight?
Title: Re: Steel Gauges
Post by: wurzelmac on November 30, 2015, 05:31:22 PM
Hi Blick,

I can not see any issues on my site as well as on your site. Maybe something to do with Safari? I am using the latest Firefox. The graphs pop up as they should only by hovering the mouse over a gauge.

Shot in the blue: Have you installed a pop-up-blocker?

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on November 30, 2015, 06:39:04 PM
Thanks for the quick reply Reinhard. I do not have the popup blocker enabled on Safari. In the meantime, both my wireless mouse and wireless keyboard froze. This forced a hard restart for the computer and now my popup graphs are working for me too! It never dawned on me that the problem could be my mouse, but I believe it was the culprit.
Title: Re: Steel Gauges
Post by: Bull Winkus on November 30, 2015, 07:01:06 PM
I have seen a bug in the most recent Safari under El Capitan. Not exactly what you are describing, but?

When I am on Amazon and try to watch a video presentation associated with a product, it will play just fine in the small window, but if I expand the window to full screen, it will play the video full screen, but the sound track will be doubled. Starting the movie in the small window will start the sound track, and expanding it to full screen will start a second playing of it from that moment, with whatever delay there was between the two actions.

Crazy that Apple can't keep from introducing as many bugs as they swat.

 [goofy]
Title: Re: Steel Gauges
Post by: xairbusdriver on November 30, 2015, 08:17:28 PM
Any idea what kind of video (Flash, MPG4, etc.)?
Title: Re: Steel Gauges
Post by: Bull Winkus on December 01, 2015, 01:16:09 AM
No, I can't tell what they are using. It's probably Flash. But, it was working correctly before the update to El Capitan. Perhaps I'm behind one update for Flash. Speaking of Flash? Here is the link to 3 items with video. They all do it on my iMac with Safari. Anyone else have the same issue?

1TB SATA 2.5" Internal SSD (http://www.amazon.com/dp/B00RQA6L50/ref=wl_it_dp_o_pd_nS_ttl?_encoding=UTF8&colid=PWS6AP3FIRKG&coliid=I49FKMBWE2WRS&psc=1)

Quadcopter (http://www.amazon.com/dp/B00VSITBJO/ref=wl_it_dp_o_pd_S_ttl?_encoding=UTF8&colid=PWS6AP3FIRKG&coliid=I12ZFLMC67C0ZR)

Speakers (http://www.amazon.com/gp/product/B00JYQOXA4/ref=s9_simh_gw_p422_d1_i1?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=desktop-2&pf_rd_r=1YB1D351K47XVYWTXAF4&pf_rd_t=36701&pf_rd_p=2091268722&pf_rd_i=desktop)
Title: Re: Steel Gauges
Post by: Blicj11 on December 01, 2015, 02:37:58 AM
Herb:
Same thing happens here as you describe when I play the videos and then expand them. I am using Safari on El Capitan.
Title: Re: Steel Gauges
Post by: Bull Winkus on December 01, 2015, 03:02:48 AM
Thanks Blick. I guess that means, "It's not just me!"

 [woohoo]

Well, don't want to hijack this thread. Issue confirmed and repeated. Waiting for Flash or Safari update to fix it.

 [cheers1]
Title: Re: Steel Gauges
Post by: Chippa05 on December 13, 2015, 04:55:48 AM
I recently upgraded to V2 from V1 (V1 kept crashing on 10.11 after a few days) and had to redo my steel gauges website.  I am now having difficulty getting my popup graphs to update.  The jpg files are being generated locally but are not being FTP.  The text details within the popup window are being updated - it's just the drawing of the graph.

I have attached a screenshot as an example.

Any help would be appreciated.
Title: Re: Steel Gauges
Post by: Blicj11 on December 13, 2015, 06:34:18 AM
Chippa05, it would be helpful to us if you would provide a link to your website so we can see your SteelSeries Gauges and try to help you. Also, please tell us which version of WeatherCat 2 you are using, and which version of 10.11.

You are correct about Weathercat version 1 not running properly on 10.11.
Title: Re: Steel Gauges
Post by: Chippa05 on December 13, 2015, 06:39:41 AM
Thanks Blicj11

My gauges site is available at: http://www.weather.hosking.house

I am running WC v2.22 (build31) and OX 10.11.1
Title: Re: Steel Gauges
Post by: Blicj11 on December 13, 2015, 03:21:49 PM
Thanks for the additional info. It looks like your graph drawing and the text in the graph window do not match. If I understand you correctly, the popup graph in your Set Save Path is correctly drawn, but is not being FTPd to your site. Is this correct, or is the graph in your Set Save Path being FTPd?
Title: Re: Steel Gauges
Post by: Chippa05 on December 14, 2015, 03:04:09 AM
Yes, that is correct.
Title: Re: Steel Gauges
Post by: trevorpickettau on December 14, 2015, 10:40:45 AM
how do i get the normal gauges on to my webpage is it just html or more complicated than that
Title: Re: Steel Gauges
Post by: Blicj11 on December 14, 2015, 05:45:48 PM
Chippa05:

If the correct graph is showing in the the Set Save Path directory but is not being FTPd, I am stumped because the rest of the weather data seems to be uploaded via FTP. Did you edit anything other than the edits discussed in the Wiki?

http://wiki.trixology.com/index.php/Steel_Series_Gauges

Trevorpickettau:

If you are asking about the SteelSeries Gauges, see the Wiki link above. If you are asking about WeatherCat gauges, this is the wrong thread, but start by reading the How Do I section of the manual beginning on page 93 (How Do I Upload Web Pages to a Web Server, How Do I Create a Custom Web Template).
Title: Re: Steel Gauges
Post by: Chippa05 on December 14, 2015, 09:13:12 PM
Thanks Blicj11 - I appreciate your thinking on this.  Yes, have followed the wiki.  I too am stumped and may have to do a complete rebuild when I can find a few more hours in a day  [lol]
Title: Re: Steel Gauges
Post by: Blicj11 on December 14, 2015, 09:39:29 PM
Hopefully, Reinhard or Mark Crossley will weigh in here soon with some ideas.
Title: Re: Steel Gauges
Post by: wurzelmac on December 15, 2015, 09:13:19 AM
Chippa05:

Shot in the blue: Did you change anything within the gauges.js file around the line 264 (see attached screenshot). Maybe the script is only finding respective pointing to the *ancient* graphs, not the actual ones. Maybe they have a different name now since redoing your steelgauges?
Another look worth within the script is line 35 *imgPathURL* - it should point to the directory to where you upload your graphs. Just take a look at your webserver to clarify where the graphs are located.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Chippa05 on December 15, 2015, 11:43:05 AM
Thanks wurzelmac - checked both and they seem fine. I'm on holiday from next week so I will rebuild from scratch and see if I come up with the same problem.  It has me stumped! Thankfully the gauges are still working and the text on the pop up graphs is correct - just the graphs themselves.
Title: Re: Steel Gauges
Post by: wurzelmac on December 15, 2015, 07:30:52 PM
If you see the correct *processed* files in your save path folder, they should appear on your webspace as well. Why should WC upload some files, some files not?  :-[ Can't explain. Double check your webspace is the only help that I am able to give, sorry.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: nineback on January 08, 2016, 11:27:24 PM
I would like to be able to show my Aux Temperature (Davis Weather) on the temperature gauge in lieu of the indoor temperature.  I can't find a tag in WeatherCat for Aux Temperature 1. Am I missing something or is it not possible to display an Aux Temperature value?  I have just switched from WeatherDisplay so am still leaning.

Tom

www.weather.kq5s.com (http://www.weather.kq5s.com)
Title: Use the STAT tag (Re: Steel Gauges)
Post by: elagache on January 08, 2016, 11:39:19 PM
Dear Tom and WeatherCat web spinners,

I can't find a tag in WeatherCat for Aux Temperature 1.

There isn't a specific tag for additional temperature sensors.  Instead you can use the STAT tag that performs queries.  You can read up about this tag starting on page 207 of the WeatherCat manual.  To get the data you want I think you need a STAT query that looks like this:

Code: [Select]
STAT$T1:CURRENT:TODAY$
However, I don't use this tag much, so could somebody please double-check for me?

That simply displays the current value.  You'll need some help from the folks familiar with the Steel Gauges on how to use that value with the gauges.

Cheers, Edouard
Title: Re: Steel Gauges
Post by: wurzelmac on January 09, 2016, 04:26:26 PM
Hi Tom,

welcome to the forum!

It is not possible to add an additional temp sensor to the steelgauges for now, the developer of the gauges knows about this request - look at http://athena.trixology.com/index.php?topic=576.msg16370#msg16370

Maybe he will add this feature to a future release of his steelgauges.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on January 09, 2016, 04:45:50 PM
Hi Reinhard, but he just wants to substitute and extra sensor reading for the indoor reading. This is pretty straight forward, if he can find the right tag to put into the data file template. Then it is just a matter of changing the language file to reflect the change from 'indoor' to 'whereeveritis'.
Title: Re: Steel Gauges
Post by: wurzelmac on January 09, 2016, 06:44:11 PM
Hi Mark,

thanks for pointing this out - shame on me, I haven't read Tom's posting carefully enough!

So Tom,
let me test it out and replace the indoor with the aux temp tags. Will report back shortly.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: wurzelmac on January 09, 2016, 07:28:10 PM
Hello again,

here is how to replace *indoor temp* with an additional temp sensor:

Go to *realtimegaugesWC.txt*, look for *intemp* and replace the value with the corresponding tag, e.g *STAT$T1:CURRENT*
Go to *language.min.js*, search for *indoor* etc. and give it the name you want, in my case *Kamera*
Go to *gauges.js*, search for the popup graph you used for *indoor* and replace it with tha one you like.

It is only possible to show the actual temp, no min or max (if I see this correct, Mark?).

Title: Re: Steel Gauges
Post by: nineback on January 09, 2016, 11:23:28 PM
Thanks a lot Reinhard.  I got everything working except for the pop up graph.  I have a custom graph set up on my Mac that shows my garage temperature trend but I can not find the .jpg file to upload?  Where do I find the correct jpg file?

I lived in Wiesbaden for 3 years back in 2000.

Tom
Title: Re: Steel Gauges
Post by: Steve on January 09, 2016, 11:44:52 PM
Hi Tom,

Go to your Custom Graph setting and open the options. In the lower right, you will see the web tag for that specific graph. It should be in your upload flower. Note that you can also set the display size in the same area.

(http://www.morrisgarage.com/skitch/Max-Min-Avg_Temp_-_Monthly-20160109-184300.jpg)

I hope that helps,
Steve
Title: Re: Steel Gauges
Post by: nineback on January 10, 2016, 12:29:29 AM
Thanks Steve.  I got it.  I forgot to edit the WCTags.php file to include the custom tag.

Tom
www.weather.kq5s.com (http://www.weather.kq5s.com)
Title: Re: Steel Gauges
Post by: mcrossley on January 10, 2016, 01:36:47 PM
It is only possible to show the actual temp, no min or max (if I see this correct, Mark?).
Yes, unless you are prepared to hack a bit of code and add the additional data into the data file.
An alternative would be to sacrifice your dewpoint or apparent temeraturep display, both of which do show todays min/max.
Title: Re: Steel Gauges
Post by: wurzelmac on January 14, 2016, 05:58:31 PM
Mark,

yes, indeed. Btw, I noticed a new (2.5.11) version available on your github site. When I find the time I will install the updated files.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on January 14, 2016, 06:09:49 PM
Don't bother if you already have 2.5.10, the .11 change is only for WeeWX users.
Title: Re: Steel Gauges
Post by: wurzelmac on January 15, 2016, 07:17:30 PM
Thanks for the info, Mark. I done it from 2.5.8 to 2.5.11 - every thing OK so far I oversee this.

Thanks again,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on January 15, 2016, 11:57:04 PM
Hey Guys:

I am trying to upgrade from 2.5.8 to 2.5.11 and ran into a problem that I cannot figure out. I double checked the edits I made to each file but I can't find anything that looks wrong.

I can't load the gauges. I do have a debugger error on line 424 of my gauges.js file that says:

Undefined in not an object (evaluating 'config.tipImgs[0...

If I point my site back to my 2.5.8 folder, it works great. Will one of you please take a look at my site and see if you can see what I did that I should not have, or what I should that I didn't?

I am running 2.5.8 here: http://timberlakesutah.com/weather/

and 2.5.11 here: http://timberlakesutah.com/weather-gauges-explained/

Thanks.
Title: Re: Steel Gauges
Post by: wurzelmac on January 16, 2016, 10:07:27 AM
Hi Blick,

all I can say is that Firefox's Web Developer / Web Console says something like:
Code: [Select]
Stylesheet http://timberlakesutah.com/weather-gauges-explained/# wurde nicht geladen, weil sein MIME-Typ, "text/html", nicht "text/css" ist.Means: Stylesheet xxx can't be loaded because the MIME-Type is text/html instead of text/css.

Maybe it has something to do with it?

I upgraded to 2.5.11 by only replacing the gauges.js file (this is the only one that is changed). In there be shure to make your edits as you made them in the 2.5.8 gauges.js file.

Hope this helps a bit.

Cheers,
Reinhard
Title: Re: Steel Gauges
Post by: Blicj11 on January 16, 2016, 03:52:14 PM
In Safari, that error message is:

Did not parse stylesheet at 'http://timberlakesutah.com/weather-gauges-explained/' because non CSS MIME types are not allowed in strict mode.

I'm hoping Mark can tell me what is happening here. I could go back 2.5.8 and just change the gauges.js like you did, but I'm not sure what other changes he made in the rest of the files.
Title: Re: Steel Gauges
Post by: wurzelmac on January 16, 2016, 06:46:22 PM
Blick,

take a look at this site https://github.com/mcrossley/SteelSeries-Weather-Gauges/ and you will see that there are no changes aside of gauges.js.

Reinhard
Title: Re: Steel Gauges
Post by: mcrossley on January 16, 2016, 07:14:39 PM
Hi Blick, you have an error at line 269 in gauges.js

When you edited the file names it looks like you accidentally deleted the comma from the end of line...
is
Code: [Select]
                    ['customgraph7.jpg', 'customgraph8.jpg']             // Temperature: outdoor, indoor
should be
Code: [Select]
                    ['customgraph7.jpg', 'customgraph8.jpg'],             // Temperature: outdoor, indoor
Title: Re: Steel Gauges
Post by: Blicj11 on January 16, 2016, 07:56:26 PM
Mark:

Thanks for taking the time to find that. I am somewhat of an eejit and appreciate you getting me properly sorted. Steelseries gauges are working fine now.

I still have the one remaining error that has something to do with the CSS file:

Safari: Did not parse stylesheet at 'http://timberlakesutah.com/weather-gauges-explained/' because non CSS MIME types are not allowed in strict mode.

Firefox: Stylesheet xxx can't be loaded because the MIME-Type is text/html instead of text/css.

Do you have any insight into that?
Title: Re: Steel Gauges
Post by: mcrossley on January 16, 2016, 08:20:48 PM
It looks like the following line is the culprit (nothing to do with the gauges ;) )...
Code: [Select]
<link rel="stylesheet" id="style_selector_ss" href="#" />

I have no idea what that is intended to do, it seems to serve no purpose (nor does the empty style declaration above it on the previous two lines).

A <link> normally points to an external resource (most often used to load a style sheet), but this just points to '#' - the top of the current document. As a stylesheet document is not returned by the server it will default to a 'text/html' type, which does not match the "rel" declaration - hence the browser warning.

It is just a warning message and can be ignored (if you're not too fussy like me  [computer]).
Title: Re: Steel Gauges
Post by: Blicj11 on January 16, 2016, 08:27:00 PM
OK. Thanks for the explanation. I'll stop worry about it. Although it was not occurring in my 2.5.8 files, so if I get bored I'll see if I can see what else, if anything might be different in those two files. It is likely another errant edit on my part.

Mark, the WeatherCatters that use Steelseries Gauges sure appreciate your support. We know you don't use WeatherCat yourself and we are grateful to you for going the extra mile to help us out.
Title: Steel Gauges RefreshRate
Post by: marzio2515 on February 07, 2016, 04:24:34 PM
Hi there!

i was able to properly install and configure SteelSeries Guages template but i would like to have the Gauges changes/update with more frequencies...

WeatherCat upload the realtime json file every 10secs about, my station send new data every 10 secs and in gauges.js file i set the refresh rate in 10 secs...

everythings seems to work .. but the Gauges Pointer changes sometime every 30secs some other time even more ...  ( it seems like there would be some delay....)

so what can it depend from??...

are there some other parameters to check in the gauges.js file or some other file??

Thanks in advance...
Marzio
Title: Re: Steel Gauges
Post by: Blicj11 on February 08, 2016, 04:52:29 PM
Marzio:

In the gauges.js file, at approximately line 37, you set your data upload interval in seconds. The line looks like this:

realtimeInterval  : 5,

In your file, replace the number that is in the file with 10. Do not change anything else in the line.

Then make sure WeatherCat is uploading the SteelGauges data file every 10 seconds.

If your pointers don't move every 10 seconds, the data likely did not change. I have mine set to 30 seconds and often the pointers don't change for 60 seconds or longer. This is normal when the data does not change between update intervals.
Title: Re: Steel Gauges
Post by: marzio2515 on February 09, 2016, 06:19:38 AM
OK, Thanks for the reply...

i set the parameter as you said... now seems to work fine...

sure ... sometimes it tooks even 30 secs ( 3 times of 10 secs) to update but clearly it depends on weather data that doesn't change...

thanks again...

Bye

Marzio.
Title: Needing Steel Gauges SetUp Help
Post by: schwab on April 02, 2016, 05:24:32 PM
I am using OSX 10.11.4 El Capitan to run WeatherCat Version 2.23 Build 14 (2.2.3) on a MacBookPro Early 2008.

WeatherCat runs perfectly on this setup and I upload data to www.schwab1.com weather page using the most recent USA WeatherCat Saratoga Website Templates. I prefer to use FireFox and have the latest build.

After repeated attempts I am just not able to set up the Steel Gauges properly.

I followed the instructions on the excellent site: http://wiki.trixology.com/index.php/Steel_Series_Gauges

Over the last day I have chosen both options 1 and 2 both without success.

I carefully modified the gauges.js scriptfile with TextWrangler for each option as instructed.

I currently am using option 2 with a folder named steel on my website using Filezilla(see directory attached)

My WeatherCat log file shows that I am uploading realtimegaugesWC.txt data(see log attached)

I can see SteelGauges that are not functioning at this address: http://www.schwab1.com/steel/web_server/gauges-ss-basic.htm

However, I repeatedly get 404 errors when pointing to the address that should show the operating Steel Gauges:
 http://www.schwab1.com/steel/gauges-ss-basic.htm  I have tried multiple other addresses without success.

I expect I must have a directory issue that I just cannot solve by myself and will appreciate any assistance.

Thank you for taking the time to review my setup.
Title: Re: Steel Gauges
Post by: Blicj11 on April 02, 2016, 08:09:55 PM
Schwab:

The key to marrying up the SteelSeries Gauges to the data is to point the data to whatever level in your file structure your data is, relative to your steel folder. You do this on line 35 in gauges.js file.

Yours currently says that your gauges are one directory level above the directory where your gauges.js is located. (./ means the data is one level above, ../ means two lives above, etc.)

Where are you uploading your data to, relative to the location of gauges.js?


I don't use the template you are using, so I don't understand the technical details, but you creat the page you are going to display the Steelseries on and then point to the

Your steel folder is currently at http://www.schwab1.com/steel/
Title: Re: Steel Gauges
Post by: saratogaWX on April 02, 2016, 08:56:46 PM
Your gauges page at http://www.schwab1.com/steel/web_server/gauges-ss-basic.htm is trying to find the realtimegaugesWC.txt file in the same directory (steel/web_server/) and it's really at http://www.schwab1.com/realtimegaugesWC.txt

So change http://www.schwab1.com/steel/web_server/scripts/gauges.js from
Code: [Select]
realTimeURL_WC     : './realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator *** to
Code: [Select]
realTimeURL_WC     : '../../realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator *** which will navigate two directories up to the document root where the file is, OR to
Code: [Select]
realTimeURL_WC     : '/realtimegaugesWC.txt',   //*** WeatherCat Users: Change to your location of the JSON script generator *** (which will access it from the document root of schwab1.com)
Note that in JavaScript, the absolute URL addressing means that '/' is the document root of the website, not the filesystem root of the server (which it would be for PHP scripts).

It's all about the relative directory navigation.. since your basic page is two directories down the document tree, and the data is being uploaded two directories up from there, the '../../' will cause the file to be loaded from two directories up.

Hope this helps...
Title: Re: Steel Gauges
Post by: schwab on April 02, 2016, 09:49:11 PM
Thanks to Blick & Ken as the issue was indeed fixed changing gauges.js LINE 65

from './realtimegaugesWC.txt'

to '../../realtimegaugesWC.txt'

which moved correctly addressed realtimegaugesWC.txt to the same directory as http://www.schwab1.com/steel/web_server/gauges-ss-basic.htm

Title: Re: Steel Gauges
Post by: saratogaWX on April 02, 2016, 09:56:13 PM
Thanks to Blick & Ken as the issue was indeed fixed changing gauges.js LINE 65

from './realtimegaugesWC.txt'

to '../../realtimegaugesWC.txt'

which moved realtimegaugesWC.txt to the same directory as http://www.schwab1.com/steel/web_server/gauges-ss-basic.htm
To be precise, the '../../realtimegaugestWC.txt' addressing just allowed a page in steel/web_server/ to access the file two directories up .. no files were 'moved'.. just addressed correctly based on their current location in the website's document tree.
Title: Re: Steel Gauges
Post by: xairbusdriver on April 02, 2016, 09:58:49 PM
"Relatives" can be such problems... [banghead] [lol]
Title: Re: Steel Gauges
Post by: schwab on April 02, 2016, 10:52:28 PM
My SteelGauge page is functioning except for the popup graphs.

http://www.schwab1.com/steel/web_server/gauges-ss-basic.htm

I turned to the wiki and copied the example text below into TextWrangler and have saved it as image_upload.html

I moved it to my website in the top directory of steel folder which is how I read the directions...I am again making an error.

Please advise and accept my apology in advance for not "getting it."

+++++++++++++++++++++++++++++++++++++++++++++++++


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD>
<TITLE>image_upload</TITLE>
<META http-equiv="Content-type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR="#FFFFFF">

GRTEMPO$<BR>
GRDEW$<BR>
GRHUMO$<BR>
GRWINDCH$<BR>
GRHEATI$<BR>
GRSOLAR$<BR>
GRUV$<BR>
GRWINDD$<BR>
GRWINDS$<BR>
GRPRESSURE$<BR>
GRCLOUDB$<BR>
GRRAIN1$<BR>
GRRAIN24$<BR>
GRHUMI$<BR>
GRTEMPI$<BR>

</BODY>
</HTML>
Title: Re: Steel Gauges
Post by: Blicj11 on April 02, 2016, 11:59:57 PM
The file should be uploaded to the same directory to which you are uploading all of your SteelSeries data. For example, FTP it to the same directory to which you are uploading realtimegaugesWC.txt.
Title: Re: Steel Gauges
Post by: Blicj11 on April 03, 2016, 12:23:46 AM
It's all about the relative directory navigation.. since your basic page is two directories down the document tree, and the data is being uploaded two directories up from there, the '../../' will cause the file to be loaded from two directories up.

Ken, thanks for clarifying.
Title: Relatives
Post by: dfw_pilot on April 06, 2016, 10:01:40 PM
"Relatives" can be such problems... [banghead] [lol]
LOL! So true . . .
Title: Re: Steel Gauges
Post by: Blicj11 on April 06, 2016, 10:06:34 PM
Schwab:

I see you have the SteelSeries Gauges properly sorted on your website. They look great. Glad you figured it out.
Title: Re: Steel Gauges
Post by: Blicj11 on July 18, 2016, 07:10:51 AM
I have recently added two websites to the list of sites using SteelSeries Gauges in the wiki at http://wiki.trixology.com/index.php/Steel_Series_Gauges#How_to_configure_the_SteelSeries_Gauges_for_WeatherCat

If any of you are using the SteelSeries Gauges on your website but are not listed in that section of the wiki, let me know and I will add you.

Edouard, now that the Buick is running, you need to add these gauges to your template.  :)
Title: Re: Steel Gauges
Post by: Chippa05 on July 18, 2016, 08:36:17 AM
Hi All

I am having an issue with the FTP upload of my Simple Web and Custom Web pages - both were working fine until 11am yesterday morning.

I can access the directory fine through FTP client (CyberDuck) but not within WC.

Once details are entered and I press the "Test" button it causes WC to generate an error "not responding"

The log (attached) indicates that on occasions the server cannot be reached but most of the time it looks like the files are being FTP but they do not appear.

Can anyone shed any light on what may be happening? I'm stumped.
Title: Re: Steel Gauges
Post by: WCDev on July 18, 2016, 08:13:06 PM
WeatherCat uploads your files in batches and will only report one error per batch. In this case, the server is not responding.

If all was working fine then suddenly stopped, and you haven't changed anything, then the most likely cause is a change at the server end.

Either they are blocking WeatherCat (it happens when they think you are uploading too frequently, or have had a batch of consecutive bad logins due to something like incorrect password) or some change at the server which has affected something like permissions or allowable access frequency.

Try switching off FTP for a few hours, then re-enabling (sometime auto-blocks need to see activity for a certain time before re-enabling access). If that doesn't work then you'll have to investigate further - contact your ISP to see if they are blocking you.
Title: Re: Steel Gauges
Post by: xairbusdriver on July 19, 2016, 01:01:46 AM
Make sure you are seeing an updated page in your FTP app. Fetch only updates some things, like the files uploaded date manually. While it always show an added file, it may appear to have the 'old' date.

BTW, even though you have an expert replying (Stu, not me!) you might get more replies my reposting in a different section of the forums, most people would probably see this thread only if they used the Steel Gauges templates. I'd suggest the General Computing/Macintosh or the WeatherCat General Discussion. :)
Title: Re: Steel Gauges
Post by: Blicj11 on July 23, 2016, 08:54:35 PM
Mark:

I am attempting to improve the way the gauges display on an iPhone and have a couple of questions.
Code: [Select]
gaugeMobileScaling: 0.65,                   //scaling factor to apply when displaying the gauges mobile devices, set to 1 to disable (default 0.85)
Thanks mate.
Title: Re: Steel Gauges
Post by: xairbusdriver on July 24, 2016, 12:44:16 AM
On a desktop screen, does that pop-up window center itself on the respective gauge ay the same general vertical position as your screen shot? I suspect the javscript is creating 'position' values based on the center of the gauge rather than the bounds of the screen. I'll bet Mark can fix that! [cheer]
Title: Re: Steel Gauges
Post by: mcrossley on July 27, 2016, 10:47:59 PM
Sorry, I had missed this one.
Yes, I have fixed this in the latest cut on the code - not yet released.

In gauges.js, towards the end, look for...
Code: [Select]
positiontooltip: function ($, $tooltip, e) {

Just before the last line of that function add the following (previous last line included below)...
Code: [Select]
            // last ditch attempt to keep the graphs 'on page'
            x = Math.max(x, 0);
            y = Math.max(y, 0);
            $tooltip.css({left: x, top: y});

See if that works any better...
Title: Re: Steel Gauges
Post by: Blicj11 on July 27, 2016, 11:08:22 PM
Perfect!! That solves the problem.

Thanks, Mark, you are the best!

What about my other question? In guages.js, what does the mobile scaling code do (approx line 39)? I have played with the setting but cannot see it makes any difference on my iPhone. See code below:

Code: [Select]
gaugeMobileScaling: 0.65,                   //scaling factor to apply when displaying the gauges mobile devices, set to 1 to disable (default 0.85)
 
Title: Re: Steel Gauges
Post by: mcrossley on July 27, 2016, 11:26:06 PM
It *should* make the gauges smaller (<1) or larger (>1) when they are shown on a small screen.

A "small screen" is defined as < 480 pixels wide at line 352. I suspect your iPhone has a better resolution than that? I actually make the gauges larger on a small screen on one of my pages, but it only fits two gauge at time on screen - one above the other.
Title: Re: Steel Gauges
Post by: Blicj11 on July 27, 2016, 11:28:30 PM
Ok. Thank your for the explanation. And thanks for staying up late just to support those of us across the pond.

Thanks, mate.
Title: Re: Steel Gauges
Post by: Blicj11 on July 31, 2016, 07:55:51 AM
Mark:

I recently had to rebuild my website due to a hack. In the rebuild, I updated the theme and the security. After the rebuild, SteelSeries Gauges do not display properly on my iPhone. It does not resize to display all of the gauges as it previously did, and the popup graphs on the left side are off again. I tried going to gauges.js 2.5.15 but this did not impact the iPhone display. Is there anything you can suggest I take a look at to get them properly sorted on the iPhone? They look fine on OS X and on my iPad.

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on August 01, 2016, 04:36:44 PM
Hi Blic, I've just taken a look at this and the gauge resizing works if you just load up the gauges page (http://timberlakesutah.com/wp-content/uploads/Weather/SteelSeries/gauges-ss-basic.htm). Resize your desktop browser down so the window is pretty small and load that page to try it.

The problem I think is when you include the gauges as an iframe, you are specifying a fixed size, so when your main page loads the gauges stay the same width. If you try setting the iframe width to 100%, see what happens.
Title: Re: Steel Gauges
Post by: Randall75 on August 01, 2016, 11:38:16 PM
Hi Cat Family and Mark
 Does any one have a copy of version 2.5.4 of the Steel Gauges zip file?
 I been running version 2.5.4 with no problems for me.
But I am getting ready to change web providers and need to be able to upload the files to the new server
I don't know what all will be involved to up grade to the latest version


cheers


 [cheers1]
Title: Re: Steel Gauges
Post by: mcrossley on August 02, 2016, 03:19:19 PM
Most of the versions are available on GitHub. Here is the link to version 2.5.4 (https://github.com/mcrossley/SteelSeries-Weather-Gauges/tree/0138098a0ab13bebdbc56b98197d7014d8ffa69e)

To select the version you want, just click the 'NN commits' link on the GitHub page, then 'browse' the files, and select the download zip.
Title: Re: Steel Gauges
Post by: Randall75 on August 02, 2016, 07:33:31 PM
Hi Mark
 thanks for the info went there but didn't see that version
Thanks again


 [cheers1]
Title: Re: Steel Gauges
Post by: Blicj11 on August 02, 2016, 09:44:05 PM
Mark's link took me right to it. Here is the full link for 2.5.4  Go here and then click on Download

https://github.com/mcrossley/SteelSeries-Weather-Gauges/tree/0138098a0ab13bebdbc56b98197d7014d8ffa69e

Randall, you will still have to make the exact same changes to get 2.5.4 working as you would have to do to run the latest release, which is 2.5.15.

Here is what Mark has tweaked since 2.5.4

Release History
=======================
2.5.15
  * Updated gauges.js
    - Removed deprecated RegExp.$1, and .selector code, plus other changes around the popups to make them compatible with JQuery 3.0

2.5.14
  * Updated gauges.js
    - Reversed style change which named all functions. Back to anonymous functions.

2.5.13
  * Updated gauges.js
    - Switched to using ESLINT and some stylistic changes to code and layout
    - Fix to Cloudbase autoscaling

2.5.12
  * Updated gauges.js
    - Auto-disable wind variantion for MeteoBridge users
    - Uplift weewx data template version to 13
  * Updated gauge-data.txt.tmpl
    - Now uses non-localised units for more robust data conversions
    - Corrected dew point calculation
    - Improved rain in mm calculation

2.5.11
  * Updated gauge-data.txt.tmpl
    - Fixes some data issues for WeeWx users

2.5.10
  * Updated gauges.js
    - Improved rainrate and rainfall coloured sections for imperial units, they are now calculated from the metric units
  * Updated the SteelSeries library (steelseries.js, steelseries.min.js, steelseries_tween.min.js)
    - Updated from version 0.14.13 to 0.14.16

2.5.9
  * Updated gauges.js
    - Applied fix for WView (lack of cloudbase unit)
  * Updated customclientraw.txtx (for WView)
    - Added cloudbase value/unit, incremented version to 11

2.5.8
  * Updated gauges.js
    - Applied fix 2.5.7 to the temperature gauge as well, doh!
    - Fixed HTTP GET timeout errors when using long polling with real time intervals >= 30 seconds
    - Fixed broken code that prevented the page timing out when a valid password was supplied to the 'pageUpdate' URL parameter

2.5.7
  * Updated gauges.js
    - Fix to the dewpoint gauge, now handles invalid values for today's hi/lo's more sensibly

2.5.6
  * Updated language.js/language.min.js
    - Improved/added missing German translation from wurzelmac

2.5.5
  * Updated gauges.js
    - Fixed UTF-8 corruption of ?C & ?F introduced in 2.5.4
    - Changed WeatherCat cloudbase graph from pressure1.jpg to cloudbase1.jpg
    - Added gaugeGlobal values for the direction gauge average pointer type and colour

2.5.4
  * Updated gauges.js
    - Internal changes to support Cumulus MX dashboard
    - More error checking added for missing gauges on HTML page, it will now tolerate the removal of the LED,
      timer, status display etc.
    - Enables the cloudbase gauge for WeatherCat - Must be running WC version 2.10 or later
  * Updated realtimegaugesWC.txt, added cloudbase
Title: Re: Steel Gauges
Post by: Randall75 on August 02, 2016, 10:15:16 PM
Hi Blick
 Thanks I down loaded them both and have 2.5.4 up and running I look at the latest version as soon as I have more time


thanks again to you both [tup]


cheers


 [cheers1]
Title: Re: Steel Gauges
Post by: Blicj11 on August 02, 2016, 10:24:59 PM
Hi Blic, I've just taken a look at this and the gauge resizing works if you just load up the gauges page (http://timberlakesutah.com/wp-content/uploads/Weather/SteelSeries/gauges-ss-basic.htm). Resize your desktop browser down so the window is pretty small and load that page to try it.

The problem I think is when you include the gauges as an iframe, you are specifying a fixed size, so when your main page loads the gauges stay the same width. If you try setting the iframe width to 100%, see what happens.

Mark, thanks for this suggestion. I know iframes are old school, and not really designed for loading stuff from one's own website, but since my weather site is in a WordPress installation, it seems to be the only way I can get some things to work.

I spent a couple of days trying to figure out how to load the page without using iframe. Didn't have any luck so I changed the iframe width to 100%, which indeed does scale properly on the iPhone. I made the same change to the embedded wind forecast section, which also fixed 98% of its iPhone scaling problems. It now scales fine horizontally, and almost fine vertically.

Once again, I really appreciate you taking a look and finding a solution to help me get properly sorted. That is incredible service from someone who is not using either OS X or WeatherCat. Thanks mate.
Title: Re: Steel Gauges
Post by: Blicj11 on August 02, 2016, 10:29:01 PM
Thanks I down loaded them both and have 2.5.4 up and running I look at the latest version as soon as I have more time

I just took another look at your site. Nice to see those gauges spinning around doing their thing.
Title: Re: Steel Gauges
Post by: wurzelmac on August 10, 2016, 11:46:13 AM
Hello Mark,

if you do have some extra time:
What do I have to replace if I want to go from 2.5.11 (http://wetter.unterwurzacher.at/steelgauges/livewerte.html) to 2.5.15? Replacing only the gauges.js file (done all the same modifications I have done to this file in V2.5.11) does not work (no gauges are displayed then).

Thanks in advance,
Title: Re: Steel Gauges
Post by: Blicj11 on August 10, 2016, 03:43:33 PM
Reinhard:

I went from 2.5.11 to 2.5.15 about 10 days ago and all I replaced was the js file. My first attempt also resulted in no gauges displayed. I just went back to my 2.5.11 gauges.js file and very carefully redid the edits. Second time worked fine. Something in one of your edited lines is incorrect.
Title: Re: Steel Gauges
Post by: wurzelmac on August 10, 2016, 03:52:29 PM
Thank you very much, Blicj! Nice to hear that only the gauges.js file is to replace. I will double-check in time!
Title: Re: Steel Gauges
Post by: Blicj11 on August 10, 2016, 03:56:56 PM
I am looking at your js file as well. I'll let you know if I see anything.
Title: Re: Steel Gauges
Post by: Blicj11 on August 10, 2016, 04:03:37 PM
Don't know if this is it, but try this. On line 281 enter a space between the comma and the comment. Like this null), // Wind
Title: Re: Steel Gauges
Post by: wurzelmac on August 10, 2016, 05:28:16 PM
Thanks Blicj,
it was something other (line 265ff there are no underlines _ any more).
But now I get another error. Maybe Mark can help.


UPDATE:
I reworked all with a complete new gauges.js file from Github and now it works.  :-[
Thanks, Blicj!
No need to investigate, Mark!
Title: Re: Steel Gauges
Post by: wurzelmac on August 10, 2016, 06:07:53 PM
By the way,

I would like to add a feature request: WeatherCat provides the possibility to output user defined current conditions via it's built-in Current Conditions Calculator. It would be nice if someone could display this info on the Live Gauges Page (current conditions are current = live  :) ).
I am thinking about if this info could be placed additional to the scrolling weather forecast, maybe like: Current Conditions are xxxx - Current Forecast is xxxx
The tag for the realtimegaugesWC.txt is: "CurrentConditions":"CC$"

What do others think about this?
Title: Re: Steel Gauges
Post by: wurzelmac on August 10, 2016, 06:29:14 PM
Dear Community,

forgive me my dumbness - shame on me. The feature I requested is easily to realize:
If anybody wants it in its steel series gauges just modify the realtimegaugesWC.txt file to
Code: [Select]
"forecast":"Current Conditions -- CC$ *** Current Forecast -- CF$ --",or something similar.

 [rock]
Title: Re: Steel Gauges
Post by: Blicj11 on August 10, 2016, 07:13:24 PM
Glad to see you have them up and running again, Reinhard. Upgrading versions is an exercise in very careful editing.

Here is a quote from the WeatherCat SteelSeries Wiki:

... you can use any WeatherCat tag in the ticker that makes sense to you. However, just because it makes sense to you does not necessarily mean that it's a good idea. After all, how many "good" ideas of yours has your wife shot down?

More good stuff about these gauges at ==> http://wiki.trixology.com/index.php/Steel_Series_Gauges
Title: Re: Steel Gauges
Post by: mcrossley on August 10, 2016, 09:37:55 PM
Glad you guys worked his out.
Yes, you only need to replace the gauges.js file from .11 to .15
And yes, put whatever you want in the ticker - so long as you have tags for it. Mine for instance has the date/time, sun hours, and min/max temps for the day.
http://weather.wilmslowastro.com/gauges-ss.php
Title: Re: Steel Gauges
Post by: Blicj11 on August 10, 2016, 11:46:12 PM
Thanks Mark. I have a question about the Cloud Base gauge. I know I read this somewhere but I can't find it. I think the gauge rounds off to the nearest hundred feet after it gets above a certain altitude, to prevent the needle from bouncing around too much. Can someone tell me where I read that or what the details are? 
Title: Re: Steel Gauges
Post by: mcrossley on August 11, 2016, 09:14:02 AM
The cloudbase rounding is pretty arbitrary, but currently defined as...

Metres: <1 000 m round to 10 m, >1 000 m round to 50 m

Feet: < 2 000 ft round to 50 ft > 2000 ft round to 100 ft

I'll probably add an option to the next release to turn rounding off/on (default on)
Title: Re: Steel Gauges
Post by: Randall75 on August 11, 2016, 05:33:35 PM
Hi Mark and Blick
 So what all is involved to upgrade from 2.5.4 to the latest version
I know it will involve a little more since I changes my gauge sizes and changes my background and so one


cheers
 [cheers1]
Title: Re: Steel Gauges
Post by: mcrossley on August 11, 2016, 06:05:02 PM
All I can do really is go by the change log, though you could do a diff between the versions on GitHub (https://github.com/mcrossley/SteelSeries-Weather-Gauges/compare/0138098a0ab13bebdbc56b98197d7014d8ffa69e...master) I guess.

Changed files (that matter to WC users)...

gauges.js - of course!
language.js/language.min.js
steelseries.js/steelseries.min.js/steelseries_tween.min.js
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 06:25:37 PM
Randall:

Download 2.5.15 from Github. Make all of your same edits in whatever files you edited in 2.5.4, and replace all of your uploaded SteelSeries files on your site with the new ones. Hopefully you have kept a record of what changes you have made. Most of them will be in gauges.js, but you may have tweaked the following:
The first three files are on your website and the last one is in your WeatherCat Set HTML Source folder.

The line numbers have changed since 2.5.4, but your edits will be in a line number that is very close to the original. I think my edits in gauges.js were about 3 or 4 line numbers off from the original.

The other thing I did that was helpful, I renamed the 2.5.4 SteelSeries directory on my website so that it was all still intact in case something went wrong with 2.5.15. I didn't delete the old one until I had the new up one and running.

Be extremely careful in your edits. Both Reinhard and I made a simple editing error and it is hard to track down a missing comma or an extra bracket. If you make the exact same edits in the new files, it will work fine.

Go for it.
Title: Re: Steel Gauges
Post by: xairbusdriver on August 11, 2016, 06:32:49 PM
First, I encourage only editing a copy of any file. That way. you can always revert to the original new or old file.

Second, many here use <TexyWrangler (http://www.barebones.com/products/textwrangler/)> (free) or it's big brother BBEdit because they have an outstanding file comparison function. Open two files, choose "Compare two front windows..." and they'll show two panes, side by side, plus a lower pane listing all the differences, down to the character level! You can then chose to change either file to match the other for each listed difference or simply to see what was changed. Highly recommend both apps!

Another benefit of using a dedicated editing tool is that they color code important words. If you make an edit and all the later colors change or go away, you can bet your bottom dollar you made a mistake! It's command-z to the rescue until you figure out what you need to do. [cheer]
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 06:34:35 PM
The cloudbase rounding is pretty arbitrary, but currently defined as...

Metres: <1 000 m round to 10 m, >1 000 m round to 50 m

Feet: < 2 000 ft round to 50 ft > 2000 ft round to 100 ft

I'll probably add an option to the next release to turn rounding off/on (default on)

Thanks Mark, I had read that in the comments in the gauges.js file but for some reason it didn't register that those comments were what I was looking for. I like the planned option for rounding. Easier than commenting out parts of the code, especially when one doesn't know what one is doing. For us novices, it's kind of scary to edit things that are below this warning in the gauges.js file:

Code: [Select]
        // ==================================================================================================================
        // Nothing below this line needs to be modified for the gauges as supplied
        // - unless you really know what you are doing
        // - but remember, if you break it, it's up to you to fix it ;-)
        // ==================================================================================================================
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 06:41:28 PM
Good point Xair, I used the compare feature yesterday in the new release of TextWrangler. I like it better than BBEdit because it is free. I am a confirmed capitalist and "free" appeals to me on all sorts of levels.
Title: Re: Steel Gauges
Post by: mcrossley on August 11, 2016, 07:45:46 PM
Talking about editors (I know I use Windows), I have switched from Sublime Text to Microsoft Visual Studio Code. Don't be put off by the name, it is nothing to do with Visual Studio, it's free, open source, and multiplatform  - including Mac.

It is getting great community support and looks like it is going to be very popular. It is actively maintained and developed, and there are monthly update releases. The range of available plugins seems to grows daily.

Definitely worth a look. Like Sublime it is based on your browser engine, snd you do need to have Node.js installed to use it.
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 08:37:10 PM
Mark:

Here is a little tiny edit to make in your next release.

The comment line in the Singleton for the Cloud Base Gauge, around 2576 in gauges.js should be 100 ft rather than 50 ft:

      // and round the value to the nearest 50 100 ft

The first comment line correctly states 50 ft, but the second comment line should be 100 ft.
Title: Re: Steel Gauges
Post by: mcrossley on August 11, 2016, 08:47:12 PM
Thanks, I'd already spotted that one 😉

I'm away on a family break this weekend, but I expect the next release next week. Not a lot in it, but nicer handling of pop-ups on small screens, the cloud base rounding option, minor tidying up and a HTML correction.
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 08:49:47 PM
Looking forward too the improvements and appreciate your work.

To keep me busy whilst you are away, can you tell me where to adjust the colour gradient for the cloud base gauge?

Enjoy your family holiday.
Title: Re: Steel Gauges
Post by: mcrossley on August 11, 2016, 09:14:52 PM
Try searching for "createCloudBaseSections" around line 3140 in my current edit.
Title: Re: Steel Gauges
Post by: mcrossley on August 11, 2016, 09:23:29 PM
You chaps may be interested in another little PHP script for your web pages I knocked up last week - Sun Plot.
You can see it in use on my home page (http://weather.wilmslowastro.com/index.php) (not much sun today  :( ), and the download is here (http://weather.wilmslowastro.com/scripts.php)

(http://sandaysoft.com/forum/download/file.php?id=13586)

It doesn't matter if you don't have a database that stores the sunshine data, you can use the plot just to show the Suns position as the day progresses and the relative day/night length and changes in Suns elevation. It's self contained, no other libraries etc. required.
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 09:41:03 PM
Found it. Thanks.

Cool little script. Thanks for sharing. I am going to give it a whirl.

Again, enjoy your family holiday.
Title: Re: Steel Gauges
Post by: xairbusdriver on August 11, 2016, 11:08:26 PM
Thanks! May include that (with appropriate attribution, of course!) on my site! (http://i1327.photobucket.com/albums/u666/xAirbusDriver/thumbup_zpsfgqhxlem.gif)

Have a great vacation!
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 11:19:39 PM
Mark:

When you get back from your family holiday will you please look at my Cloud Base gauge? My preference default for that gauge is feet. When I change the preference box to metres, the gauge does not scale properly until I refresh the page after selecting metres. Reinhard's gauge does not do this, but his default is set to metres. I would appreciate you letting me know if you see this display when you look at my site and if so, is there something I can do about it?

Thanks.
Title: Re: Steel Gauges
Post by: Randall75 on August 11, 2016, 11:36:06 PM
Hi Blick
 I just went to your web site and change it to meters and it worked just find and then I switch it back and it went back to feet I did this several times and it work for me


cheers


 [cheers1]
Title: What's so cool about Visual Studio Code? (Was: Steel Gauges)
Post by: elagache on August 11, 2016, 11:43:39 PM
Dear Mark and WeatherCat web spinners,

Talking about editors (I know I use Windows), I have switched from Sublime Text to Microsoft Visual Studio Code. Don't be put off by the name, it is nothing to do with Visual Studio, it's free, open source, and multiplatform  - including Mac.

It is getting great community support and looks like it is going to be very popular. It is actively maintained and developed, and there are monthly update releases. The range of available plugins seems to grows daily.

Definitely worth a look. Like Sublime it is based on your browser engine, snd you do need to have Node.js installed to use it.

Unfortunately these days I'm having trouble with another kind of "engine" so I won't jump to install this right away.  However, for the rest of the WeatherCatters here is the link:

https://code.visualstudio.com/ (https://code.visualstudio.com/)

Any particular feature that really got your attention?

Cheers, Edouard
Title: Re: Steel Gauges
Post by: Blicj11 on August 11, 2016, 11:52:18 PM
I just went to your web site and change it to meters and it worked just find and then I switch it back and it went back to feet I did this several times and it work for me

Thanks for looking at it. For me, when I change to metres, the gauge remains the same scale as feet, which means that it shows 2500 metres higher than the maximum scale. The colour gradient stops at 5500 metres, but the scale keeps going to 8000. I have to then refresh the page to get it to scale properly for metres.
Title: Re: Steel Gauges
Post by: Randall75 on August 12, 2016, 12:02:05 AM
Hi Blick
 That sounds to me like your browser is stuck in cache mold or something, either that java script is not working right all I can it works great hear


maybe someone else can tell you what is going on


cheers


 [cheers1]
Title: Re: Steel Gauges
Post by: wurzelmac on August 12, 2016, 06:44:48 AM
Blicj,
I just took a look at your gauges and they are working fine - every change I make within the units the gauges take them at once.
Title: Re: Steel Gauges
Post by: wurzelmac on August 12, 2016, 06:48:40 AM
You chaps may be interested in another little PHP script for your web pages I knocked up last week - Sun Plot.
You can see it in use on my home page (http://weather.wilmslowastro.com/index.php) (not much sun today  :( ), and the download is here (http://weather.wilmslowastro.com/scripts.php)

(http://sandaysoft.com/forum/download/file.php?id=13586)

It doesn't matter if you don't have a database that stores the sunshine data, you can use the plot just to show the Suns position as the day progresses and the relative day/night length and changes in Suns elevation. It's self contained, no other libraries etc. required.

Looks cool, Mark.
Now I know what to do during the weekend!  :D
Title: Re: Steel Gauges
Post by: Blicj11 on August 12, 2016, 01:46:53 PM
I just took a look at your gauges and they are working fine - every change I make within the units the gauges take them at once.

Thanks for looking at them Reinhard. Must be something unique to Safari on my end.
Title: Re: Steel Gauges
Post by: Blicj11 on August 12, 2016, 04:46:11 PM
I have updated the wiki article for SteelSeries version 2.5.15. Line numbers have changed and I added some additional paragraphs about customizing the gauges. I also added clarification that this wiki article is for Mark Crossley's SteelSeries Gauges.

http://wiki.trixology.com/index.php/Steel_Series_Gauges
Title: Re: Steel Gauges
Post by: Randall75 on August 12, 2016, 08:50:07 PM
Hi Blick
 Thanks


cheers
 [cheers1]
Title: Re: Steel Gauges
Post by: xairbusdriver on August 12, 2016, 09:33:45 PM
Thanks! Looks very professional! (http://i1327.photobucket.com/albums/u666/xAirbusDriver/thumbup_zpsfgqhxlem.gif) Will give it a complete read this weekend! Were you a professional/technical writer in your earlier years?
Title: Re: Steel Gauges
Post by: Blicj11 on August 18, 2016, 05:19:15 PM
I spent some time this week tweaking the gradient colours on several of my gauges. I am amazed at the level of customisation one can do with this remarkable software, once you overcome the fear of changing something below the warning line. I also enjoy looking at the gauges on various WeatherCatter websites, to see how you have tweaked yours. Keep calm and customise.
Title: Re: Steel Gauges
Post by: Bull Winkus on August 18, 2016, 09:02:24 PM
Looking good, Blick. I like it!

 [cheers1]
Title: Re: Steel Gauges
Post by: Blicj11 on August 18, 2016, 09:05:28 PM
Thanks Herb. Looks like it is going to rain on your ISS this week!
Title: Re: Steel Gauges
Post by: Bull Winkus on August 18, 2016, 09:27:33 PM
Yep! We have been getting a lot of it, and apparently there's more to come. It's part of that system that is floating most of southern Louisiana. Up here at 795 ft (Ooooh?) we don't need to be concerned about widespread flooding, and most people know not to live in a creek. So, my greatest issue with it is how fast the grass is growing. And, it's growing thick and fast!

Can't mow, 'cause it's always wet!

 [rainyluck]
Title: Re: Steel Gauges
Post by: mcrossley on August 18, 2016, 10:06:41 PM
...once you overcome the fear of changing something below the warning line.
[lol] Fortune favours the brave!  Code on. [computer]
Title: Re: Steel Gauges
Post by: wurzelmac on August 18, 2016, 10:25:39 PM
[lol] Fortune favours the brave!  Code on. [computer]

 [rock]
Title: Re: Steel Gauges
Post by: wurzelmac on August 19, 2016, 05:30:53 PM
Mark,

your Sun Plot is only working on a .php site and not on a .html - is this correct? If so I think it is not possible to implement it into an existing .html, or am I wrong?

Thanks in advance,
Title: Re: Steel Gauges
Post by: mcrossley on August 19, 2016, 05:36:00 PM
You should be able to embed it in a HTML page just like a PHP page (so long as the server is running PHP obviously). Just using a standard <img> tag, like...
Code: [Select]
<img src="sunplot.php" alt="Sun Plot" width="X" height="Y">
Title: Re: Steel Gauges
Post by: wurzelmac on August 19, 2016, 05:50:40 PM
Just played around a bit and got it now! Very cool! Link follows...  :)

Update: http://wetter.unterwurzacher.at/wetterwerte.html (Scroll down to >Sonne<)

Another very cool script, Mark.
Thanks for sharing!
Title: Re: Steel Gauges
Post by: wurzelmac on August 19, 2016, 07:02:20 PM
I almost did not dare to ask, but:

What about adding a time-line from 0 to 24 to the png?

 :-X
Title: Re: Steel Gauges
Post by: Blicj11 on August 19, 2016, 07:47:46 PM
Nice work, Reinhard.

I just added a small section to the wiki to explain relative paths, since that is the single biggest challenge WeatherCatters have in implementing the gauges. I would appreciate you or Mark taking a look at section 3.1.3 and making sure I explained it correctly.

http://wiki.trixology.com/index.php/Steel_Series_Gauges

Thanks.
Title: Re: Steel Gauges
Post by: wurzelmac on August 19, 2016, 08:20:07 PM
Hi Blick,

relative path to a file in the same directory:
example.file
./example.file

relative path to a file above the actual directory:
../example.file

relative path to a file above the actual directory above the next directory:
../../example.file

and so on.

So if you reference a file in the same directory you can use both
example.file
./example file

Cheers,
Title: Re: Steel Gauges
Post by: Blicj11 on August 19, 2016, 08:42:17 PM
Thanks for the correction Reinhard. Would you mind looking at the revision?

http://wiki.trixology.com/index.php/Steel_Series_Gauges
Title: Re: Steel Gauges
Post by: wurzelmac on August 19, 2016, 09:04:07 PM
Looks good.
Lets wait what Mark is saying - html and javascript are two different pairs of shoes.
 :)
Title: Re: Steel Gauges
Post by: Blicj11 on August 19, 2016, 09:06:26 PM
OK. Thanks for your help. I am now staring to work on implementing Mark's "Position of the Sun" script.
Title: Re: Steel Gauges
Post by: wurzelmac on August 19, 2016, 09:18:06 PM
Step by step (as I done it):
Download the script and make the changes in there (LAT, LONG, etc.)
Put it on your website directory.
Call it (http://your.website.xy/sunplot.php). - You will see a blank site with only the sun plot on it.
Refer to this site just like Mark told me to do on the place you want to have the sunplot being visible on your site:
Code: [Select]
<img src="sunplot.php" alt="Sun Plot" width="X" height="Y">Have fun!
Title: Re: Steel Gauges
Post by: Blicj11 on August 20, 2016, 01:50:26 AM
Got it. Thanks. It's working nicely now. Still playing around with the colours but I'm just about there. Giving it a rest overnight and see how I like it in the morning. Nice little script, and I like it better than what I was using from der-mond.org for the sun.

Thanks Mark and Reinhard.
Title: Re: Steel Gauges
Post by: mcrossley on August 20, 2016, 04:16:27 PM
I almost did not dare to ask, but:

What about adding a time-line from 0 to 24 to the png?

 :-X

I've started a new thread for the Sun Plot script... http://athena.trixology.com/index.php?topic=2250.0
Title: Re: Steel Gauges
Post by: ha-rob on August 20, 2016, 11:08:05 PM
Hi,

I have recently changed weather station from LaCrosse WS-2350 to Davis Vantage Vue. My weather site www.uranusweather.com with the Leuven-Template, is still running. But I have discovered a problem with the steel series gauges. On my weather site, if you click on livedata and then steelseries you will see that the arrows on all the gauges are pointing on zero. And a message is saying - Text file download corrupted! Retrying...

I need some help to fix that...   [tup]

Best regards
Rob
Title: Re: Steel Gauges
Post by: wurzelmac on August 21, 2016, 07:36:34 AM
Do you upload the realtimegaugesWC.txt file properly onto your webspace?
Title: Re: Steel Gauges
Post by: wurzelmac on August 21, 2016, 03:11:35 PM
And yes, put whatever you want in the ticker - so long as you have tags for it. Mine for instance has the date/time, sun hours, and min/max temps for the day.
http://weather.wilmslowastro.com/gauges-ss.php

Today I played around another time with the ticker and I removed the forecast because it's not precise enough and tells the same strings as always... I replaced them with the date/time, current conditions, temp min/max and windgust max and the time it happened.

Lucky now.  [biggrin]
Title: Re: Steel Gauges
Post by: wurzelmac on August 22, 2016, 07:01:39 PM
Mark,

can you tell me what font is used by the gauges and the ticker if I set digitalFont and digitalForecast to <false> and where I can find this preference?

Thanks in advance,
Title: Re: Steel Gauges
Post by: mcrossley on August 22, 2016, 08:44:06 PM
They use the LCDMono2-Ultra font. The font file is in the gauges .zip file.

The font specification is hard coded into the SteelSeries library, which will use 'digital' fonts in the following fail-over order as it finds them... 'LCDMono2Ultra, Arial, Verdana, sans-serif'
Title: Re: Steel Gauges
Post by: Blicj11 on August 22, 2016, 09:40:19 PM
Mark:

I just added a small section to the wiki to explain relative paths, since that is the single biggest challenge WeatherCatters have in implementing the gauges. I would appreciate you taking a look at section 3.1.3 and making sure I explained it correctly.

http://wiki.trixology.com/index.php/Steel_Series_Gauges

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on August 23, 2016, 01:42:24 PM
Hi Blic, that looks fine to me. The syntax is the same as the good old DOS command (with the slashes the opposite way round), and Bash shell etc.

Actually you should also be able to use absolute paths, but the root "/" is the web server root as seen by the clients browser (which is not necessarily the same as the root you see in FTP client).

Relative paths are simpler to put in a distributed script, as if the folders are uploaded per the .zip, then the images folder will always be "images/" relative to the supplied HTML page no matter where it actually resides in the web server folder structure. I probably making this less clear the more I type!  [lol2]
Title: Re: Steel Gauges
Post by: Blicj11 on August 23, 2016, 03:04:39 PM
Ha ha ha. Thanks for taking the time to review that piece, and for your support of WeatherCatters using the gauges.
Title: Re: Steel Gauges
Post by: ha-rob on August 23, 2016, 06:34:11 PM
Do you upload the realtimegaugesWC.txt file properly onto your webspace?

I can?t find the file with that exact name. What I consider to do, is to upgrade both the WC version and the template version, and hopefully that will fix the problem and some other minor problems I have. I have had the same versions for almost 3 years now, so maybe it's smart to do a "clean up".

Rob
Title: Re: Steel Gauges
Post by: Blicj11 on August 24, 2016, 02:14:40 AM
Your version is quite old. The current version is 2.5.15. However, you are using the Leuven Template and Wim no longer uses Mark's latest version. Wim has adapted the SteelSeries files for the template. You should probably update to the latest version that Wim is including in the template. This forum thread is primarily for Mark Crossley's scripts. Wim provides support for the version of SteelSeries he uses with his template. Hope this helps.
Title: Re: Steel Gauges
Post by: wurzelmac on October 25, 2016, 06:47:38 PM
Hi Mark,

just want to tell you that your SteelSeries are working perfect not only on my main weather site but also on the Meteotemplate (http://wetter.unterwurzacher.at/template/pages/station/live.php)! Waiting on the Cloud-Height-Graph you are using in your website.

 ;)

Cheers,
Title: Re: Steel Gauges
Post by: Blicj11 on October 25, 2016, 07:27:07 PM
Reinhard, your Meteotemplate SteelSeries page is gorgeous. I really like your colour selection.
Title: Re: Steel Gauges
Post by: mcrossley on October 25, 2016, 10:37:58 PM
Hi Mark,

just want to tell you that your SteelSeries are working perfect not only on my main weather site but also on the Meteotemplate (http://wetter.unterwurzacher.at/template/pages/station/live.php)! Waiting on the Cloud-Height-Graph you are using in your website.

 ;)

Cheers,
Nicely done Reinhard - I think that is the first Meteotemplate/SteelSeries integration I have seen.
Title: Re: Steel Gauges
Post by: Blicj11 on January 11, 2017, 06:31:53 PM
Mark:

I recently obtained an encryption certificate for my website using SSL. Using the secure URL results in me not being able to see the SteelSeries Gauges although they still appear without it. Any suggestions?

https://timberlakesutah.com/weather/ cannot see the gauges using Safari

http://timberlakesutah.com/weather/ can see the gauges
Title: Re: Steel Gauges
Post by: mcrossley on January 11, 2017, 11:31:43 PM
Yes, it because the main page is loaded as HTTPS, but the sub-pages are still being loaded as HTTP - mixed content is blocked by default.

If you want to switch the site the HTTPS then you will have to also change all the internal links to HTTPS as well.

You will also need to edit script loads the change to https where they come from a different site, eg. <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> - Assuming the third party supports https, if they don't then you will need to provide a local copy of the script and reference it without the site which means it works with both http and https, eg. <script src="/myscripts/jquery-1.11.1.min.js"></script>

Moving to HTTPS can be non-trivial exercise :(
Title: Re: Steel Gauges
Post by: Blicj11 on February 14, 2017, 10:43:49 PM
Mark:

Thanks for the insight on complying with a security certificate. I am making progress. I have a few questions about some lines in three scripts.

gauges.js
line 170-176 are external links to the various websites of supported weather software programs, none of which currently support https, but as they are only an external link and not actually loading any data or scripts, I assume leaving the correct http link as is, is ok.

language.min.js
line 2 has some error messages like StatusHttp:"HTTP Request Failed", in various languages.
I assume these are ok to leave as is, or should I change to read:
StatusHttp:"HTTPS Request Failed",

Same question about the language.js file:
line 2062 StatusHttp:"Erro no pedido HTTP",
I don't anticipate using this language but should I change the error message to
StatusHttp:"Erro no pedido HTTPS"

Otherwise, I believe I have successfully changed all other scripts referencing http to https.

You are right, this is not a trivial exercise!  :(
Title: Re: Steel Gauges
Post by: mcrossley on February 14, 2017, 10:54:13 PM
Mark:

Thanks for the insight on complying with a security certificate. I am making progress. I have a few questions about some lines in three scripts.

gauges.js
line 170-176 are external links to the various websites of supported weather software programs, none of which currently support https, but as they are only an external link and not actually loading any data or scripts, I assume leaving the correct http link as is, is ok.
Leave as is, they launch in a new page anyway so it doesn't really matter.


language.min.js
line 2 has some error messages like StatusHttp:"HTTP Request Failed", in various languages.
I assume these are ok to leave as is, or should I change to read:
StatusHttp:"HTTPS Request Failed",

Same question about the language.js file:
line 2062 StatusHttp:"Erro no pedido HTTP",
I don't anticipate using this language but should I change the error message to
StatusHttp:"Erro no pedido HTTPS"
For completeness they should all be changed. But I don't think anyone will ever notice - you never get download errors do you? ;)


Otherwise, I believe I have successfully changed all other scripts referencing http to https.

You are right, this is not a trivial exercise!  :(
Well done, I might be brave enough to do it myself one day....
Title: Re: Steel Gauges
Post by: Randall75 on February 14, 2017, 11:26:07 PM
Hi mark and Blick
 I just updated to 2.5.18 and to get my Weather name to show up at the top of page I had to add some code to get it to work.


you can see it here: http://randysweatheronthehill-usa.com/gauges-ss-basic.htm (http://randysweatheronthehill-usa.com/gauges-ss-basic.htm)


so is there a better way to do this I had to add: <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 </head>
  <body>
    <div class="row"> <canvas id="canvas_header" width="25" height="25"></canvas>&nbsp;&nbsp;&nbsp;<big><big>
          <big> <b>RANDY'S WEATHER ON THE HILL&nbsp;&nbsp;&nbsp;
              REFORM, OHIO </b></big></big></big>


thanks
Title: Re: Steel Gauges
Post by: Blicj11 on February 15, 2017, 12:16:25 AM
For completeness they should all be changed. But I don't think anyone will ever notice - you never get download errors do you? ;)
...
Well done, I might be brave enough to do it myself one day....
Ha ha. You are correct, I've never had a download error with my SteelSeries Gauges because your scripts work. Thanks, mate.  ThU5:-)
Converting a site from http to https is not for the faint of heart.

Hi mark and Blick
 I just updated to 2.5.18 ...
Aaaaagh! Don't tell me that. I just spent all day editing my 2.5.15 scripts to comply with my security certificate. Now I have to start all over again.  :'(

On a happier note, your title looks fine to me.
Title: Re: Steel Gauges
Post by: Blicj11 on February 15, 2017, 05:38:07 AM
Mark:

Can you help me understand the change to the Metar default on line 54 in gauges.js? If the default used to be enabled, but now is disabled, do i want to enable it here in order to keep the wind direction gauge functioning in 2.5.18 like it was in 2.5.15?

Thanks. The changes you made are nice, but Reinhard is going to ask you where is the altimeter face for the Cloud Base gauge.  :)
Title: Re: Steel Gauges
Post by: mcrossley on February 15, 2017, 09:26:33 AM
Can you help me understand the change to the Metar default on line 54 in gauges.js? If the default used to be enabled, but now is disabled, do i want to enable it here in order to keep the wind direction gauge functioning in 2.5.18 like it was in 2.5.15?
The change just removes the bit of text in the hover pop-up on the gauge that displays a bit of pseudo METAR type info eg. METAR 17405G10KT 120V240
Most people found that confusing so I have defaulted it to being 'off'.


Thanks. The changes you made are nice, but Reinhard is going to ask you where is the altimeter face for the Cloud Base gauge.  :)
Ah, that needs some changes to both the script and the SteelSeries libraries.
Title: Re: Steel Gauges
Post by: Blicj11 on February 15, 2017, 03:14:27 PM
Thank you for the explanation and quick reply. Again, the tweaks and enhancements that you incorporated are much appreciated. I went through a file by file comparison of every item in the download and you cleaned up a lot of extra spaces and lines, in addition to giving us some nice improvements. Very nice work, Mark, and much appreciated! You are my favourite non-user of WeatherCat.  :D
Title: Re: Steel Gauges
Post by: mcrossley on February 15, 2017, 08:33:00 PM
Thank you for the explanation and quick reply. Again, the tweaks and enhancements that you incorporated are much appreciated. I went through a file by file comparison of every item in the download and you cleaned up a lot of extra spaces and lines, in addition to giving us some nice improvements. Very nice work, Mark, and much appreciated!
Github will do the 'diffs' for you as well for a quick look-see what has changed on the web before you decide if it is worth updating in the future.


You are my favourite non-user of WeatherCat.  :D
Ah, Jachym must be challenging me on that front now  [cheers1]
Title: Re: Steel Gauges
Post by: Blicj11 on March 02, 2017, 07:25:13 PM
Here are the changes Mark made to the last several releases of SteelSeries Gauges:

2.5.18
  * Updated gauges.js
    - Added CS tweak for WD users who normally use wxgraphs for the popup images, changes aspect ratio.
    - Now obeys the various default scale ranges in gaugeGlobals.[gauge]ScaleDef[Min|Max][unit] settings

2.5.17
  * Updated gauges.js
    - Added new config item "showWindMetar" to enable the METAR substring for wind on the direction gauge,
      the default is now disabled (was enabled). Previously you could only disable it by not showing any
      wind variation on the gauge.

2.5.16
  * Updated gauges.js
    - Minor code style/format changes
    - Fixed the display of todays high/low decimal places the singleBaro.update() function
    - Fixed an issue with the Ajax timeout error handling
    - Amended the hPa to inchesHg conversion to use 3 decimals for inches
    - Amended the popup tooltip positioning and sizing to try and keep it on-screen better on tiny displays
    - Added config.roundCloudbaseVal to enable/disable cloud base rounding for display
  * Updated gauges-ssT.htm, index.html.tmpl, gauges-ssT.htx, steelseriesVWSjson.php
    - Fixed the demo HTML templates to use double quotes for element ids
  * Updated steelseriesVWSjson.php
    - Added no cache header
    - Cosmetic changes
  * Updated gauge-data.txt.tmpl (Changes via pull request 3 from gjr80)
    - humidex calc now (correctly) uses dewpoint in degree K
    - removed redunant code in humidex and apptemp calcs
  * Updated language.js language.min.js
    - Minor change to Norwegan 'meters' -> 'meter'

2.5.15
  * Updated gauges.js
    - Removed deprecated RegExp.$1, and .selector code, plus other changes around the popups to make them compatible with JQuery 3.0
Title: Re: Steel Gauges
Post by: Blicj11 on March 02, 2017, 08:42:41 PM
I have updated the wiki article for installing and customising the latest release of Mark Crossley's SteelSeries Gauges (2.5.18). Generally, if you are using a template, this does not apply to your website if the developer has provided you with that template's version of the Gauges. However, if you are using Edouard's SeaMonkey template, it is time to put some pressure on him to leave the Buick in the garage for 24 hours and install these ultra-cool gauges on his website so he will have something about which to be excited.

Enjoy.

http://wiki.trixology.com/index.php?title=Steel_Series_Gauges#How_to_configure_the_SteelSeries_Gauges_for_WeatherCat
Title: Re: Steel Gauges
Post by: Blicj11 on April 18, 2017, 06:21:13 PM
Mark:

I assume the Calculated Cloud Base for the gauges is provided by WeatherCat, but want to verify. Do you get it from WeatherCat or calculate it independently?

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on April 19, 2017, 05:48:25 PM
It comes from WC - STAT$CLOUDBASE:CURRENT$
Title: Re: Steel Gauges
Post by: mcrossley on April 22, 2017, 09:26:20 PM
I have been a bit remiss posting announcements of new releases (on all the forums), but version 2.6.0 is now available. The changes are listed at the bottom of the readme (https://github.com/mcrossley/SteelSeries-Weather-Gauges/blob/master/ReadMe.txt)

Repository is here: https://github.com/mcrossley/SteelSeries-Weather-Gauges
Direct download of zip: https://github.com/mcrossley/SteelSeries-Weather-Gauges/archive/master.zip

Note: In order to try out different colour combinations and gauge styles, you can use my gauge demo pages:
Radial Gauges (http://www.wilmslowastro.com/steelseries/demoRadial.html), LinearGauges (http://www.wilmslowastro.com/steelseries/demoLinear.html), Extra Gauges (http://www.wilmslowastro.com/steelseries/demoExtras.html), StopWatch Gauge (http://www.wilmslowastro.com/steelseries/demoStopWatch.html), Traffic Lights (http://www.wilmslowastro.com/steelseries/demoTrafficLight.html), Light Bulb (http://www.wilmslowastro.com/steelseries/demoLightBulb.html), LCD Sections (http://www.wilmslowastro.com/steelseries/demoLcdSections.html),
Wind Radar Gauge (http://www.wilmslowastro.com/steelseries/radar/radar.html)
Title: Re: Steel Gauges
Post by: Blicj11 on April 22, 2017, 10:54:48 PM
Thanks for the good news. I know what I'm going to be doing on Monday (the next time I can grant myself some SteelSeries time).
Title: Re: Steel Gauges
Post by: Blicj11 on April 23, 2017, 06:35:28 AM
Couldn't wait. When I got home tonight, I upgraded to version 2.6.0. Thanks Mark, for continuing to improve the SteelSeries Gauges and for making them available to the backyard weather station community. Well done, mate!

I have updated the Wiki to reflect new line numbers to conform to this release: http://wiki.trixology.com/index.php?title=Steel_Series_Gauges

Sorry Reinhard, still no altimeter face on the Cloud Base Gauge for the common people (including you and me). ;)
Title: Re: Steel Gauges
Post by: wurzelmac on April 23, 2017, 09:25:32 AM
Thanks Mark for continuous improving your script. Up and running the latest version, although no altimeter face for cloud base implemented yet.  ;)

One question, Mark: The odometer (and all other gauges) do show white text except the string "km" - how to change this one?

Thanks again,
Title: Re: Steel Gauges
Post by: mcrossley on April 23, 2017, 10:12:50 AM
Argh! I forgot about the titles changing colour with the background - a patch coming soon!
Title: Re: Steel Gauges
Post by: mcrossley on April 23, 2017, 10:22:26 AM
Done. 2.6.1 now available ...

Code: [Select]
@ -2224,6 +2224,7 @@ function () {
                      ctx.save();
                      // set the font
                      ctx.font = 0.08 * size + 'px serif';
 +                    ctx.strokeStyle = gaugeGlobals.background.labelColor.getRgbaColor();
                      ctx.fillStyle = gaugeGlobals.background.labelColor.getRgbColor();
                      ctx.textAlign = 'center';
                      ctx.textBaseline = 'middle';
 @@ -2246,6 +2247,8 @@ function () {
                      ctx.textAlign = 'center';
                      ctx.textBaseline = 'middle';
                      ctx.font = 0.05 * cache.gaugeSize + 'px Arial,Verdana,sans-serif';
 +                    ctx.strokeStyle = gaugeGlobals.background.labelColor.getRgbaColor();
 +                    ctx.fillStyle = gaugeGlobals.background.labelColor.getRgbaColor();
                      ctx.fillText(cache.gaugeOdoTitle, cache.plotSize2, cache.plotSize * 0.75, cache.plotSize * 0.5);
                      ctx.restore();
                  }
Title: Re: Steel Gauges
Post by: wurzelmac on April 23, 2017, 11:08:12 AM
 [tup]
Title: Re: Steel Gauges
Post by: Blicj11 on April 25, 2017, 05:59:40 AM
Thanks Mark. I have updated the WeatherCat Wiki to conform to the line changes in the version 2.6.1 gauges.js file.
Title: Re: Steel Gauges
Post by: wurzelmac on August 28, 2017, 02:59:13 PM
Thanks Mark for the next improvement, much appreciated!  ThU32:-)

Blick, just detected that Mark is on 2.6.3 in the meantime:

Release History
=======================
2.6.3
  Updated
  * gauges.js
  * gauges-ss-basic-inc.php
  * gauges-ss-basic.htm
    - Added rel="noopener" to progam html links

2.6.2
  * Updated gauges.js
    - Solar gauge: Fixed the "over theoretical" sector not displaying correctly above the default gauge max scale value.
    - Solar gauge: Added sector to indicate 'sun is shining'.
    - Wind gauge: Added animation to rescaling.
    - UV gauge: Added rescaling back to default and animation.
    - Rain gauge: Added rescaling back to default.

 :)
Title: Re: Steel Gauges
Post by: Blicj11 on August 28, 2017, 06:58:41 PM
Thanks Reinhard, I'll upgrade. I usually check about once a month but haven't done so lately.
Title: Re: Steel Gauges
Post by: Steve on August 29, 2017, 12:20:16 AM
Yikes, I'm on 2.5.17. I guess I haven't been paying attention!
Title: Re: Steel Gauges
Post by: Blicj11 on August 29, 2017, 02:14:58 AM
Mark has made some nice improvements, Steve.
Title: Re: Steel Gauges
Post by: Blicj11 on August 29, 2017, 06:58:59 AM
I have now updated the Wiki for the most recent version of Mark Crossley's SteelSeries Gauges (2.6.3).

Generally, if you are using a template, this does not apply to your website if the developer has provided you with that template's version of the Gauges. However, if you are using Edouard's SeaMonkey template, it is time to put some pressure on him to leave the Buick in the garage for 24 hours and install these ultra-cool gauges on his website so he will have something about which to be excited other than how hot and dry it is in California.

Have fun.

http://wiki.trixology.com/index.php?title=Steel_Series_Gauges
Title: Re: Steel Gauges
Post by: mcrossley on August 31, 2017, 03:48:23 PM
Hopefully it has reached the stage now where most changes are "tweaks" rather than big fixes or new features. Though there are bugs reported occasionally that make you think "How did I miss that?!" (probably along with everyone else too ;) )
Title: Re: Steel Gauges
Post by: Blicj11 on August 31, 2017, 03:56:20 PM
Mark, we appreciate your time and effort on this. You have been great. Reinhard and I are still hoping that your have the altimeter skin on your some-day-to-do list for the cloud base gauge.  :D
Title: Re: Steel Gauges
Post by: mcrossley on August 31, 2017, 06:11:08 PM
For the altimeter you will need to use the "full fat" version of the SteelSeries library (https://github.com/mcrossley/SteelSeries-Weather-Gauges) and substitute that for the lite version I supply with the weather gauges.

Then a cut'n'paste of the code from my page, you should just need the function "singleCloudBase = (function () {...})()" from my version of the gauges script (http://weather.wilmslowastro.com/scripts/gauges-test-live.js).

Now I may write it up for you one day....   :-\
Title: Re: Steel Gauges
Post by: wurzelmac on September 01, 2017, 04:09:44 PM
Please Mark, can you turn on some light in my brain?  :-[

Where can i find the full fat library - your first link (SteelSeries library) link takes me to your scripts. And if I can finally find the library, just replace it or add it to the webserver stuff?
Title: Re: Steel Gauges
Post by: wurzelmac on October 15, 2017, 11:16:12 AM
Another question to Mark (maybe you can find some spare time to answer, not urgent):

Is it possible to add a third (or more) parameter(s) to the temperature gauge: Outdoor, Indoor, T1 (T2, T3, ...)? For the txt file it should be no problem to feed the script with additional parameters.

Thanks in advance,
Title: Re: Steel Gauges
Post by: mcrossley on October 15, 2017, 10:30:40 PM
Please Mark, can you turn on some light in my brain?  :-[

Where can i find the full fat library - your first link (SteelSeries library) link takes me to your scripts. And if I can finally find the library, just replace it or add it to the webserver stuff?

Sorry, I missed this post for some reason - if you are still looking, it can be found at https://github.com/HanSolo/SteelSeries-Canvas

Quote from: wurzelmac
Is it possible to add a third (or more) parameter(s) to the temperature gauge: Outdoor, Indoor, T1 (T2, T3, ...)? For the txt file it should be no problem to feed the script with additional parameters.

Almost anything is possible given enough time and effort  ;)
I'd change the "if (sel === 'out'){}else{}" construct in singleTemp().update() to a switch() statement with a case for each temperature type.
Also change the
Code: [Select]
                    if (cache.selected === 'out') {
                        cache.areas = [steelseries.Section(+cache.low, +cache.high, gaugeGlobals.minMaxArea)];
                    } else {
                        cache.areas = [];
                    }
to a switch() as well.

Add the additional options to the HTML.

Title: Re: Steel Gauges
Post by: wurzelmac on October 16, 2017, 05:53:04 PM
Thanks for the hints, Mark - much appreciated! I will see what I am able to do...  [computer]

 :)
Title: Re: Steel Gauges
Post by: mcrossley on October 16, 2017, 06:08:31 PM
Actually, just take a look at the code in "singleDew", that has the framework you need in place already!   ::)
Title: Re: Steel Gauges
Post by: wurzelmac on October 17, 2017, 07:20:05 PM
Actually, just take a look at the code in "singleDew", that has the framework you need in place already!   ::)

 [rockon]

Coming sunday there is bad weather predicted - nice forecast for home working...  :)
Title: Re: Steel Gauges
Post by: wurzelmac on December 15, 2017, 11:40:26 AM
Ok, I have to say that I failed miserably in adding a third option to the temperature gauge.  :-[  ;)
Thanks Mark for updating the scripts to 2.6.4 - much appreciated! You *may* also update the readme.txt headline to 2.6.4.  ;D
Thanks again!
Title: Re: Steel Gauges
Post by: mcrossley on December 15, 2017, 12:51:33 PM
If you want to make your code available I can take a look.

2.6.4 - Readme updated! [banghead] Gosh! first released 2011 - about time I did something new!   [lol2]
Title: Re: Steel Gauges
Post by: Blicj11 on December 15, 2017, 05:19:22 PM
Mark:

What changed from 2.6.3 to 2.6.4?

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on December 15, 2017, 05:25:44 PM
Nothing functional, I just changed any internal html links to be http/https friendly as quite a few people (including me) are enabling SSL on their sites.
Title: Re: Steel Gauges
Post by: Blicj11 on December 15, 2017, 05:28:43 PM
Thanks for the quick reply. I am using SSL on my site. Do I need to change anything when I upgrade to 2.6.4 or just make my usual edits?
Title: Re: Steel Gauges
Post by: mcrossley on December 15, 2017, 05:32:49 PM
If you are already using SSL with 2.6.3 and have it working there is no need to update, I'd save the effort and wait for a release that has functional changes/fixes.
Title: Re: Steel Gauges
Post by: Blicj11 on December 15, 2017, 05:36:33 PM
Ok. Thanks mate. I'll sit tight and wait (with Reinhard) for you to implement the altimeter look to the cloud base gauge.  ;D

By the way, I had a look at your Astro website this morning. A very interesting read.
Title: Re: Steel Gauges
Post by: mcrossley on December 15, 2017, 05:46:00 PM
I'm afraid my astro site hasn't been updated in a very long time.
Title: Re: Steel Gauges
Post by: wurzelmac on December 15, 2017, 06:38:48 PM
If you want to make your code available I can take a look.

I take a look at the code for some hours but I really don't dare to write any line to fit to my goal - too heavy for me.  :-[
Title: Re: Steel Gauges
Post by: Blicj11 on January 24, 2018, 05:21:34 PM
Mark:

I guess I haven't been paying attention, but just noticed for the first time, a yellow (greenish) band on the Solar Radiation gauge. I know the red band is the current solar radiation range, but what does the yellow band represent? Most of the time when I look at the gauge there is no yellow band. See attached.
Title: Re: Steel Gauges
Post by: wurzelmac on January 24, 2018, 06:28:42 PM
Hello Blick,
maybe I can help:
Quote
2.6.2
  * Updated gauges.js
    - Solar gauge: Fixed the "over theoretical" sector not displaying correctly above the default gauge max scale value.
    - Solar gauge: Added sector to indicate 'sun is shining'.
    - Wind gauge: Added animation to rescaling.
    - UV gauge: Added rescaling back to default and animation.
    - Rain gauge: Added rescaling back to default.
So it seems that when the needle arrives this sector the LED "sunshine" begins to glow.
Title: Re: Steel Gauges
Post by: Blicj11 on January 24, 2018, 06:36:07 PM
Ah! So once again you have demonstrated that it is a good idea to review the documentation. Thanks Reinhard.
Title: Re: Steel Gauges
Post by: mcrossley on January 25, 2018, 10:46:51 AM
Sorry, been a bit busy with paid work (it sometimes gets in the way of *real* work  ;) ).
But, spot on, it indicates the current threshold above which it is deemed that the sun is shining. It is crude, but the best we can do without a true sunshine detector, and normally it is fairly accurate.
Title: Re: Steel Gauges
Post by: Blicj11 on January 25, 2018, 05:03:43 PM
Thanks, Mark. And sorry about your job getting in the way. Haha. Happens to the best of us.
Title: Re: Steel Gauges
Post by: Blicj11 on March 20, 2018, 04:25:10 PM
Mark:

I am using version 2.6.3 and trying to add a logo to the gauges. I started by editing gauges.js but all I did was delete the comment codes as follows:

Code: [Select]
            // Logo images are used to 'personalise' the gauge backgrounds
            // To add a logo to a gauge, add the parameter:
                params.customLayer = _imgBackground;
            // to the corresponding drawXxxx() function below.
            //
            // These are for demo only, to add them remove the comments around the following lines, and
            // the _imgBackground definition line above...
           
            _imgBackground = document.createElement('img');                 // small logo
            $(_imgBackground).attr('src', config.imgPathURL + 'logoSmall.png');
           
            // End of logo images

I also uncommented line 191 as follows:

Code: [Select]
         _imgBackground,    // Uncomment if using a background image on the gauges */
The result was that none of the gauges displayed. Are the blank lines a problem? The logoSmall.png is in the same folder as the background image I am using and it displays properly. Can you tell me what am I doing wrong?

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on March 20, 2018, 07:07:21 PM
Hmm, it's been a long time since I looked at that featurette - though I did see a site using it recently so presumably it can be made to work!

Could you put up a test page for me with your modded code and I'll have a debug?...
Title: Re: Steel Gauges
Post by: Blicj11 on March 21, 2018, 08:40:24 PM
Mark:

Thanks so much for your willingness to take a look. I have a test page, although because WeatherCat uploads the data to only one folder (and that is the folder for my live gauges) the data for the test page is not current, but you should be able to see that the gauges do not display when I attempt to add the log to the gauge.

https://timberlakesutah.com/weather-test-page/

Any insight is appreciated.
Title: Re: Steel Gauges
Post by: mcrossley on March 21, 2018, 09:09:31 PM
Thanks, well it still works!

You have uncommented an example at line 382, add the comment characters back in there.
Code: [Select]
            //    params.customLayer = _imgBackground;
Then at each singleXxxxx() gauge definition where you want the image to appear, add the line...
Code: [Select]
params.customLayer = _imgBackground;to the rest of the parameters.

Line 738 in the temperature gauge - singleTemp() already has an example commented out, just remove the comment from this gauge to test the feature, you can do others later.

You should then see something like this...
Title: Re: Steel Gauges
Post by: mcrossley on March 21, 2018, 09:11:42 PM
I've not really found much use for this though!
Title: Re: Steel Gauges
Post by: Blicj11 on March 21, 2018, 09:32:03 PM
Thanks for the quick reply and the suggestions. You are probably right about whether or not its useful. I have always wanted to try it just to see what it looks like. I will give it a go and report back.
Title: Re: Steel Gauges
Post by: Blicj11 on March 22, 2018, 04:30:58 PM
Mark:

Can you please tell me how to try this background image on the Wind Rose Gauge? As you know, it is created differently, and has this code starting at line 2089.

Code: [Select]
                    // Optional - add a background image
                    /*
                    if (g_imgSmall !== null) {
                        var drawSize = g_size * 0.831775;
                        var x = (g_size - drawSize) / 2;
                        buffers.ctxBackground.drawImage(g_imgSmall, x, x, cache.gaugeSize, cache.gaugeSize);
                    }
                    */

I tried just uncommenting these lines, but that caused the gauge to disappear. Is there a way to edit these lines to allow the background image to display?

Thanks.
Title: Re: Steel Gauges
Post by: mcrossley on March 22, 2018, 08:27:54 PM
That bit of code looks like it is well past its sell by date!  It will take a little time and digging to get it functional again, which I don't have at the mo, maybe this w/end...
Title: Re: Steel Gauges
Post by: Blicj11 on March 23, 2018, 03:45:53 PM
Thank you so much! I just appreciate the help whenever you can get to it. Like Tesco, every little helps.
Title: Re: Steel Gauges
Post by: xairbusdriver on April 15, 2018, 09:33:19 PM
I've just looked at all the links to Steel Series Gauges in the Wiki (a couple of the links are 'dead', BTW) and am a little surprised at how similar they seem to be. :) I assume it is because they are using the default settings?

Other than that, I noticed that all the gauges are the same size. I hope that doesn't mean they have to be that way. ???
Title: Re: Steel Gauges
Post by: Blicj11 on April 16, 2018, 06:30:54 PM
Thanks for the heads-up on the broken link. The user moved his gauges to a different address and the link is now updated. The other two are not broken, just down at the moment. As far as similarity, yes, it appears that most users opt for the default gauges. Nothing wrong with that; they look great. Those users who have customised the "look and feel" have even better looking gauges. As to gauge size, the links in the sample section show that all three sizes (small, standard, and large) are in use on the various sites. If, on the other hand, you meant that all the gauges on a single site are the same size, that is because the user elected to keep all of his or her gauges the same size. However, if you have bad design taste, it is possible to have different size gauges on the same site.
Title: Re: Steel Gauges
Post by: xairbusdriver on April 16, 2018, 07:05:20 PM
Thanks, Blick!

Not sure how having different size gauges on the same site defines "bad design taste". A less important gauge need not take up the same space as a more important one. The key word there is "important" which I will consider to be "in the eyes of the beholder". ;)

I'll see if I can find the sample page that shows all the sizes. Hopefully, I can find some with much smaller bezels.

Since we quit flying "steam gauge" aircraft decades ago, I may go to the more digital format anyway.

Found another Wiki site (http://wiki.sandaysoft.com/a/SteelSeries_Gauges (http://wiki.sandaysoft.com/a/SteelSeries_Gauges)) and it had some good info:
Quote
You can easily have different sized gauges on the same page, in the gauges-ss.css I have created two additional classes ".gaugeSizeSml" and ".gaugeSizeLrg", (again you can edit the width/height values of these classes to whatever you want), to assign one of these alternative sizes to a gauge, edit the HTML and change (for example)...
Great to have CSS involved, it really helps when media queries can be used.

BTW, there is a "demo" site mentioned in the WC Wiki that may be 'dead': http://www.wilmslowastro.com/steelseries/demoRadial.html (http://www.wilmslowastro.com/steelseries/demoRadial.html) I can't get even the base domain url (www.wilmslowastro.com/) to work (tried 4 browsers), much less the link in the Wiki.
Title: Re: Steel Gauges
Post by: Blicj11 on April 17, 2018, 12:19:54 AM
Almost everything you find on the Sandysoft wiki for the gauges applies to WeatherCat as well. There is no sample of which I am aware that shows the three sizes on the same page, but the first two sample sites in the WeatherCat Wiki demonstrate small and standard. My website uses Large. You can look at those three sites and see the difference.

I define bad taste as anyone's taste that does not align with mine. Hahahaha.

Mark Crossley's entire site is down at the minute, which is why you can't see the demo site. He'll be back up, so just be patient.

One last thing, you are using Wim's template. He already has his own version of these gauges baked into the Leuven template so if you want to use them, you'll have to use his instructions and files for implementation. His files are not interchangeable with Mark's.
Title: Re: Steel Gauges
Post by: xairbusdriver on April 17, 2018, 01:37:13 AM
I'm only using his standalone Forecast pieces. And at the rate of progress that NOAA seems to not have, I may 'upgrade' to my own parsing of their text only output. [banghead] That worked very well for the METAR parts of my site. It's probably even less interesting to the average viewer than the day-long video! [rolleyes2]

Your definition of bad design sounds remarkably similar to mine! cmu:-) I'm just trying to avoid yet another language for when I want to add my outstanding design skills to my site! I have a good grasp of the simple stuff like html and CSS3, I can usually get PHP to work as I want. I really have no desire to start on javascript. I am tackling Swift, but I doubt that will translate to creating fancy graphics for gauges. Oh well, I'm just happy I don't havce to earn a living at this stuff!! [lol]
Title: Re: Steel Gauges
Post by: mcrossley on April 17, 2018, 09:23:31 AM
As others have pointed out the sizes are one of three 'options' out of the box, but they are just set by CSS so you can change them to whatever you want.
There is a 'tweak' in the gauges.js file to scale the size if it detects it is being loaded on a mobile device - either smaller or larger, its just a multiplier.

As far as the bezel size, sorry that is fixed in the base SteelSeries library. I have looked at altering that (more than once!) but it is a BIG job which I cannot ever find the time for. A rewrite of the gauges would be required rather than fudging it as that would rapidly become very messy :( Shame as I would like them a bit slimmer - or even "bezel-less". I added the ability to switch off the display of the bezel, but it still occupies the space :(
Title: Re: Steel Gauges
Post by: xairbusdriver on April 17, 2018, 02:38:09 PM
Thanks! I use media queries in CSS to change the sizes of images on my sites, already. It's also great for changing the number of columns to prevent too narrow or too wide lines of text.

With an option to turn the bezels off, it might be possible to use negative padding/margins to allow less 'white space'. And positioning the gauge over a CSS 'circle' might well serve as a narrower 'bezel'.

As an encouragement for your future gauge development/'tweaking', here are some 'modern', highly accurate and easy to scan/read examples:Naturally, everything connected to aircraft is at least double the price of the same thing in automotive use, so you could charge extra for these gauges!! [lol]
"Sure, I can code that! Programming is really just typing... " [computer] [rolleyes2]
Title: Re: Steel Gauges
Post by: mcrossley on July 23, 2018, 05:22:48 PM
Quick question, I'm adding indoor temperature min/max (and times) at the request of  Weather Display user to make it consistent with the indoor humidity. To add the extra data to the WC data file are these data values available, and would the correct fields be...
Code: [Select]
"intemp":"STAT$INTTEMPERATURE:CURRENT$",
"intempTL":"STAT$INTTEMPERATURE:MIN:TODAY$",
"TintempTL":"STAT$INTTEMPERATURE:MIN:TODAY:TIME$",
"intempTH":"STAT$INTTEMPERATURE:MAX:TODAY$",
"TintempTH":"STAT$INTTEMPERATURE:MAX:TODAY:TIME$",

I'm doing this not primarily because lots of people are interested in the indoor min/max, but because it provides an easy way for people to display data from an additional temp/hum sensor if they so wish. Just edit the data file template and change the gauge name text.
Title: I believe correct - somebody double-check? (Re: Steel Gauges)
Post by: elagache on July 23, 2018, 11:49:16 PM
Dear Mark and WeatherCat STAT tag experts,

Quick question, I'm adding indoor temperature min/max (and times) at the request of  Weather Display user to make it consistent with the indoor humidity. To add the extra data to the WC data file are these data values available, and would the correct fields be...
Code: [Select]
"intemp":"STAT$INTTEMPERATURE:CURRENT$",
"intempTL":"STAT$INTTEMPERATURE:MIN:TODAY$",
"TintempTL":"STAT$INTTEMPERATURE:MIN:TODAY:TIME$",
"intempTH":"STAT$INTTEMPERATURE:MAX:TODAY$",
"TintempTH":"STAT$INTTEMPERATURE:MAX:TODAY:TIME$",

That looks correct to me, but I'm no expert on the STAT tag.  Can somebody double-check this?

Cheers, Edouard
Title: Re: Steel Gauges
Post by: Blicj11 on July 24, 2018, 05:27:32 PM
These also look correct to me, Mark. I think this is a nice addition to the gauges. Thank you.
Title: Re: Steel Gauges
Post by: Blicj11 on July 26, 2018, 04:47:08 AM
I have upgraded my SteelSeries Gauges to version 2.7.0, which is now available on Github. I can confirm that the new daily min and max for Internal Temperature are working properly on the popup graph. A big THANK YOU to Mark Crossley for your continuing improvements to these stunning gauges. Maybe one of these days, you will share your code for the altimeter look on the Cloud Base gauge so that Reinhard and I will stop feeling sorry for ourselves.  ;D

The WeatherCat Wiki instructions for SteelSeries Gauges are found at http://wiki.trixology.com/index.php?title=Steel_Series_Gauges
Title: Re: Steel Gauges
Post by: mcrossley on July 26, 2018, 10:58:53 AM
Thanks. Like I said above it makes it easier for people to change the indoor values for readings from an additional temp/hum sensor.

Maybe one of these days, you will share your code for the altimeter look on the Cloud Base gauge so that Reinhard and I will stop feeling sorry for ourselves.  ;D
You could always take a peek at my script and copy the changes to that gauge - but I'd do it on a test page and it's an unsupported process! ;)
The gauges are all about user customisation.  [computer]
Title: Re: Steel Gauges
Post by: wurzelmac on July 27, 2018, 06:09:43 PM
Hello Mark,

I just upgraded to 2.7.0, too. I can now see the temp range of my additional sensor T1 right on the gauge - cool! But I also detected some small things that do not fit, see attached screenshots. The min pointer - blue triangle - is always at the minimum the gauge can display, the max pointer - red triangle - is correct on the outdoor gauge but the same on the T1 (Indoor) gauge. Hope the pictures do explain what I want to tell.

Thanks for your improvements, even for us WeatherCat users - much appreciated!

Cheers,
Title: Re: Steel Gauges
Post by: mcrossley on July 27, 2018, 09:48:12 PM
Hi Reinhard, you win the prize for the first bug in 2.7.0  [woohoo]

I will release 2.7.1 to fix, but a quick fix just for you to save you reloading the script and editing it again...  ThU32:-)

Delete lines 831 & 824 and change the version to 2.7.1 ;)
Code: [Select]
824: cache.maxMinVisible = true;
831: cache.maxMinVisible = false;

The min/max indicators are not used on the temp gauge as the coloured sector shows the min/max. They got enabled on the "indoor" display in act of exuberance on my part!
Title: Re: Steel Gauges
Post by: Blicj11 on July 27, 2018, 10:30:54 PM
Well done, Reinhard. Thanks for the quick fix, Mark. I have made the changes and am running version 2.7.1 and can confirm there are no min/max indicators on the temperature gauge. Hope you are now both preparing to go outside to view at the lunar eclipse.
Title: Re: Steel Gauges
Post by: mcrossley on July 27, 2018, 11:36:37 PM
After weeks of a heat wave and not a cloud in the sky - we are clouded out tonight  [banghead]
Title: Re: Steel Gauges
Post by: Blicj11 on July 28, 2018, 03:05:13 AM
After weeks of a heat wave and not a cloud in the sky - we are clouded out tonight  [banghead]

Booo!
Title: Re: Steel Gauges
Post by: wurzelmac on July 28, 2018, 07:44:46 PM
Thanks Mark, I'll do the modifications when I have time! Thanks again for quick fixing it!

Cheers,
Title: Re: Steel Gauges
Post by: wurzelmac on July 29, 2018, 08:18:48 PM
Thanks again, working so far...  :)

Another thing to mention is the "arrow up - equal - arrow down" - works Outdoor, not Indoor or Camera.

 ::)  :D
Title: Re: Steel Gauges
Post by: mcrossley on July 30, 2018, 02:44:29 PM
Yeah, I haven't implemented trends on the indoor, sorry.  :(
Title: Re: Steel Gauges
Post by: Blicj11 on July 30, 2018, 06:12:38 PM
Yeah, I haven't implemented trends on the indoor, sorry.  :(

Still an extremely impressive set of gauges, Mark. Even without trends on indoor. Thanks for sharing them.
Title: Re: Steel Gauges
Post by: wurzelmac on July 30, 2018, 06:55:33 PM
Yeah, I haven't implemented trends on the indoor, sorry.  :(

Ohh - no problem if not implemented. Just wanted to win the prize for the second bug - but sadly no bug. And no prize.  ;D ;D ;D

Still an extremely impressive set of gauges, Mark. Even without trends on indoor. Thanks for sharing them.

Correct, John - signed.
Title: Re: Steel Gauges
Post by: wurzelmac on August 02, 2018, 07:02:27 PM
Mark,

is there a donation page anywhere? Ok, not anywhere, especially for you...  ;)
Title: Re: Steel Gauges
Post by: mcrossley on August 02, 2018, 07:41:50 PM
There is a donation link, but do not feel obliged to contribute. It pays a for a beer or two now and then [cheers1]

Here's the link. (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R3Y5CFQPA9J5W)
Title: Re: Steel Gauges
Post by: Blicj11 on August 02, 2018, 09:03:04 PM
Mark, we all, sincerely appreciate your support of the WeatherCatters who use these gauges!
Title: Re: Steel Gauges
Post by: Randall75 on August 02, 2018, 11:30:29 PM
yes Mark they are  great I have them listed on my weather page just not the latest version
again thanks
Title: Re: Steel Gauges
Post by: Blicj11 on August 03, 2018, 05:25:09 AM
yes Mark they are  great I have them listed on my weather page just not the latest version

Randall, you are running version 2.5.18, which is so old school, whilst I am running 2.7.1, with benefits of many cutting edge improvements, such as:
Update your files, brother; you'll be glad you did.
Title: Re: Steel Gauges
Post by: wurzelmac on August 06, 2018, 04:20:10 PM
Update your files, brother; you'll be glad you did.

Signed!  :D
Title: Re: Steel Gauges
Post by: Blicj11 on February 23, 2019, 03:16:09 PM
Mark:

I am running version 2.7.3 but the gauges themselves display the version as 2.7.2.

I have checked the string variable in gauges.js and it looks like this:
Code: [Select]
scriptVer          : '2.7.3',
the code in gauges-ss-basic for displaying the version at the bottom of the gauges looks like this:
Code: [Select]
Scripts: Mark Crossley - version <span id="scriptVer"></span><br>
I have cleared the cache in Safari but that did not fix it. Same issue in Chrome. What do I need to do to display the correct version?
Title: Re: Steel Gauges
Post by: mcrossley on March 02, 2019, 01:25:16 PM
John, when I look at the script on your server I see 2.7.2 ?
https://timberlakesutah.com/wp-content/uploads/Weather/SteelSeries/scripts/gauges.js
Title: Re: Steel Gauges
Post by: Blicj11 on March 02, 2019, 07:10:10 PM
Hahahaha. You are correct, my friend. What I have learned from this is that it is not enough simply to edit the correct .js file; you also have to manage to upload it to the appropriate directory in order for it to have any impact on the steelseries gauges. Thank you for your patience and assistance with fixing my "problem."
Title: Re: Steel Gauges
Post by: mcrossley on March 02, 2019, 08:13:40 PM
We've all done similar things. [banghead]
Title: Re: Steel Gauges
Post by: wurzelmac on March 03, 2019, 06:56:52 AM
Blick: At least you showed me that there is an updated version available - I sticked on 2.7.1 and now I am on the very latest version, too. Thank you, Sir.  ThU5:-)
Title: Re: Steel Gauges
Post by: Blicj11 on March 03, 2019, 06:59:28 AM
Hahaha. Well, at least I helped someone.
Title: Re: Steel Gauges
Post by: Steve on November 16, 2019, 03:03:14 AM
Hi Mark and the rest of the SteelSeries user.

Today, I upgraded from SteelSeries 2.5or6.something to 2.7.3 And, of course, I broke it... I compared my file structure to John's, and they are identical, as are the parameters. But my gauges don't show any data. Do you guys see anything missing? Thanks for taking a peek.

Steve

http://www.avon-weather.com/steel/ (live.htm is the same as the basic.htm page, but with my menu and footer added.)

Code: [Select]
scriptVer          : '2.7.3',
            weatherProgram     : 3,                      // Set 0=Cumulus, 1=Weather Display, 2=VWS, 3=WeatherCat, 4=Meteobridge, 5=WView, 6=WeeWX, 7=WLCOM
            imgPathURL         : '../',            // *** Change this to the relative path for your 'Trend' graph images
            oldGauges          : 'gauges.htm',           // *** Change this to the relative path for your 'old' gauges page.
            realtimeInterval   : 30,                     // *** Download data interval, set to your realtime data update interval in seconds
            longPoll           : false,                  // if enabled, use long polling and PHP generated data !!only enable if you understand how this is implemented!!
            gaugeMobileScaling : 0.85,                   // scaling factor to apply when displaying the gauges mobile devices, set to 1 to disable (default 0.85)
            graphUpdateTime    : 15,                     // period of pop-up data graph refresh, in minutes (default 15)
            stationTimeout     : 3,                      // period of no data change before we declare the station off-line, in minutes (default 3)
            pageUpdateLimit    : 20,                     // period after which the page stops automatically updating, in minutes (default 20),
                                                         // - set to 0 (zero) to disable this feature
            pageUpdatePswd     : 'its-me',               // password to over ride the page updates time-out, do not set to blank even if you do not use a password - http://<URL>&pageUpdate=its-me
            digitalFont        : false,                  // Font control for the gauges & timer
            digitalForecast    : false,                  // Font control for the status display, set this to false for languages that use accented characters in the forecasts
            showPopupData      : true,                   // Pop-up data displayed
            showPopupGraphs    : true,                   // If pop-up data is displayed, show the graphs?
            mobileShowGraphs   : false,                  // If false, on a mobile/narrow display, always disable the graphs
            showWindVariation  : true,                   // Show variation in wind direction over the last 10 minutes on the direction gauge
            showWindMetar      : false,                  // Show the METAR substring for wind speed/direction over the last 10 minutes on the direction gauge popup
            showIndoorTempHum  : false,                   // Show the indoor temperature/humidity options
            showCloudGauge     : true,                   // Display the Cloud Base gauge
            showUvGauge        : true,                   // Display the UV Index gauge
            showSolarGauge     : true,                   // Display the Solar gauge
            showSunshineLed    : true,                   // Show 'sun shining now' LED on solar gauge
            showRoseGauge      : true,                   // Show the optional Wind Rose gauge
            showRoseGaugeOdo   : false,                   // Show the optional Wind Rose gauge wind run Odometer
            showRoseOnDirGauge : true,                   // Show the rose data as sectors on the direction gauge
            showGaugeShadow    : true,                   // Show a drop shadow outside the gauges
            roundCloudbaseVal  : true,                   // Round the value shown on the cloud base gauge to make it easier to read
                                                         // The realtime files should be absolute paths, "/xxx.txt" refers to the public root of your web server
            realTimeUrlLongPoll: 'realtimegauges-longpoll.php',     // *** ALL Users: If using long polling, change to your location of the PHP long poll realtime file ***
                                                                    // *** the supplied file is for Cumulus only
            realTimeUrlCumulus : 'realtimegauges.txt',     // *** Cumulus Users: Change to your location of the realtime file ***
            realTimeUrlWD      : 'customclientraw.txt',    // *** WD Users: Change to your location of the ccr file ***
            realTimeUrlVWS     : 'steelseriesVWSjson.php', // *** VWS Users: Change to your location of the JSON script generator ***
            realTimeUrlWC      : '../realtimegaugesWC.txt',   // *** WeatherCat Users: Change to your location of the JSON script generator ***
            realTimeUrlMB      : 'MBrealtimegauges.txt',   // *** Meteobridge Users: Change to the location of the JSON file
            realTimeUrlWView   : 'customclientraw.txt',    // *** WView Users: Change to your location of the customclientraw.txt file ***
            realTimeUrlWeewx   : 'gauge-data.txt',         // *** WeeWX Users: Change to your location of the gauge data file ***
            realTimeUrlWLCOM   : 'WLrealtimegauges.php',   // *** WLCOM Users: change to location of WLCOMtags.php file ***
            useCookies         : true,                   // Persistently store user preferences in a cookie?
            tipImages          : [],
            dashboardMode      : false,                  // Used by Cumulus MX dashboard - SET TO FALSE OTHERWISE
            dewDisplayType     : 'app'                   // Initial 'scale' to display on the 'dew point' gauge.
Title: Re: Steel Gauges
Post by: Steve on November 19, 2019, 11:15:59 PM
Hmmm, I don't know why, but when I checked today (the first time since messing with it on Friday) it is working fine. Another of those mysterious "fixed itself" occurrences...
Title: Re: Steel Gauges
Post by: mcrossley on November 20, 2019, 01:42:58 PM
Browser had a stale cache that got refreshed?
Title: Re: Steel Gauges
Post by: Steve on November 20, 2019, 03:52:56 PM
Browser had a stale cache that got refreshed?

Must have been. Looks great! Thanks for your continued support.
Title: Re: Steel Gauges
Post by: Blicj11 on November 21, 2019, 07:12:56 PM
I love it when a WeatherCatter solves a problem by doing nothing. Nice work, Steve.

I echo your appreciation to Mark for his continued support of WeatherCat for the SteelSeries Gauges. Brilliant set of gauges!
Title: Re: Steel Gauges
Post by: Blicj11 on January 22, 2020, 04:14:48 PM
Mark:

When I recently changed computers I lost the custom logo on my Cloudbase Gauge. I have been unable to figure out why. I would sure appreciate you taking a look for me when you have a few minutes. Thank you.
Title: Re: Steel Gauges
Post by: mcrossley on January 22, 2020, 05:07:02 PM
I see background image - did you fix it?

Title: Re: Steel Gauges
Post by: Blicj11 on January 22, 2020, 05:13:03 PM
Hahaha. I have no idea what happened. I couldn't find anything wrong so I posted my request for help. But I see now that is working. I didn't change anything so I'm guessing it was some kind of cache issue. Not sure. But thank you for looking!
Title: Re: Steel Gauges
Post by: JosBaz on November 07, 2020, 09:03:07 PM
Hi all,

I have a weird problem with the Steel Gauges. Everything worked fine for years, but all off a sudden the air pressure gauge (and the pressure gauge alone!) gave up on me. Rather than showing the correct value from the realtimeWC.txt file, it is stuck at the minimum 950hPa value and showing a red dial (storm!  ::)).

I (re)installed the latest version of the scripts, but results are the same.

WC is uploading the data, and all other dials are showing the correct values.

Gauges are here: https://www.weerenmeer.nl/steel/gauges-ss-basic.htm (https://www.weerenmeer.nl/steel/gauges-ss-basic.htm)
Datafile is here: https://www.weerenmeer.nl/realtimegaugesWC.txt (https://www.weerenmeer.nl/realtimegaugesWC.txt)

I'm not sure when exactly it went rogue, but I don't see how the latest WC update to 3.1 could have anything to do with it.

Any idea what could be wrong?

Jos


 
Title: Re: Steel Gauges
Post by: Blicj11 on November 07, 2020, 09:19:55 PM
Your data file looks good to me. I'm running WC 3.1.1 Build 26, but nothing changed for SteelSeries there. I see you are running 3.7.5 of the gauges whilst I'm running 3.7.3. I assume when you upgraded your SS version you did not introduce any rogue typo for that gauge. Looks like we'll have to wait for Mark Crossley to chime in here. Sorry.
Title: Re: Steel Gauges
Post by: WCDev on November 08, 2020, 09:07:40 AM
WeatherCat 3.1.0 and later honour the system grouping character specifier as set in the System Preferences->Language & Region->Advanced settings - the tags will pick this up. You'll need to add the DOTSEPARATORS$ tag to your source file (which will turn off all localised formatting for tags for the duration of the file) or turn off the system group separator character in the System Preferences->Language & Region preferences.

From the 3.1.0 release notes:
'The DOTSEPARATORS$ custom web tag now also switches off any grouping separators that may be enabled in the Advanced pane of the Language & Region System preferences. If you have a custom web template file that is designed for machine processing, you should add this tag at the top of the file to turn off localisation of decimal separators and any group separators for that file. The decimal separator will always be '.' with this tag present in the file.'

Cheers,
Stu.
Title: Re: Steel Gauges
Post by: JosBaz on November 08, 2020, 09:41:39 AM
Fixed!

Thanks a lot Stu.  ThU32:-)

Note to self: "read release notes"

Jos

Title: Re: Steel Gauges
Post by: xairbusdriver on November 08, 2020, 03:47:03 PM
HA! Next thing ya kno, he'll be telling us to "READ THE MANUAL!!!" [rolleyes2] lol(1) [cheer]
Title: Re: Steel Gauges
Post by: SteveJoy on December 18, 2020, 10:41:39 PM
I had / have the same problem - I can workaround it by changing the System Preferences, but ideally I would like to fix it using the DOTSEPARATORS$ tag.
I just know I am being dense - its probably very obvious - but in which file do I need to do this - and what should the values be ?

I looked at various files - most obvious being the realtimegaugesWC.txt template file - but I don't see anything similar that I can work out what to enter.

What do I need to type - and in which file please ?

Searched documentation but can't find it (in all the places I looked...)

Really would appreciate your help !

Thanks
Steve
Title: Re: Steel Gauges
Post by: xairbusdriver on December 18, 2020, 11:21:05 PM
Quote
What do I need to type - and in which file please ?
System Preferences->Language & Region->Advanced settings" You kay have hidden that pref but you can see it in the Menu Bar for System Prefs. You can also get there through the Date & Time prefs.
Hope this helps. :)
Title: Re: Steel Gauges
Post by: JosBaz on December 19, 2020, 09:43:31 AM
Thanks xairbus, but I think the question was; how to fix it using the DOTSEPARATORS$ tag?

Like Steve I wasn't able to get that working so ended up in changing the System Preferences.

Jos
Title: Re: Steel Gauges
Post by: mcrossley on December 19, 2020, 11:21:54 AM
Question to the masses: Should I update the SS Gauges template file for WeatherCat to include the DOTSEPARATORS$ tag? It means it will then only work for ver 3.1 onwards, but new uesers will only be using that release anyway?

So the start of the file would become...

Code: [Select]
DOTSEPARATORS${"date":"de$",
"timeUTC":"DUTC$",
"SensorContactLost":"COMMSFAILFLAG$",
...

@WDev/Stu - is the tag "DOTSEPARATORS$" just removed? Does it need to be on a separate line?
Title: Re: Steel Gauges
Post by: xairbusdriver on December 19, 2020, 02:56:40 PM
Sorry, Jos. I don't use SS Gauges. Nor did I know about "Languages & Regions..." since I keep it hidden in my System Prefs. But I did learn a few things about it and got to exercise a new screen capture tool, SnagIt (https://www.bing.com/aclick?ld=e8FuKLBIr1-VkfJDRiQcgbbTVUCUwxkiiYwP7f4my9MxIsVu-0k4TRTnzIsclW0bDa4ex-Nt3iCQbHm9106r1Zcm45zFwJ0z0-mZlBj-_mxFwwFGycntbIHEx62UVlIKsR9aFStEMNUXgKKwnCco3mGv84WGD0hgUWhtab2TxIKyVkkR0Mb9VcuW1SS6Y4v7CMZimtiw&u=aHR0cHMlM2ElMmYlMmZ3d3cudGVjaHNtaXRoLmNvbSUyZnN0b3JlJTJmc25hZ2l0JTNmbXNjbGtpZCUzZGMzMzZiMDJkOWRkZjFmODM3ZTJiZWZmMzg5YjQ2YzdlJTI2dXRtX3NvdXJjZSUzZGJpbmclMjZ1dG1fbWVkaXVtJTNkY3BjJTI2dXRtX2NhbXBhaWduJTNkQmluZyUyNTIwLSUyNTIwU2VhcmNoJTI1MjAtJTI1MjBCcmFuZCUyNTIwLSUyNTIwU25hZ2l0JTI1MjAtJTI1MjBCcmFuZCUyNTIwLSUyNTIwTmV3JTI1MjAtJTI1MjBOQSUyNTIwLSUyNTIwRU4lMjUyMC0lMjUyMERlc2t0b3AlMjUyMC0lMjUyMDclMjZ1dG1fdGVybSUzZHNuYWdpdCUyNTIwd2luZG93cyUyNnV0bV9jb250ZW50JTNkc25hZ2l0JTI1MjB3aW5kb3dz&rlid=c336b02d9ddf1f837e2beff389b46c7e).
Title: Re: Steel Gauges
Post by: SteveJoy on December 21, 2020, 02:32:39 PM
Thanks for your help guys... as Jos said I was trying to leave the OS settings alone and handle the issue with the DOTSEPARATORS$ tag.

The snippet of code that Mark put up : "DOTSEPARATORS${"date":"de$"," was enough of a clue ! 

I made my first line of the realtimegaugesWC.txt template file to match that code, and all seems good.
I reset the OS to use the , separator but the text file now seems to be processed correctly, without the embedded commas in the pressure values - so pressure now displays correctly on my webpage

https://www.steve-joy.com/weather.html
Title: Re: Steel Gauges
Post by: Blicj11 on December 22, 2020, 10:19:49 PM
Glad you figured it out. I have added your gauges to the sample section on the SteelSeries Wiki article.

https://wiki.trixology.com/index.php?title=Steel_Series_Gauges#Examples_of_SteelSeries_Gauges_in_action
Title: Re: Steel Gauges
Post by: Blicj11 on December 22, 2020, 10:21:27 PM
Question to the masses: Should I update the SS Gauges template file for WeatherCat to include the DOTSEPARATORS$ tag? It means it will then only work for ver 3.1 onwards, but new uesers will only be using that release anyway?

So the start of the file would become...

Code: [Select]
DOTSEPARATORS${"date":"de$",
"timeUTC":"DUTC$",
"SensorContactLost":"COMMSFAILFLAG$",
...

@WDev/Stu - is the tag "DOTSEPARATORS$" just removed? Does it need to be on a separate line?

Mark, I don't know enough about how that works to answer your question. We'll probably need to wait for Stu unless Reinhard has this thing figured out.
Title: Re: Steel Gauges
Post by: WCDev on December 23, 2020, 11:55:11 AM
Question to the masses: Should I update the SS Gauges template file for WeatherCat to include the DOTSEPARATORS$ tag? It means it will then only work for ver 3.1 onwards, but new uesers will only be using that release anyway?

So the start of the file would become...

Code: [Select]
DOTSEPARATORS${"date":"de$",
"timeUTC":"DUTC$",
"SensorContactLost":"COMMSFAILFLAG$",
...


@WDev/Stu - is the tag "DOTSEPARATORS$" just removed? Does it need to be on a separate line?

Yep, just add it as the first line in the file. DOTSEPARATORS$ is understood by earlier versions, so it should be fine.

Cheers,
Stu.