Weather-Watch.com

Weather and the Internet => Creating Weather Web Sites => Custom Templates and Scripts => Topic started by: jacg on February 06, 2012, 12:40:51 PM

Title: Steelseries Gauges for WD
Post by: jacg on February 06, 2012, 12:40:51 PM
When surfing the web i stumbled upon the website of Gerrit Grunwald. http://harmoniccode.blogspot.com/2010/08/java-swing-component-library.html (http://harmoniccode.blogspot.com/2010/08/java-swing-component-library.html).

I really liked those gauges and after looking for more information i found that Mark Crossley http://weather.wilmslowastro.com/ (http://weather.wilmslowastro.com/) implemented those gauges for Cumulus. So i downloaded the package, and saw that he used a realtimegauge.txt file. I changed the tags into WD tags (well most of them, asked Brian to create two new ones). And luckily Brian implemented an customclientraw.txt in WD, so this can be used to create the datafeed.

The gauges on my website: http://www.hetweerinruinen.nl (http://www.hetweerinruinen.nl)

And the manual and downloads here: http://www.hetweerinruinen.nl/steelseries-gaugs-for-wd (http://www.hetweerinruinen.nl/steelseries-gaugs-for-wd)

Some tags can be wrong, it was very hard finding the correct tags out of the enormous tags list.

Update:

Mark Crossley, the developer of the script picked up this thread and made some updates for WD.
The latest version can be found here: Steelseries updates (http://www.weather-watch.com/smf/index.php/topic,54945.0.html)


Jacco
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 06, 2012, 02:26:39 PM
Very nice Jacco, thanks for posting them.
I may have a play later today and see what I can come up with.  :thumbright:
Title: CROSS-PLATFORM SteelSeries Gauges for WD
Post by: dan_public on February 06, 2012, 04:30:07 PM
Jacco,

Many thanks for excellent work! 

For folks who haven't caught the significance of the SteelSeries Gauges, these are cross-platform, real time gauges that work on any browser platform (AFAIK).  Jacco's initial efforts are great, but there is much more that can be added in the future.   For example, on Mark's SteelSeries Gauge page: http://weather.wilmslowastro.com/gauges5/gauges.htm, when you mouse-over a gauge (or click on it from an iPhone/iPad), a historical graph window pops up.   In other words, high-density information in minimal space.

While WDL and Cumulus Realtime webpage have a great look, they aren't available on iPhones, iPads, and other platforms that support Adobe Flash or Silverlight.  Access one of these webpages from your iPad, and you get a terse message that you need to download the latest version of Flash or Silverlight.   I.e. the pages are not available for "i" users. Since the iPhone/iPad platforms are growing faster than PC and Mac platforms, and are becoming the platform of choice for viewing content, this is a huge limitation.   (So huge that I wrote off WD as a weather software platform until some folks convinced me otherwise.)

Until I saw the SteelSeries Gauges and Jacco's post, the only thing available for iPhone/iPad users was more traditional approaches, including separate sets of pages specifically for iPhone/iPad platform.   That means two code bases to maintain and designing a website that would handle both.   Using the SteelSeries Gauges, you can have ONE code base and a simpler website.

I'm just starting with my own website and appreciate all of the help that you folks have offered.   OTOH, I've been a professional programmer for 20 years.   IMO, this is one of the most significant advances in weather website development.   

When my weather website is up, the first enhancement implemented will be the SteelSeries Gauges.   And I hope to add to SteelSeries for WD knowledge and code bases.

Thanks and regards,

Dan.
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 06, 2012, 04:35:39 PM
How did you get the customclientraw.txt file to be produced without any units?
Most of them on my own file have C or mm and that's confusing the script.  #-o
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 06, 2012, 04:52:40 PM
Dan,

The graphs, thats the next step, but i need something that creates great graphs to show in there.
So to be continued..

Jacco
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 06, 2012, 05:02:48 PM
How did you get the customclientraw.txt file to be produced without any units?
Most of them on my own file have C or mm and that's confusing the script.  #-o

Do you have in the webfiles/web page setup, custom web page setup, the include units ticked?

Jacco
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 06, 2012, 05:10:50 PM
That may be the problem, just unticked it and will see what happens.
I'll also need to make sure it doesn't effect other files I upload.  :wink:
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 06, 2012, 05:16:26 PM
That did the trick.
Now the gauges are working it's time to get them onto a proper page and start having a play.  :D
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 06, 2012, 06:38:11 PM
HI
I like them very much
and was hoping someone would make them available for WD

I could add option to WD to create with a tick the needed file with the needed data?
but using the custom client raw is not difficult,either , to setup, your instructions are great
and using the custom client raw means you have control more,...eg to add more etc

this needs to be made a sticky :)


ps , is it fact or just opinion that iphone/ipad sales are and are going to outstrip Andriod equivalent?
as I have android phone/pad and love them :)
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 06, 2012, 07:05:55 PM
Jacco,

Further to our conversations in the Cumulus forum I would like to thank you very much for posting here. As I thought, there is a lot of interest from WD users, myself included.

Best regards,

Simon
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 06, 2012, 08:03:41 PM
Having a little trouble with the conversions to US units. Most gauges converted with the changes made in gauges.js however the barometer gauge won't change. Also the wind gauge reads "kph" even though it was switched to mph. Any suggestions?

Test Page.... http://stillweather.com/gauges-ssT.htm

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 06, 2012, 08:30:05 PM
Having a little trouble with the conversions to US units. Most gauges converted with the changes made in gauges.js however the barometer gauge won't change. Also the wind gauge reads "kph" even though it was switched to mph. Any suggestions?

Test Page.... http://stillweather.com/gauges-ssT.htm

Thanks.

Check the unit tags in the clientrawlocal.txt. They are hardcoded. And the script reads the units from there.

the part: "tempunit":"C","windunit":"kph","pressunit":"hPa","rainunit":"mm"

Jacco
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 06, 2012, 08:48:51 PM
Quote
Check the unit tags in the clientrawlocal.txt. They are hardcoded. And the script reads the units from there.

the part: "tempunit":"C","windunit":"kph","pressunit":"hPa","rainunit":"mm"

Perfect, thanks that did the trick!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 06, 2012, 10:24:03 PM
some strange comments made:

http://sandaysoft.com/forum/viewtopic.php?f=14&t=5478&start=590
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 06, 2012, 11:20:59 PM
Just wanted to thank you again for you help Jacco - this is amazing!

Here is my gauges page thus far: -

http://www.spireweather.co.uk/SteelSeries/gauges.htm

The only thing that doesn't work is inside humidity...

Simon
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 06, 2012, 11:41:19 PM
Indoor humidity uses the %hum% tag in the download, it should be using %indoorhum%.
Also, if you have a VP2 then you can use %vpforecasttext% for the forecast, the download has just "Settled Fine" as a standard.  :wink:
Title: Re: Steelseries Gauges for WD
Post by: dan_public on February 07, 2012, 02:36:36 AM
..
ps , is it fact or just opinion that iphone/ipad sales are and are going to outstrip Andriod equivalent?
as I have android phone/pad and love them :)
Brian,

Hi.  Since the iPhone4s has come out, iPhone and Android sales have been pretty close, with Android taking the lead during the middle of the 2011.  In the last few months of 2011, Android sales have dropped while iPhone 4S sales have risen as a percent of total sales:  http://gigaom.com/2012/01/09/iphone-breathing-down-the-neck-of-android-in-u-s/ .   That said, what is more important to weather website owners (IMO) is the web traffic, especially tablet traffic: http://www.padgadget.com/2012/02/01/android-tablet-web-traffic-still-no-match-for-ipad/ .

Another factor to consider is that Apple will be rolling out the iPad 3 and iPhone 5 in roughly March and mid year, respectively.   That will bring in another influx of new users and more browsing by current users.   

But it's not important which platform we use personally.  I like my iPhone (and iPad); it's WAY better than my Win Mobile 5/6 (which was junk).    You and several of my friends like Androids.   No worries.  They are all good devices.

The key is choice.  I don't want to be forced to choose my mobile devices based on what websites they can use.   IMO, our websites should be fully available on ANY platform.  Until now, the tablet which accounts for almost 55% of web traffic (iPad) could not see realtime weather.   These SteelSeries Gauges and their offspring should change that.    I want my website to be one of the first.

Regards,

Dan.



Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 07, 2012, 03:14:37 AM
First stab.....TEST PAGE ONLY, may change. :D


http://stillweather.com/index2.php
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 07, 2012, 03:18:56 AM
they look great!
and they integrate very well into the web page
well done :)
Title: Re: Steelseries Gauges for WD
Post by: dan_public on February 07, 2012, 03:34:54 AM
First stab.....TEST PAGE ONLY, may change. :D


http://stillweather.com/index2.php
Very nice! Especially the integration.  This is the nicest integration of SteeleSeries graphs that I've seen.  :thumbright: :thumbright:

Dan.
Title: Re: Steelseries Gauges for WD
Post by: blainec on February 07, 2012, 05:14:52 AM
My first try with it, a few gauges aren't working.

http://calgary.westerncawx.net/gauges/gauges-ssT.htm (http://calgary.westerncawx.net/gauges/gauges-ssT.htm)
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 07, 2012, 07:17:56 AM
First stab.....TEST PAGE ONLY, may change. :D


http://stillweather.com/index2.php

Nice work!

How have you managed to get the graphs to work on tapping the gauges?
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 07, 2012, 08:26:53 AM
There is no prob getting the graphs working, depends on what you want to show.

Here on my testpage the 1st gauge graph is working:

http://www.hetweerinruinen.nl/flash/gauge3/gauges-ssT-nl.htm (http://www.hetweerinruinen.nl/flash/gauge3/gauges-ssT-nl.htm)

i used wxgraphs(jpgraph) to create the graph, in gauges.js set the var imgPathURL to your wxgraphs dir.
And in stead of ddimgtooltip.min.js use ddimgtooltip.js. Don't forget to set this in your page also!
Edit ddimgtooltip.js, on line 24 etc you can change the temp.png in for example temp_24hr.php.

And then you have your graph made live on the fly.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 07, 2012, 09:45:11 AM
A couple more questions...

My gauges only seem to update once a minute but I understand the clientraw data is uploaded every 3 seconds. How do I get a truly "live" experience?

Also, this will be child's play to many of you in here so please bear with me... What html code would I use to insert one live wind gauge into the sidebar of my website? So that clicking this takes me to my main gauges page?

Thanks in advance,

Simon
www.spireweather.co.uk/SteelSeries/gauges.htm
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 07, 2012, 01:51:08 PM
Quote
My gauges only seem to update once a minute
This can be changed in the file gauges.js
Title: Re: Steelseries Gauges for WD
Post by: DougW on February 07, 2012, 03:59:01 PM
Playing around with this and works in Fire Fox but will not work in I.E. Anyone else having this problem?
Steel Guages (http://www.ardmoreweatherlive.com/gauges-ssT.htm)

Thanks, Doug
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 07, 2012, 04:08:56 PM
Which IE, I think that being HTML5 then it has to be IE 9 or above, maybe IE 8, I'm not sure.  :wink:
Title: Re: Steelseries Gauges for WD
Post by: DougW on February 07, 2012, 04:12:20 PM
Which IE, I think that being HTML5 then it has to be IE 9 or above, maybe IE 8, I'm not sure.  :wink:
I'm running I.E. 8. Does this mean that this script will only run with I.E. 9? Or can it be modified to run with older versions?

Thanks, Doug
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 07, 2012, 04:15:44 PM
Maybe that it's IE9 and up then.
I updated to IE10 last week and it works OK for me on that so maybe try updating. You should get it through standard Windows Update.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 07, 2012, 04:26:32 PM
This can be changed in the file gauges.js

Thanks weatherbee, maybe I'm missing something but I can't see that setting in there. Can you help?

Thanks,

Simon
Title: Re: Steelseries Gauges for WD
Post by: DougW on February 07, 2012, 04:32:14 PM
Quote
Thanks weatherbee, maybe I'm missing something but I can't see that setting in there. Can you help?
Line 16 for me in guages.js
Code: [Select]
var g_count                 = 5;   //download data counter (secs, default 60)
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 07, 2012, 06:38:34 PM
Thanks Doug,

Can't think how I missed that!

Simon
Title: Re: Steelseries Gauges for WD
Post by: CNYWeather on February 07, 2012, 09:36:20 PM
Would there be too much editing to make the gauges work with the existing clientraw.txt
I'm currently uploading?
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 07, 2012, 09:40:50 PM
I've been working on a page that combines the ajax page and the dials.  Not perfected yet but what do you think?
http://www.shermanctweather.com/indextest.php
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 07, 2012, 10:08:39 PM
Would there be too much editing to make the gauges work with the existing clientraw.txt
I'm currently uploading?

Impossible, most of them are tags who are not in the clientraw.

BTW guys these gauges are html5 only, so make a redirect for older browsers (IE8) to your old page.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: CNYWeather on February 07, 2012, 10:47:33 PM
Ah ok. So I'm confused then.

Code: [Select]
{"ver":"5","date":"<#date format=hh:nn>","temp":"<#temp>","tempTL":"<#tempTL>".......
This is the realtimegaugesT.txt file that came with the download. Which do I change in this file and then save as a
2nd file to upload in realtime?

Sorry, I just need a push in the right direction.  :oops:
Title: Re: Steelseries Gauges for WD
Post by: Budgie on February 08, 2012, 12:45:18 AM
Go back on to Jacco's website and download the file called "customclientrawlocal.txt" at the bottom of his download page.  :wink:
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 08, 2012, 12:50:45 AM
Quote
Sorry, I just need a push in the right direction.

Tony,

Go here http://www.hetweerinruinen.nl/steelseries-gaugs-for-wd and download the customclientrawlocal.txt. Put in in your web folders and then go to the realtime setup page and set it up to update there.

wetherbee...you are reading my mind/1 http://stillweather.com/index2.php

Jacco....thanks for the tip about html5 that's a nice solution!

Jack
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 08, 2012, 01:44:26 AM
Jack nice job.  Yours is much better balanced than mine.
How did you get the graphs to work?
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 08, 2012, 02:34:06 AM
Quote
How did you get the graphs to work?

Thanks, and they really are not yet, look at the data, it's wrong. Working on that though! Jacco posted something about it earlier, going to look at that now.

Jack
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 08, 2012, 07:24:07 AM
Jack,

Those pages you've created are beautiful! When you've figured out how to implement the graphs properly, would you be kind enough to write a tutorial here, for web novices like me?

Thanks,

Simon
http://www.spireweather.co.uk/SteelSeries/gauges.htm
Title: Re: Steelseries Gauges for WD
Post by: CNYWeather on February 08, 2012, 01:18:30 PM
Thanks Guys. I'm getting there. http://cnyweather.com/gauges-ssT.htm

Barometer is updating in inches but the gauge shows in hPa

Title: Re: Steelseries Gauges for WD
Post by: jacg on February 08, 2012, 01:40:49 PM
Thanks Guys. I'm getting there. http://cnyweather.com/gauges-ssT.htm

Barometer is updating in inches but the gauge shows in hPa

In the clientrawlocal.txt change hPa to in, the units are hardcoded ;)

Jacco
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 08, 2012, 01:55:50 PM
Starting to get the graphs working with jpgraphs and as Jacco stated using wxgraphs. A good tutoral for wxgraphs can be found here http://www.weather-watch.com/smf/index.php/topic,27489.0.html.

Jack
Title: Re: Steelseries Gauges for WD
Post by: weatherc on February 08, 2012, 06:05:08 PM
My gauges are a heavenly modded version of theese same steel gauges :D

Biggest issue with theese are, what have been pointed here too, that they will not work in IE's below 9 (FF/Chrome are OK).
There are no way around that (tryed to found while i did my own ones without luck).
Yes, html5 are cool, but, so long a pretty big precent of the visitors use old IE's (50% of all IE-users on my site use IE < 9), thanks to that XP-users are stuck on IE8, will it be a "problem", have system what works also in IE8 or create 2 different pages shown depending on browser. Sigh...

After much playing i went to a version where i used my old gauges as base wich works also in older IE's and copyed only needles etc codes from theese new gauges. No rocketsience inside, just plain canvas-code so its easy to copy once figure out how it works. As backgrounds i used screenshots of the generated gauges without needles/numbers. As result i got new gauges what works also in older IE's  :D
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 08, 2012, 06:40:50 PM
Depends on what you find an big issue Henkka.

If you have for example an ipad, and you go to youtube, you are also directed to a page optimized for ipad.

At the moment is is impossible to be compatible with all users, so then you have to make a choice.
Keep your website "old-fashioned" to satisfy all your users, or make a website with the latest technology,
and create a fallback for the ie8 xp users. Well then for me it is a very easy choice.

There will be xp users for ever, xp is almost 11 years old and end of life. Remember those days where in the
footer of a website it said: This page is optimized for Internet Explorer 7!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 08, 2012, 06:46:15 PM
W7 is so much better than XP in my humble opinion anyway :)
(and it works just fine on an older pc that was running XP (just done that here OK))
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 08, 2012, 07:28:38 PM
Jacco,

Have you experienced any issues with the download of customclientraw stopping? I seem to have the issue even with bumping the default times up in gauges.js. I notice it on both the default gauges page and my website. There appears to be no issues with customclientraw being uploaded and or stopping however a qustion for Brian; What is the optimal setting for the second realtime FTP times so that there are no conflicts yet it load quickly?

Thanks

Jack
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 08, 2012, 07:31:10 PM
you should not need to be needint to use the 2nd real time though?
Title: Re: Steelseries Gauges for WD
Post by: weatherc on February 08, 2012, 08:42:54 PM
Quote
Depends on what you find an big issue Henkka.
Yes, but i look at the things in little bigger view than just myself (I use W7), I see in "vistors of the site"-view. Actually about 45% are IE-users of wich 50% use older versions than IE9. Thats quite a part of all visitors. And this in a country where IE<9 user-rate are low, in middle of Europe are the rate far bigger.

Its also a managing thing, if you want to do doublettes of everything instead of creating a page what works also in IE8 (i don't care about IE<8 ), and then do double work, its your choise. I have many times allready said IE should be forbidden by law, its a pain in **** for coders with my own scripts, but have tryed to have them as IE8-compatible as possbile alltought as so many of visitors still use it.

Personally i should use much more HTML5 and all its cool stuffs if just more browsers should support it.
Quote
Keep your website "old-fashioned" to satisfy all your users
Can you call my site old-fashioned?? I should say no, and it still (almost) IE8-compatible. :)
Its more a question how you as coder tackle the IE8-probleme than nothing else.
At the end, those gauges are fully possible to get working also with IE8 and lower if wanted, its just question to be creative and learn the basics of <canvas>. And before you ask, Google is your friend in that case, so i learned it too :D
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 08, 2012, 10:39:31 PM
I've created a homepage with the new dials.  If an IE browser less than 9 is used it will redirect to my original homepage.  According to my stats that will be 21%. 
Title: Re: Steelseries Gauges for WD
Post by: CNYWeather on February 08, 2012, 11:05:54 PM
Who will be the wiz and make a Solar Guage for those who dont have UV?  :)
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 08, 2012, 11:11:32 PM
Henkka,

I don't want an discussion because thats not worth for me.

At first i am not the creator of the script. I just found a way to make it work in WD, thats all.
And for me it is no issue because i just redirect the ie8 users to my old page.
With "old-fashioned" i mean that you dont allow the users of modern browsers to take full advantage of their browsers.

And at last, in your first post you said: There are no way around that (tryed to found while i did my own ones without luck).
And in your second one: At the end, those gauges are fully possible to get working also with IE8 and lower if wanted.


So help us make those gauges work in every browser! ahhh you meant your own gauges, sorry english is not my native language,
thanks Jim for letting me realize that. :D

Jacco

Title: Re: Steelseries Gauges for WD
Post by: jacg on February 08, 2012, 11:21:08 PM
Who will be the wiz and make a Solar Guage for those who dont have UV?  :)

I made the gauge Tony, pfff but how to explain it to you.. hmm you have to edit gauges.js on several places.
What i did, took the temp gauge as an example.. see where that code appears in the script.

Then copied the code and replace by solar, in customclientraw there are already the solartags   :D

Jacco
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on February 09, 2012, 12:03:38 AM
So help us make those gauges work in every browser!

Henkka explained what he did and he has them available on his site at http://www.nordicweather.net/phpscripts.php?en (http://www.nordicweather.net/phpscripts.php?en) if you'd like to look them over.

- Jim
Title: Re: Steelseries Gauges for WD
Post by: blainec on February 09, 2012, 04:58:14 AM
Some of my gauges are not working and the digital displays are ready "MAM". What does this mean?

http://calgary.westerncawx.net/gauges-ssT.htm (http://calgary.westerncawx.net/gauges-ssT.htm)
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 09, 2012, 06:31:11 AM
Some of my gauges are not working and the digital displays are ready "MAM". What does this mean?

http://calgary.westerncawx.net/gauges/gauges-ssT.htm (http://calgary.westerncawx.net/gauges/gauges-ssT.htm)

You have the units checked for your customclientraw.txt.
If you have a problem with units in your customclientraw.txt, in WD in the webfiles/web page setup, custom web page setup, untick the include units.

Jacco

Title: Re: Steelseries Gauges for WD
Post by: blainec on February 09, 2012, 03:14:36 PM
Thanks, that worked. 

Title: Re: Steelseries Gauges for WD
Post by: blainec on February 09, 2012, 04:51:05 PM
I made the gauge Tony, pfff but how to explain it to you.. hmm you have to edit gauges.js on several places.
What i did, took the temp gauge as an example.. see where that code appears in the script.

Then copied the code and replace by solar, in customclientraw there are already the solartags   :D

Jacco

I gave this a try without luck. Is there a place I can see exactly what you did. I feel I  am missing something important
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 10, 2012, 12:26:36 AM
Just an FYI it is very easy to change the colors and styles of the gauge. Go to this site and you can try various combinations!
http://weather.wilmslowastro.com/gaugesB/gauges.htm

Then just change the settings you wish to in gauges.js

Jack
Title: Re: Steelseries Gauges for WD
Post by: blainec on February 10, 2012, 03:57:58 AM
Here is the color combo's that I think are cool.
http://calgary.westerncawx.net/gauges-ssT.htm (http://calgary.westerncawx.net/gauges-ssT.htm)

Now to figure out how to get them into my ajax page
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 10, 2012, 06:57:17 AM
I notice that the wind speed, rain rate, wind chill & heat index gauges have max or min markers. I'm surprised that the temperature gauge doesn't also have this - is there any way to implement it?

Simon
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 10, 2012, 10:25:30 AM
Simon,

Check for minMeasuredValueVisible, and the max of course  :D

Jacco
                   
Title: Re: Steelseries Gauges for WD
Post by: drobbins on February 10, 2012, 11:42:05 AM
Thanks for the color changing info Jack.
Here is the direction I am heading (top portion) using iframes. Is there a better way?
http://www.cavecountryweather.com/test.php (http://www.cavecountryweather.com/test.php)
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 10, 2012, 04:54:58 PM
Just an FYI it is very easy to change the colors and styles of the gauge. Go to this site and you can try various combinations!
http://weather.wilmslowastro.com/gaugesB/gauges.htm

Then just change the settings you wish to in gauges.js

Jack

Jack,

Check the options in steelseries.js from line 6190, there are even more to choose from.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on February 10, 2012, 04:56:18 PM
Gaaf. Bedankt. Koud Heh in NL.  :D

Thanks.
I have been looking for these for some time now.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 10, 2012, 05:36:20 PM
Jack,

Check the options in steelseries.js from line 6190, there are even more to choose from.

Jacco

Wow, thanks Jacco. Mark also fixed my issue with the updates randomly stopping. He will incorporate it into a future update but if anybody has the issue I do have the fix.

Jack
Title: Re: Steelseries Gauges for WD
Post by: CNYWeather on February 10, 2012, 06:36:02 PM
Like your front page with the gauges Jack!
Title: Re: Steelseries Gauges for WD
Post by: tstorm on February 10, 2012, 10:42:43 PM
I haven't been able to figure out the scaling of the barometer for inches.  The scale goes from 0 to 30.  I have played around with the gauges.js with now luck.  Any help would be appreciated.

http://www.harpersferry-weather.com/Steelseries/gauges-altT.htm

Thanks,

John
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 10, 2012, 11:36:34 PM
Wow, thanks Jacco. Mark also fixed my issue with the updates randomly stopping. He will incorporate it into a future update but if anybody has the issue I do have the fix.

Jack

Not looking forward to having to start over with the .js files after an update!
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 12:03:56 AM
I haven't been able to figure out the scaling of the barometer for inches.  The scale goes from 0 to 30.  I have played around with the gauges.js with now luck.  Any help would be appreciated.

http://www.harpersferry-weather.com/Steelseries/gauges-altT.htm

Thanks,

John

John,

Try these settings;
Code: [Select]
    // define pressure/barometer gauge start values
    g_baro.sections = [];
    g_baro.areas = [];
    g_baro.minValue = 29.2;
    g_baro.maxValue = 30.4;
    g_baro.value = 29.2;
    g_baro.title = LANG.baro_title;
    g_baro.lcdDecimals = 2;
    g_baro.scaleDecimals = 1;
    g_baro.labelNumberFormat = g_labelFormat;

Quote
Not looking forward to having to start over with the .js files after an update!

It's only a couple of lines at this point! :D

Jack
Title: Re: Steelseries Gauges for WD
Post by: tstorm on February 11, 2012, 12:28:27 AM
John,

Try these settings;
Code: [Select]
    // define pressure/barometer gauge start values
    g_baro.sections = [];
    g_baro.areas = [];
    g_baro.minValue = 29.2;
    g_baro.maxValue = 30.4;
    g_baro.value = 29.2;
    g_baro.title = LANG.baro_title;
    g_baro.lcdDecimals = 2;
    g_baro.scaleDecimals = 1;
    g_baro.labelNumberFormat = g_labelFormat;

It's only a couple of lines at this point! :D

Jack

I made the edits and there was no change to  the scale. 

John
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 12:48:24 AM
John,

How do you have this part set up?

Code: [Select]
    cumulus.tempunit = 'F';
    cumulus.rainunit = 'in';
    cumulus.pressunit = 'in';
    cumulus.windunit = 'mph';

I originally had inHg and that messed up the pressure unit.

Jack
Title: Re: Steelseries Gauges for WD
Post by: tstorm on February 11, 2012, 12:53:11 AM
John,

How do you have this part set up?

Code: [Select]
    cumulus.tempunit = 'F';
    cumulus.rainunit = 'in';
    cumulus.pressunit = 'in';
    cumulus.windunit = 'mph';

I originally had inHg and that messed up the pressure unit.

Jack

I have it setup the same as you do.

John
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 12:57:02 AM
John,

What is your gauge site? Maybe it is a cache issue?
Title: Re: Steelseries Gauges for WD
Post by: tstorm on February 11, 2012, 01:04:04 AM
Jack,

Gauges are located at:
http://www.harpersferry-weather.com/Steelseries/gauges-altT.htm
http://www.harpersferry-weather.com/Steelseries/gauges-ssT.htm

I cleared the cache but no joy.

John
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 01:11:15 AM
OK, one last thing, go to your customclientrawlocal and check this "pressunit":"in", you want it to say "in".

Jack
Title: Re: Steelseries Gauges for WD
Post by: tstorm on February 11, 2012, 01:16:39 AM
That's what I have.  I don't get it why the scaling is not showing correctly after specifying the min and max values in the gauges.js file.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 01:25:58 AM
That's what I have.  I don't get it why the scaling is not showing correctly after specifying the min and max values in the gauges.js file.

Now I'm stumped too! Maybe Jacco will chime in soon.
Title: Re: Steelseries Gauges for WD
Post by: blainec on February 11, 2012, 05:13:52 AM
I have been trying to rescale my pressure gauge without luck as well
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 11, 2012, 07:55:18 AM
Can anyone tell me what the red shaded segments at the upper & lower limits of the hPa pressure scale are for?

See http://www.spireweather.co.uk/?page_id=2201

Thanks,

Simon
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 11, 2012, 12:38:37 PM
Wow, thanks Jacco. Mark also fixed my issue with the updates randomly stopping. He will incorporate it into a future update but if anybody has the issue I do have the fix.

Jack

Jack,

Can you sent me the fix? Or tell me what the fix is?
I've heared the same problem from others.  On my page the data on the top is refreshing faster as those from the gauges.

And i can add it to the download on my page.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 01:37:27 PM
Here it is Jacco,

 It happens when the customclientraw.txt file is zero length - presumably it is being updated on the server. To fix this change gauges.js line 676 from:
Code: [Select]
            cumulus = JSON.parse(objXML.responseText);
to

            try {
                cumulus = JSON.parse(objXML.responseText);
            } catch(e) {}


BTW, the word "try" is actually part of the code.
Jack
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 11, 2012, 02:28:01 PM
John,

About your baro, well must say the script does work correct.
The scale is made of the lowest (pressL in ccr) and highest baro ever (pressH in ccr) from your station.

Here is a part of your customclientraw:

"press":"29.792","pressTL":"29.777","pressTH":"29.917","pressL":"0.000","pressH":"30.705","

So according to your ccr your scale goes from 0.000 - 30.705

Options to solve: correct the data in WD, or put your lowest data in pressL.

@jack
Thanks, Yes of course, how faster the upload and update, the more chance you have that the file is just written to the server and the script can't open it.
Probably Cumulus isn't that fast  :lol:




Jacco

Title: Re: Steelseries Gauges for WD
Post by: tstorm on February 11, 2012, 02:52:10 PM
Thanks Jacco  :D.  I fixed the pressure in WD, so the scaling is much better.  Now to try and fix the scaling on the temperature.  I have changed the minMeasuredValueVisible, and the max of one but no change is made to the scale.
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 11, 2012, 03:34:32 PM
Thanks Jacco  :D.  I fixed the pressure in WD, so the scaling is much better.  Now to try and fix the scaling on the temperature.  I have changed the minMeasuredValueVisible, and the max of one but no change is made to the scale.

John,

The minMeasuredValueVisible is not for the scale, what i see in the script:

function doFirst() {
    if (cumulus.tempunit.indexOf('F') !== -1) {
        g_temp.minValue = 30;
        g_temp.maxValue = 100;
        g_temp.value = 30;
        g_temp.sections = createTempSections(30, false);
        drawTemp();

I guess that is your starting scale, and depending on your values, the scale changes. Maybe you changed to much in the function doTemp?

Jacco
Title: Re: Steelseries Gauges for WD
Post by: DougW on February 11, 2012, 10:02:24 PM

Code: [Select]
            cumulus = JSON.parse(objXML.responseText);
to

            try {
                cumulus = JSON.parse(objXML.responseText);
            } catch(e) {}


BTW, the word "try" is actually part of the code.
Jack
Changed the above code but no change. Still updating about every30 seconds. So I watched my customclientraw.txt update on my server and see that its only updating about only every 20 seconds. I used the default settings in WD which show a 5 second update. Suggestions anyone?

Doug
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 11, 2012, 10:08:44 PM
Changed the above code but no change. Still updating about every30 seconds. So I watched my customclientraw.txt update on my server and see that its only updating about only every 20 seconds. I used the default settings in WD which show a 5 second update. Suggestions anyone?

Doug

Doug,

That code only fixes a problem, to have the gauges script check your client raw more often check this in gauges.js....
Code: [Select]
var g_count                 = 4;   //download data counter (secs, default 60)
as you can see mine is set to 4 seconds. As for WD mine is every 3 seconds, make sure you don't have a conflicting setting in Internet File Creation maybe?
Title: Re: Steelseries Gauges for WD
Post by: DougW on February 11, 2012, 10:14:19 PM
Doug,

That code only fixes a problem, to have the gauges script check your client raw more often check this in gauges.js....
Code: [Select]
var g_count                 = 4;   //download data counter (secs, default 60)
as you can see mine is set to 4 seconds. As for WD mine is every 3 seconds, make sure you don't have a conflicting setting in Internet File Creation maybe?
Thanks for the reply.
Yes I understand the setting. I have mine set at 10 seconds. I was really searching to an answer as to why my custonclientraw is only updating every 20-30 seconds. Maybe I have something set up wrong in WD?

Edit: The only thing I have set up is below. Nothing in Internet File Creation?

Doug
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 11, 2012, 11:14:05 PM
If your server supports file rename,make sure to use that
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 12, 2012, 12:50:25 AM
Jacco,

I noticed the temp max and min arrows behave differently than the wind max arrow. The max arrow on the temp gauge is for the current browsing session and not the days max. Is there any way to have the arrows show the max/min for the day?

Thanks,

Jack
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 12, 2012, 08:55:23 AM
Can anyone tell me what the red shaded segments at the upper & lower limits of the hPa pressure scale are for?

See http://www.spireweather.co.uk/?page_id=2201


Anyone?

I'd also be interested to know how much data this would use, when left running on my mobile for example?

Simon
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 12, 2012, 11:12:44 AM
Jacco,

I noticed the temp max and min arrows behave differently than the wind max arrow. The max arrow on the temp gauge is for the current browsing session and not the days max. Is there any way to have the arrows show the max/min for the day?

Thanks,

Jack

@Jack,

I don't understand what you mean with for the browsing session. You mean the red and blue arrows on your site in the temp gauge?
Because the pink area shows the low-high area for the day.

Do you want this? http://www.hetweerinruinen.nl/flash/gauge3/gauges-ssT-nl.htm (http://www.hetweerinruinen.nl/flash/gauge3/gauges-ssT-nl.htm)


@Simon

Those are the lowest and highest baro records ever for your site. 982.3 and 1043.8.
So if the pointer is in the red parts, you have a new record  :D

Jacco
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 12, 2012, 01:23:24 PM
Hi Jacco,

Yes, just like your site. For some reason my low/blue arrow does not move.

Jack
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 12, 2012, 01:33:30 PM
On line 320/321

Change to:
minMeasuredValueVisible : true,
maxMeasuredValueVisible : true,

After line 340: add
gauge_temp.setMinMeasuredValue(g_temp.minMeasured);
gauge_temp.setMaxMeasuredValue(g_temp.maxMeasured);

And finally after line 928: add
gauge_temp.setMinMeasuredValue(g_temp.low);
gauge_temp.setMaxMeasuredValue(g_temp.high);

To much options in these gauges  :D

Jacco
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 12, 2012, 01:44:22 PM
Quote
To much options in these gauges 
You mean there are more!? 8O

Perfect, that is exactly what I was looking for!

Thanks,

Jack
Title: Re: Steelseries Gauges for WD
Post by: CNYWeather on February 12, 2012, 06:31:01 PM
It's cobbled together, but I was trying to get the temp to display the feels like temp
underneath the word Temperature instead of F

Couldnt figure that out, but with a little trial and error, I think i've got the Solar Gauge
displaying the Solar Description based on % of possible sun.

It's definitely holding together with duct tape, but I'm learning I guess

Code: [Select]
function doUV() {
    g_uv.value = +cumulus.solar.replace(',', '.');
   
    if (g_uv.value > 10) {
        g_uv.risk = LANG.uv_levels[0];
        g_uv.headLine = LANG.uv_headlines[0];
        g_uv.detail = LANG.uv_details[0];
   } else if (g_uv.value > 30){
        g_uv.risk = LANG.uv_levels[1];
        g_uv.headLine = LANG.uv_headlines[1];
        g_uv.detail = LANG.uv_details[1];
    } else if (g_uv.value > 50){
        g_uv.risk = LANG.uv_levels[2];
        g_uv.headLine = LANG.uv_headlines[2];
        g_uv.detail = LANG.uv_details[2];
    } else if (g_uv.value >75) {
        g_uv.risk = LANG.uv_levels[3];
        g_uv.headLine = LANG.uv_headlines[3];
        g_uv.detail = LANG.uv_details[3];
    } else if (g_uv.value > 90) {
        g_uv.risk = LANG.uv_levels[4];
        g_uv.headLine = LANG.uv_headlines[4];
        g_uv.detail = LANG.uv_details[4];
   } else if (g_uv.value > 90) {
        g_uv.risk = LANG.uv_levels[5];
        g_uv.headLine = LANG.uv_headlines[5];
        g_uv.detail = LANG.uv_details[5];
    } else {
        g_uv.risk = LANG.uv_levels[6];
        g_uv.headLine = LANG.uv_headlines[6];
        g_uv.detail = LANG.uv_details[6];
    }

    gauge_uv.setValueAnimated(g_uv.value );
    gauge_uv.setUnitString(g_uv.risk);

Seems to be stuck on LANG.uv_levels[0]; even though the percentage is 46%

http://cnyweather.com/gauges-ssT.htm
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 12, 2012, 07:30:09 PM
Hey Tony,

You solved that in a very creative way!

I would never have thought at that, i just would have used an extra tag in the ccr for example: solardescription="%Currentsolardescription%", in the script you could have called it with cumulus.solardescription.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: mfd38 on February 12, 2012, 08:24:24 PM
HI
I like them very much
and was hoping someone would make them available for WD

I could add option to WD to create with a tick the needed file with the needed data?
but using the custom client raw is not difficult,either , to setup, your instructions are great
and using the custom client raw means you have control more,...eg to add more etc

this needs to be made a sticky :)


ps , is it fact or just opinion that iphone/ipad sales are and are going to outstrip Andriod equivalent?
as I have android phone/pad and love them :)

Hi Brian, I am unable to get the custom clientraw to work - the update and upload times will not hold, always going back to zero and the file never gets created.

Has anyone had success using the mac version b 95?  Thanks,
Paul
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 12, 2012, 08:38:04 PM
ah
that will be a problem with those spin adjuster max/min values
(problem occured after a compiler update)
I will fix that
but you could also try setting those parameter directly in the wdisplayftpini file
[Connections]
create custom clientraw update rate=
create custom clientraw upload rate=
Title: Re: Steelseries Gauges for WD
Post by: mfd38 on February 12, 2012, 09:15:24 PM
ah
that will be a problem with those spin adjuster max/min values
(problem occured after a compiler update)
I will fix that
but you could also try setting those parameter directly in the wdisplayftpini file
[Connections]
create custom clientraw update rate=
create custom clientraw upload rate=

No luck Brian, I set up the frequency for update and upload times in the wdisplayftp.ini file but it has not changed the Control Panel nor has it created the file. I'll wait for your fix to come through.

Thanks,'
Paul
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 13, 2012, 12:47:37 AM
no,it will not change the settings panel
also you would need to restart WD after changing those settings
Title: Re: Steelseries Gauges for WD
Post by: mfd38 on February 13, 2012, 02:04:42 AM
Sorry, I did not mention that I had restarted WD a couple of times and it did not change anything...thanks
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 14, 2012, 12:17:56 AM
I have the graphs working but they seem to expire.  They work when the page is fresh but stop working after awhile.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 14, 2012, 12:27:55 AM
I have the graphs working but they seem to expire.  They work when the page is fresh but stop working after awhile.

Look back a bit in the posts, I posted a fix for that, it works well. :D

Jack
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 14, 2012, 01:45:50 AM
Jack, if that was the
Quote
  try {
                cumulus = JSON.parse(objXML.responseText);
            } catch(e) {}
I tried that.  I thought that kept the gauges going and that does keep the gauges going.  It's the graphs that seem to expire.
Jack, I tried your site and the same thing happens to your graphs.
Tom
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 14, 2012, 02:22:13 AM
Now I see what you mean, hadn't noticed that!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 14, 2012, 03:10:58 AM
mf3d8:
use this new Mac WD update
http://www.weather-display.com/downloadfiles/WeatherDmacnew.zip
build 96
and then in the application bundle, resources, start up the new clientrawrealtimeftp program (created with a new compiler)
and that will upload your clientraw files and the clientraw custom
tested and works here :)
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 14, 2012, 08:07:21 AM

@Simon

Those are the lowest and highest baro records ever for your site. 982.3 and 1043.8.
So if the pointer is in the red parts, you have a new record  :D

Jacco

Ingenious!  Thanks for the reply.
Title: Re: Steelseries Gauges for WD
Post by: mfd38 on February 14, 2012, 10:52:47 PM
mf3d8:
use this new Mac WD update
http://www.weather-display.com/downloadfiles/WeatherDmacnew.zip
build 96
and then in the application bundle, resources, start up the new clientrawrealtimeftp program (created with a new compiler)
and that will upload your clientraw files and the clientraw custom
tested and works here :)

Hi Brian,
I am running build 96, went into the resources folder and started up the clientrawrealtimeftp program but it quickly locks up and goes unresponsive. The custom clientraw is now works as far as setting the update and upload frequencies but I do not see the file being created.  Am I missing anything else I should be doing?  Thanks,
Paul
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 14, 2012, 11:02:29 PM
For the graphs, if you changed the filenames or used a script to show your graphs, change them in gauges.js as well as in ddimgtooltip.min.js.
That does the trick of not timing out. Otherwise the scripts goes get back at the other value in gauge.js or ddimgtooltip.min.js what causes the expiration!

Jacco
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 14, 2012, 11:54:40 PM
Quote
I am running build 96, went into the resources folder and started up the clientrawrealtimeftp program but it quickly locks up and goes unresponsive. The custom clientraw is now works as far as setting the update and upload frequencies but I do not see the file being created.  Am I missing anything else I should be doing?


do you have the custom clientraw template file in place in the webfiles folder?

as for the clientrawrealtimeftp program locking up, did that occur with the first version I got you to try?
it might be  permissions problem..try setting the permissions on that bundle
Title: Re: Steelseries Gauges for WD
Post by: mfd38 on February 15, 2012, 02:03:40 AM
Quote
do you have the custom clientraw template file in place in the webfiles folder?

as for the clientrawrealtimeftp program locking up, did that occur with the first version I got you to try?
it might be  permissions problem..try setting the permissions on that bundle

It appears to have been the permissions. Once the permissions were set it took off very quickly. I have noticed however that if I hide the clientrawrealtimeftp program or minimize it then it will stall after a period of time, not sure if there is any connection to those actions or if it is a coincidence....
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 15, 2012, 02:22:45 AM
when it stalls, is there is any error messag in the message area?
is it still responsive?
Title: Re: Steelseries Gauges for WD
Post by: mfd38 on February 15, 2012, 02:26:03 AM
Connection closed gracefully......

Not really sure what it means, then if I attempt to Stop then Start the program using the buttons it crashes. Restarting from scratch is ok.

Hope that helps.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 15, 2012, 03:23:05 AM
ah, I did not test that restart button
will check on that
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 15, 2012, 03:44:35 AM
For the graphs, if you changed the filenames or used a script to show your graphs, change them in gauges.js as well as in ddimgtooltip.min.js.
That does the trick of not timing out. Otherwise the scripts goes get back at the other value in gauge.js or ddimgtooltip.min.js what causes the expiration!

Jacco

Thanks Jacco, that seems to have done the trick!

Jack
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 16, 2012, 03:13:26 PM
Hi guys, as quite a few of you seem to be using the SteelSeries gauges I created over here, I thought I'd better drop by and monitor what is going on. Whilst I cannot answer WD specific questions I'll do what I can to answer questions about the scripts and gather feedback for future releases.

Be easy on me for being a Cumulus user  :-"

Edit: Oh, and any views on this? (https://plus.google.com/105784522827877256999/posts/SPk4JPHf5yv)
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 16, 2012, 03:17:34 PM
Welcome Mark,

Just wanted to thank you for your brilliant work, & thanks in advance for any input here.

Simon
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 16, 2012, 06:19:06 PM
Mark,

You did a great job, your script works flawlessly. Most problems that do exist are because of the difference in tags between Cumulus and Weather Display.

And with a few you mean at least 240  :D

btw i read your link, in my opinion just make a basic and the radial series. Most people aren't able to create the gauges, and use the script without modifying.


Jacco
Title: Re: Steelseries Gauges for WD
Post by: dan_public on February 16, 2012, 10:26:45 PM
Hi guys, as quite a few of you seem to be using the SteelSeries gauges I created over here, I thought I'd better drop by and monitor what is going on. Whilst I cannot answer WD specific questions I'll do what I can to answer questions about the scripts and gather feedback for future releases.

Be easy on me for being a Cumulus user  :-"

Edit: Oh, and any views on this? (https://plus.google.com/105784522827877256999/posts/SPk4JPHf5yv)
Mark,

Welcome aboard.   I'm a new user of WD and also have Cumulus installed.  I chose to move ahead with WD because it has a few features that I need.  It was a tough decision because Cumulus is good software also.   That said...

One of Cumulus best features was the SteelSeries gauges.  Seeing this thread was a major positive for me.  Seeing YOU posting on this thread is huge positive! 

IMO, the SteelSeries gauges are a major step forward in real-time, platform-agnostic weather display.   Your gauges work just as well on my iPad and iPhone as they do on my PCs.   After I get my website stabilized (hopefully this weekend), the SteelSeries gauges will be the first enhancement!   :D

I'm looking forward to seeing you post here.

Thanks for the great work!

Dan.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 16, 2012, 11:39:26 PM
Welcome Mark! Both you and Jacco are very helpful! One question; With the ajax scripts we are able to set timeouts so that web page campers would eventually be timed out, say after 5 minutes or whatever the owner sets. Any chance of something like that in the future? I read your link too, very interesting! :D

Jack
Title: Re: Steelseries Gauges for WD
Post by: folignometeo on February 17, 2012, 08:18:41 AM
I installed the script but i have a problem, you can see here: http://www.folignometeo.org/foligno/gauges/gauges-ssT.htm

The script remain in downloading status.

Alex  :roll:
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 09:15:17 AM
Hi alex,

I saw your ccr is one folder above, so did you change in gauges.js the line 11 in var realTimeURL             = "../customclientraw.txt";

And don't forget: in WD in the webfiles/web page setup, custom web page setup, untick the include units!

Jacco
Title: Re: Steelseries Gauges for WD
Post by: folignometeo on February 17, 2012, 11:06:15 AM
I set gauges.js the line 11 in var realTimeURL  = "../customclientraw.txt";

and untick the include units but nothing change...

Alex
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 11:37:37 AM
I set gauges.js the line 11 in var realTimeURL  = "../customclientraw.txt";

and untick the include units but nothing change...

Alex

And in line 23 of gauges.js
var g_showPopupData         = false; //Popup data displayed

Is something wrong with your last rain time and date
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 11:47:22 AM
Welcome Mark! Both you and Jacco are very helpful! One question; With the ajax scripts we are able to set timeouts so that web page campers would eventually be timed out, say after 5 minutes or whatever the owner sets. Any chance of something like that in the future? I read your link too, very interesting! :D
Jack, yes a timeout is something I should consider. I get some campers on my web site (I get a few hits on the gauge page for obvious reasons) and it does stress my ancient laptop and use up ADSL bandwidth - not as much as my son's X-Box though  :violent1:

I could put an over-ride in too so you can pass a parameter and stop the time out if like me you tend to leave the page running. The parameter would be discoverable to anyone who wanted to view the script but it would stop casual campers (oh that sounds a bit odd!).
Title: Re: Steelseries Gauges for WD
Post by: folignometeo on February 17, 2012, 11:51:23 AM
And in line 23 of gauges.js
var g_showPopupData         = false; //Popup data displayed

Is something wrong with your last rain time and date

Jacg, the problem not resolve  :roll: nothing change...

Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 12:58:08 PM
Jacg, the problem not resolve  :roll: nothing change...
The problem is in your customclientraw.txt file, the value:

LastRainTipISO: "11/2/2012-"

The script is expecting an ISO date format such as:

"2012-2-11 14:05"
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 01:03:31 PM
I just wanted to advise:

Set the in the ccrlocal.txt at "LastRainTipISO" to a fixed for testing for example:

"LastRainTipISO":"2012-02-17 14:02 "

For some reason the ime part of your wd tag doesn't work

Jacco
Title: Re: Steelseries Gauges for WD
Post by: folignometeo on February 17, 2012, 01:14:09 PM
If i modify "LastRainTipISO":"2012-02-17 14:02 " the script work fine!!!!

How can resolve the data format??  :?
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 01:24:26 PM
Not sure if it's related but there have been various problems with time displays in recent builds, myself included.

See http://www.weather-watch.com/smf/index.php/topic,54872.0.html

May be completely unrelated but just a thought...
Title: Re: Steelseries Gauges for WD
Post by: folignometeo on February 17, 2012, 01:43:58 PM
Not sure if it's related but there have been various problems with time displays in recent builds, myself included.

See http://www.weather-watch.com/smf/index.php/topic,54872.0.html

May be completely unrelated but just a thought...

I'm using the last build of WD...
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 03:42:35 PM
I'm using the last build of WD...

In your ccrlocal.txt the part of the lastraintipISO must be:

"LastRainTipISO":"%dateoflastrainalways%%timeoflastrainalways%"

The first tag works for you.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: folignometeo on February 17, 2012, 04:06:20 PM
In your ccrlocal.txt the part of the lastraintipISO must be:

"LastRainTipISO":"%dateoflastrainalways%%timeoflastrainalways%"

The first tag works for you.

Jacco

Thanks Jacco! now work fine!  :wink:
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 04:44:47 PM
Can somebody tell me what the pink shaded section around the scale of the wind direction gauge represents? Average direction this month maybe?

And the green shaded section on the wind speed gauge? I guess it's average speed but over what period?

See http://www.spireweather.co.uk/?page_id=2201

Cheers,
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 04:53:45 PM
Can somebody tell me what the pink shaded section around the scale of the wind direction gauge represents? Average direction this month maybe?

And the green shaded section on the wind speed gauge? I guess it's average speed but over what period?
Well on the Cumulus version the green wind sector is the last 10 min average, the red the 10 min gust.
The wind direction: the arc is the variation in wind direction over the last 10 mins (10 min avg wind speed < 6 knots) if it is a sector then the average 10 minute spd was > 6 knots.  The 6 knots limit is a METAR thing.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 05:32:42 PM
On my gauges the red arc runs from 40-140 (NE to SE) but for the past few days we have had a westerly airflow. Am I missing something?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 05:50:49 PM
I guess it depends on if WD supplies that information, and the correct tags have been used in the realtime file. I do not have the answers to either of those.

The relevant entries in the realtime file are:
BearingRangeFrom10: "xxx" & BearingRangeTo10: "xxx"

These are always clockwise values, Cumulus provides both actual values and rounded to nearest 10 degree values - which is what I use, again it's a METAR thing.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 17, 2012, 06:04:41 PM
this has already been discussed though on this thread and another thread (feature request)
and I have added the new custom tags

althouh there is some concern about if I have it being calculated correctly (I will review the code)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 06:09:39 PM
Thanks Brian, though I have skimmed this thread I do not remember all of it. I think it has taken everyone I know who implemented this calculation at least two attempts to get it right - passing through zero makes it a head scratcher! :?
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 06:28:00 PM
Thanks Mark, I don't think it's working on my wind direction gauge. How can I disable the display of the red sector? It's the red shading of the scale from 40-140, NOT any shaded segments.

I'm worried about editing the gauges.js too much, as it could be a nightmare getting everything back after a new release!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 06:34:16 PM
In gauges.js around line 1290 in doDir() look for the if block

    if (g_showWindVariation) {

comment out the whole if-else statement and you should be good. But as Brian says this should be working if you have everything set correctly.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 17, 2012, 06:50:27 PM
it was suggested for the custom tags to be added in this thread
and then a separate thread was started, in the feature requests
and I added those custom tags

I have reviewed the code and found a mistake in a variable name used
see that thread

(i.e use the latest .zip update)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 06:53:03 PM
I notice that the customclientrawlocal.txt file to be found here http://www.hetweerinruinen.nl/steelseries-gaugs-for-wd does not have the correct tags for the wind direction range.

Code: [Select]
..."BearingRangeFrom10":"%avdirlastimediate10%","BearingRangeTo10":"%avdirlastimediate15%"...
should be:
Code: [Select]
..."BearingRangeFrom10":"%mindir10minute%","BearingRangeTo10":"%maxdir10minute%"....
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 06:58:52 PM
Mark, that's the source I'm using - I'll have a look at mine & report back...

EDIT: Those tags were replaced by "040" & "140" for some reason, which explains my problem! I have replaced them with the tags you suggest and all seems to be working normally now. Thanks for your help.
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 07:16:47 PM
Mark,

You were to fast, the tags weren't working yet, so i did not put them in the clientrawlocal.txt.
Well hope they are working now in the last update from WD.

btw : the lastraintipISO tag expects a - seperator between the date, in WD we have a date with a / seperator, so i changed it in gauges.js.
would it be possible to add a var WD = true, so that the date is stripped without changing gauges.js
I mean this line: var dt = str[0].split('/');

Jacco

Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 17, 2012, 08:02:38 PM
If someone ever develops a solar gauge that I could use in place of the rain rate, I'd
sure love to have it. I have absolutely no idea how that would be accomplished, so I
have to rely on the generosity of one of you much more capable programmers. I'm just
barely passable at keeping my web page running on the old Carter Lake scripts...

I see one example of a solar gauge elsewhere in this thread, and that would work great
for what I would like to have, I just don't know how that was done.

Ideally, I'd like a replacement for gauges-ssT.htm, and whatever java scripts are needed,
to put a Solar (W/m2) gauge in place of the rain rate.

Thanks!

-Keith
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 08:31:22 PM
Jacco

This should cover both cases...
Code: [Select]
var dt = str[0].replace(/\//g,'-').split('-');
Mark
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 08:48:33 PM
Mark,

You were to fast, the tags weren't working yet, so i did not put them in the clientrawlocal.txt.
Well hope they are working now in the last update from WD.

btw : the lastraintipISO tag expects a - seperator between the date, in WD we have a date with a / seperator, so i changed it in gauges.js.
would it be possible to add a var WD = true, so that the date is stripped without changing gauges.js
I mean this line: var dt = str[0].split('/');

Jacco

Jacco, any chace you could indicate when you have made amendments to the clientrawlocal.txt and gauges.js files, so we know when they have been updated?

Thanks again for all your help with this.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 08:53:27 PM
I notice that the customclientrawlocal.txt file to be found here http://www.hetweerinruinen.nl/steelseries-gaugs-for-wd does not have the correct tags for the wind direction range.

Code: [Select]
..."BearingRangeFrom10":"%avdirlastimediate10%","BearingRangeTo10":"%avdirlastimediate15%"...
should be:
Code: [Select]
..."BearingRangeFrom10":"%mindir10minute%","BearingRangeTo10":"%maxdir10minute%"....

This sorted it - see my edited post above.

EDIT: Actually I'm not sure it is 100% sorted. The red sector now changes over time as expected, but doesn't seem to be in the right place. Maybe it's due to an error in the tag calculation as Brian mentioned earlier...

Off topic, but as an optometrist I love your avatar!
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 10:10:54 PM
Simon,

The clientrawlocal.txt with the changed tags can be downloaded form my site. I will add changes with the date in the description above.
A good idea, i hope to have a new download ready soon with a gauges.js with solar and additions for the lastraintipISO.

And you need to download the latest zip update from r14 for working wind direction tags.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 17, 2012, 10:14:29 PM
Thanks Jacco, I noticed your updated txt file on your site after I posted... And I already have the latest build 14 with zip update.

Regards,
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 17, 2012, 10:27:04 PM
I notice in "gauges-ssT.htm that a CSS file named "weatherstyle.css" is called. I didn't find
that in the distribution; do I need it and, if so, where would I obtain it?

Thanks.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 17, 2012, 10:29:04 PM
A good idea, i hope to have a new download ready soon with a gauges.js with solar and additions for the lastraintipISO.

Jacco

Thank you!  =D&gt; Looking forward seeing that update.  :D
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 17, 2012, 10:35:27 PM
Keith,

I guess that the css weatherstyle is specially for cumulus. We WD users don't have to use that  :D

Jacco
Title: Re: Steelseries Gauges for WD
Post by: oz7mks on February 17, 2012, 10:40:56 PM
Jacco

Quote
The clientrawlocal.txt with the changed tags can be downloaded form my site.

There is a small typo in your clientrawlocal.txt example: BearingRangeTo10":"%maxdir10minute%% (an extra %) ;o)
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 17, 2012, 10:42:40 PM
Keith,

I guess that the css weatherstyle is specially for cumulus. We WD users don't have to use that  :D

Jacco

OK. I was just wondering if that was why I get some odd characters in the upper left
corner of my gauges page. See attached.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 17, 2012, 11:07:41 PM
Off topic, but as an optometrist I love your avatar!
Thanks, I created a 3D model in Photoshop and animated it. I have to cut the frame count right down to make the file size acceptable on forums though. :(
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 18, 2012, 03:01:42 AM
Quote
OK. I was just wondering if that was why I get some odd characters in the upper left
corner of my gauges page. See attached.
When you save your file make sure you save it in ANSI format.  In notepad down at bottom you can change the encoding format.
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 18, 2012, 01:01:24 PM
I noticed with my time of last rain tag wasn't producing a time but I changed it to time of last rain allways and I get 5:50 AM.  My date of last rain produces 2/17/2012 but when I rollover the gauge I get Last Rain: 1 Nov 5:50
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 18, 2012, 02:17:43 PM
I think I see a problem with the last rain date/time. Can WD produce a fixed date format for the tags, or does it vary depending on the stations locale settings? The script assumes it will be in ISO date/time format for Cumulus (yyyy-mm-dd hh:mi) but if WD produces dates in dd/mm/yyyy or mm/dd/yyyy do you normally have to specify the date format in the script and user changes it at deployment?
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 18, 2012, 03:18:13 PM
Mark,

It is always fixed with two tags, however there is a small bug in the time part (there's a leading space in front), so the rain tags have to be placed without a space between them.
Is already said in this topic.

As from my site:

"LastRainTipISO":"%dateoflastrainalways%%timeoflastrainalways%"

Jacco
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 18, 2012, 03:22:49 PM
I believe the date is setup by the local settings.  dd/mm/yyyy in Europe and mm/dd/yyyy in USA.   I'm not sure if WD can do the date with the ISO format.  Brian would have to answer this.
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 18, 2012, 03:26:22 PM
I believe the date is setup by the local settings.  dd/mm/yyyy in Europe and mm/dd/yyyy in USA.   I'm not sure if WD can do the date with the ISO format.  Brian would have to answer this.

Just download the latest customclientraw from my site. I made a mistake in the tags.
In WD we have %timeoflastrainalways% and %timeoflastrain%, the last tag gives a - when there is no rain for the day, and that is in your ccr.

Jacco

Title: Re: Steelseries Gauges for WD
Post by: oz7mks on February 18, 2012, 04:12:32 PM
Hi...

I have (I think) solved the problem with LastRainISO in gauges.js for my locale:

Around line 706:
Quote
                // mainpulate the last rain time into something more friendly
                var str = cumulus.LastRainTipISO.split(' ');
                var dt = str[0].replace(/\//g,'-').split('-');
                var tm = str[2].split(':');
                var today = new Date();
                today.setHours(0, 0, 0, 0);
                var then = new Date(dt[2], dt[1] , dt[0], tm[0], tm[1], 0, 0);
                if (then.getDate() >= today.getDate()) {
                    cumulus.LastRained = LANG.LastRainedT_info + ' ' + str[2];
                } else if (then.getDate() + 1 >= today.getDate()) {
                    cumulus.LastRained = LANG.LastRainedY_info + ' ' + str[2];
                } else {
            cumulus.LastRained = then.getDate().toString() + ' ' + LANG.months[then.getMonth()] + ' ' + LANG.at + ' ' + str[2];
                }

It works for me.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 18, 2012, 04:19:26 PM
Yep, that will do it, what I really wanted though was a solution that will work with any WD locale - and Cumulus ISO. I think I will have to put a flag in the script to indicate the date format in use.

this works for ISO and dd/mm/yyyy but not the odd mm/dd/yyyy they insist on using in the USA  :roll:  :lol:
Code: [Select]
var dt = str[0].replace(/\//g,'-').split('-');  // WD uses dd/mm/yyyy :(
...
 var then = new Date((dt[0] > 2000 ? dt[0] : dt[2]), dt[1] - 1, (dt[2] > 2000 ? dt[0] : dt[2]), tm[0], tm[1], 0, 0); // allow for ISO or dd/mm/yyyy
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 18, 2012, 04:57:10 PM
When you save your file make sure you save it in ANSI format.  In notepad down at bottom you can change the encoding format.

Thanks, that solved it. That's odd, as I've never set the format before on
any pages I've edited with Notepad, just used the default, whatever that
is. I'll have to remember that in the future.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: atsio on February 18, 2012, 05:07:49 PM
For some reason, today the script stopped responding! It doesn't seem to load (or find) customclientraw.txt.

Here: http://www.meteothes.gr/gauges-ss/gauges-ssT.htm (http://www.meteothes.gr/gauges-ss/gauges-ssT.htm) :roll:

The file is at the defined path and WD uploads it all the time.

I've just updated WD to the latest build 14.

There is also a tag in customclientrawlocal.txt (%maxgustdirdeg% ) that doesn't exist!

Thanos
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 18, 2012, 05:16:02 PM
Thanos, you have
var dt = str[0].replace('/','-').split('-');
it should be:
var dt = str[0].replace(/\//g,'-').split('-');

Edit: Ah, I see I posted an incorrect code snippet above - now corrected. I missed that, sorry.
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 18, 2012, 06:03:59 PM
For some reason, today the script stopped responding! It doesn't seem to load (or find) customclientraw.txt.

Here: http://www.meteothes.gr/gauges-ss/gauges-ssT.htm (http://www.meteothes.gr/gauges-ss/gauges-ssT.htm) :roll:

The file is at the defined path and WD uploads it all the time.

I've just updated WD to the latest build 14.

There is also a tag in customclientrawlocal.txt (%maxgustdirdeg% ) that doesn't exist!

Thanos

Thanos,

Just download the new clientrawlocal.txt from my site, from release 14 something changed i guess.
The date for last rain is correct, the time not, so i changed the tags to working ones.

And about the %maxgustdirdeg%, it doesn't work, but that's no problem.

@Micheal, Thanks for the finding the typo error, i have corrected it on the site!

Jacco
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 18, 2012, 06:58:15 PM
In your ccrlocal.txt the part of the lastraintipISO must be:

"LastRainTipISO":"%dateoflastrainalways%%timeoflastrainalways%"

Thanks much Jacco! That finally got mine out of 'dead mode'. Now for the fine tuning.

http://tiggrweather.net/gauges/gauges-ssT.htm
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 18, 2012, 07:45:40 PM
How do I get the #location, #latitude, etc., to show?

http://tiggrweather.net/gauges/gauges-ssT.htm

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 18, 2012, 08:27:54 PM
Quote
<h2 style="text-align: left; text-transform: none;">&nbsp;Latitude&nbsp;<#latitude>&nbsp;&nbsp;&nbsp;&nbsp;Longitude&nbsp;<#longitude>&nbsp;&nbsp;&nbsp;&nbsp;Elevation&nbsp;<#altitude></h2>
  </div>
In this section just replace #latitude with your latitude.   So you would have
Quote
<h2 style="text-align: left; text-transform: none;">&nbsp;Latitude&nbsp;<30.00N>&nbsp;&nbsp;&nbsp;&nbsp;Longitude&nbsp;<105.00W>&nbsp;&nbsp;&nbsp;&nbsp;Elevation&nbsp;<300 FT></h2>
  </div>
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 18, 2012, 08:41:39 PM
In this section just replace #latitude with your latitude.   So you would have...

Thanks. I was 'assuming' (because of the leading #) that those values might be filled in automatically somehow.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 18, 2012, 08:43:56 PM
I can add
%maxgustdirdeg%
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 18, 2012, 10:48:42 PM
I can add
%maxgustdirdeg%

When i tried to find the corresponding tags from cumulus to WD i invented that tag, because it was in the realtimegauges.txt file of Mark.
However until now i still didn't find what it does. As far as i can see it is not used in the script.

Maybe Mark can tell?

Jacco
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 19, 2012, 11:52:58 AM
The value is the bearing in degrees of today's maximum gust.  You are right, it isn't used in the script currently - it is hang over from a previous attempt at a gauges page. But as it's there I may as well use it, so the next release I'll add it in to the wind speed pop-up box.

As the value will only used as text, you could equally well use an ordinal bearing value if it already exists.
Title: Re: Steelseries Gauges for WD
Post by: oz7mks on February 19, 2012, 02:36:11 PM
Hi...

Does anybody know where the forecast text get's it's encoding from, i'm having problems with the danish special characters, but only in the forecast.

Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 19, 2012, 02:48:48 PM
Hi...

Does anybody know where the forecast text get's it's encoding from, i'm having problems with the danish special characters, but only in the forecast.
I had a great deal of problems with extended character encoding. As far as I can tell (and I tried numerous workarounds) extended character sets are not supported with ajax XMLHttpRequest objects (which is used to fetch the ccr file) - they always return an ASCII character set text body.

For Cumulus we worked around this by Steve providing a new tag <#forecastenc>, which html encodes all extended characters, the script then decodes this back to a standard UTF-8 string for display. Does WD provide a similar encoded tag?
Title: Re: Steelseries Gauges for WD
Post by: pwilman on February 19, 2012, 05:18:04 PM
Hi,

I have just created my own steel series at http://www.paulwilman.com/liveweather.htm (http://www.paulwilman.com/liveweather.htm). I have added a java script into my weather display live page that detects when you are on iPad or iPod etc and redirects you to the steel series rather than weather display live. Seems to work very smoothly. Check out http://www.paulwilman.com (http://www.paulwilman.com) to see it in full display.

Steel series page needs a bit of work on formatting

Paul
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 20, 2012, 04:32:34 AM
Hi,

I have just created my own steel series at http://www.paulwilman.com/liveweather.htm (http://www.paulwilman.com/liveweather.htm). I have added a java script into my weather display live page that detects when you are on iPad or iPod etc and redirects you to the steel series rather than weather display live. Seems to work very smoothly. Check out http://www.paulwilman.com (http://www.paulwilman.com) to see it in full display.

Steel series page needs a bit of work on formatting

Paul

FYI, when I open your page with my Android tablet, I get gauges rather than WD Live. I don't
know if that's what you intended, as it's not an iPad.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: pwilman on February 20, 2012, 07:14:04 AM
Keith,

The JavaScript should only direct you to the steel dials if you are on an iPhone, iPad platform. Not sure why it is redirecting android tablets to? I tried it on my iMac and I wasn't redirected......

Paul
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 20, 2012, 04:44:17 PM
Keith,

The JavaScript should only direct you to the steel dials if you are on an iPhone, iPad platform. Not sure why it is redirecting android tablets to? I tried it on my iMac and I wasn't redirected......

Paul
Paul,

I just wanted to let you know that, for my Android tablet at least, the script is not doing what you want. I
have no idea why it doesn't, as I know little to nothing about Java script.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 21, 2012, 08:54:26 AM
hello, my name is weird I was only half works #-o

http://www.meteo16-vars.com/gauges-ssT-fr.htm
Title: Re: Steelseries Gauges for WD
Post by: pwilman on February 21, 2012, 09:29:49 AM
Neomanu16,

To get all the dials to work you need to go into control panel, web page setup, custom web page and unstick the box "include units" atbthe moment the units will be uploaded to customclientraw which confuses things. Be aware that this will remove the units from any tags uploaded to any custom web pages you have created.

Hope this helps

Paul
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 21, 2012, 12:37:21 PM
hello, my name is weird I was only half works #-o

http://www.meteo16-vars.com/gauges-ssT-fr.htm


I will not put too much trouble
Title: Re: Steelseries Gauges for WD
Post by: Sask on February 22, 2012, 04:23:25 AM
Is there a way to reverse the wind dial indicators?

So that the needle is current wind speed and the green bar is average wind speed.
Title: Re: Steelseries Gauges for WD
Post by: oz7mks on February 22, 2012, 06:43:48 AM
Hi...

Quote
Is there a way to reverse the wind dial indicators?

So that the needle is current wind speed and the red bar is average wind speed.

Or mayby one more needle to show gust, like the wind dir gauge?
Title: Re: Steelseries Gauges for WD
Post by: Sask on February 23, 2012, 02:05:31 AM
I have another question.

My rain rate of 10mm/h is getting pinned at 10mm (as I type this). My question is how to I change it to 100mm/h (for example).

I edited in the gauges.js line to
g_rrate.maxValue = 100;
but it is not changing the rain rate dial, it still remains a rainrate of 10mm/h.
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 23, 2012, 06:09:54 AM
I have another question.

My rain rate of 10mm/h is getting pinned at 10mm (as I type this). My question is how to I change it to 100mm/h (for example).

I edited in the gauges.js line to
g_rrate.maxValue = 100;
but it is not changing the rain rate dial, it still remains a rainrate of 10mm/h.

The scale of the gauge has to scale automatically, did the rainrate go higher as 10mm/h?
As it it is lower as 10, it scales to 10, at 11 it scales to 20, at 21 it scales to 30 etc. (for mm) for inches 1.0/2.0/3.0 etc.

Jacco
Title: Re: Steelseries Gauges for WD
Post by: Sask on February 23, 2012, 10:40:52 AM
The scale of the gauge has to scale automatically, did the rainrate go higher as 10mm/h?
As it it is lower as 10, it scales to 10, at 11 it scales to 20, at 21 it scales to 30 etc. (for mm) for inches 1.0/2.0/3.0 etc.

Jacco

Would seem mine did not scale...according to Wd it hit 65mm/h at one time today. I was looking at the Davis console and it was well over 10 mm/h. Yet the Steel Series remained pinned at 10 mm/h (no scaling).

I was thinking it should or would scale up....but it never happened.

http://mahutaweather.no-ip.org/gauges-ssT.htm (http://mahutaweather.no-ip.org/gauges-ssT.htm)

I am running WD 10.37R Build 08. Is it possible that has something to do with it?
Title: Re: Steelseries Gauges for WD
Post by: scudlly on February 23, 2012, 10:58:26 AM
These gauges are great
is it possible to have the UV Gauge and Solar Gauge on the one page

Thanks
Trev
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 23, 2012, 12:48:03 PM
I am trying to validate the ccr file and produce a 'definitive' version, but I've hit a few problems that maybe someone can help me with...

Is there a tag for current temperature trend in text format - eg rising/falling/steady etc. ?

I thought the tag for the peak  Beaufort gust speed (numeric) was %bftmaxgustlast24hrnu%, but is does not appear to work?

I had the tag for the direction of today's maximum gust to be %maxgustdirdeg%, but again this does not appear to work?

Thanks for any help with this.

Mark
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 23, 2012, 01:53:16 PM
Mark,

Attached is the latest (I think - dated 14 Feb) tagslist.txt. Maybe this will help.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 23, 2012, 02:46:42 PM
Thanks John that is a big help.

So far as I can tell:

%bftmaxgustlast24hrnu% is listed as a valid tag, but does NOT get processed by WD? (at least not by tame volunteers install using 10.37R b14)

Current temperature trend in words - there is no existing tag in WD. No big problem I can code around that one as I have the numeric value.

Direction of today's max gust in degrees - there is no existing tag in WD. No problem I will use the ordinal direction %maxgstdirectionletter% as this value is only used in pop-up text.

Mark
Title: Re: Steelseries Gauges for WD
Post by: jacg on February 23, 2012, 02:56:12 PM
I am trying to validate the ccr file and produce a 'definitive' version, but I've hit a few problems that maybe someone can help me with...

Is there a tag for current temperature trend in text format - eg rising/falling/steady etc. ?

I thought the tag for the peak  Beaufort gust speed (numeric) was %bftmaxgustlast24hrnu%, but is does not appear to work?

I had the tag for the direction of today's maximum gust to be %maxgustdirdeg%, but again this does not appear to work?

Thanks for any help with this.

Mark

Mark,

Brian did already offer to create the %maxgustdirdeg%,  the %bftmaxgustlast24hrnu% is in the tagslist but is indeed not working. And last but not least as far i know there is no tag for the temperature trend in text.

So maybe if we ask Brain nicely  :D

1. create a %maxgustdirdeg%
2. check why the %bftmaxgustlast24hrnu% is not working
3. create if possible a temptrendtext

Jacco
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 23, 2012, 02:59:50 PM
Hi Jacco,

The first two fine, the last I do not need as the text would always be in the station language. The template is multi-lingual so I really should provide the text in the script according to the current language selection. I will make the same change in the next release for the Cumulus version as well.

EDIT: The value for Humidex only appears to be available in C or F tags, there isn't one available in 'station units'? (eg. %humidex%)

Mark
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 23, 2012, 06:12:42 PM
%bftmaxgustlast24hrnu%
should be
%bftmaxgustlast24hrnum%
i.e mis print in the tag list , I will correct that
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 23, 2012, 10:29:35 PM
Mark,

Here's a new taglist that just came with the latest release of b16 dated 24 Feb.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 23, 2012, 11:05:51 PM
Thanks, I have v1.6.0 almost ready for release. This will be much more WD friendly, you will be able to leave the units switched on for ccr processing if you want. It will have an optional Solar Rad gauge (as well as the UV). It will include a ccr template in the zip. It is all coded and seems to be working well.

What I am less sure of is how to layout 10 (or 9, or 8 ) gauges.


X = optional gauge

OOOO
OOOO
   XX

or

OOO
OOO
OOXX

or maybe

 OOO
OOOO
 OXX


or even

OOO
OOO
 OO
 XX        and let you place/remove the gauges manually in the HTML.

?

/M
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 23, 2012, 11:32:41 PM
Thanks, I have v1.6.0 almost ready for release. This will be much more WD friendly, you will be able to leave the units switched on for ccr processing if you want. It will have an optional Solar Rad gauge (as well as the UV). It will include a ccr template in the zip. It is all coded and seems to be working well.

Very much looking forward to that.

What I am less sure of is how to layout 10 (or 9, or 8 ) gauges.


(O) = optional gauge

OOOO
OOOO
(O)(O)

or

OOO
OOO
OO(O)(O)

or maybe

 OOO
OOOO
O(O)(O)

?

For those of us using the narrow window setting in WD, 4 across won't fit, and even 3 across would probably hang off the edge a bit. I had planned on pre-setting my page to wide to fit 3 across. So, I would prefer...

OOO
OOO
OO
(O)(O)

...with the bottom two rows centered. Possible? Or, is there a single setting now to change the 251px to something smaller? I seem to remember seeing more than one place, but I could easily be wrong.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 23, 2012, 11:55:29 PM
Thanks for the feedback it sounds reasonable, I'll see if I get any other views.

You only need to set the size in the one place - g_size - the others don't matter, it will all rescale  :)
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on February 24, 2012, 07:36:38 AM
Looking forward to a WD release Mark...

I like the layout I have now - 8 gauges with the bottom two centred (I don't have solar sensors). See my current setup: -

http://www.spireweather.co.uk/?page_id=2201
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 24, 2012, 08:30:20 PM
For myself, I like the 3x3 layout, and I would opt to put the new solar rad (thanks for that,
by the way!) in place of the rain rate gauge.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 25, 2012, 02:58:15 AM
For some reason I can not get the gauges to update. I have copied the customclientraw.txt to the webfiles folder, i have setup WD to include the custom clientraw file, I verified the units is not ticked and the customclientraw.txt file is present on my webserver. The gauges display but have no data.

Any ideas / suggestions?

http://www.kb5bfa.com/gauges/gauges-ssT.htm (http://www.kb5bfa.com/gauges/gauges-ssT.htm)
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 25, 2012, 03:03:53 AM
For some reason I can not get the gauges to update. I have copied the customclientraw.txt to the webfiles folder, i have setup WD to include the custom clientraw file, I verified the units is not ticked and the customclientraw.txt file is present on my webserver. The gauges display but have no data.

Any ideas / suggestions?

http://www.kb5bfa.com/gauges/gauges-ssT.htm (http://www.kb5bfa.com/gauges/gauges-ssT.htm)

Go into your ccr and change the units to match your site units. In other words tempunit should be "F", pressuint should be "in" etc.

Jack
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 25, 2012, 03:17:54 AM
I would prefer not to lose the rain rate gauge. Even though I am in a desert, frequently the rain rate here is very heavy, to the point of being considered 'criteria' for Skywarn reporting. To me, anyway, that's a requirement and important.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 25, 2012, 03:20:09 AM
Go into your ccr and change the units to match your site units. In other words tempunit should be "F", pressuint should be "in" etc.

Jack

Jack,

I made the change, still have the same problem.

Thanks for the help.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 25, 2012, 03:22:12 AM
Jack,

I made the change, still have the same problem.

Thanks for the help.
You also have this as your ccr....http://tiggrweather.net/customclientraw.txt, and here http://www.kb5bfa.com/customclientraw.txt so I'm not sure where the script is looking. Try just "customclientraw.txt" in your settings.
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 25, 2012, 03:50:16 AM
You also have this as your ccr....http://tiggrweather.net/customclientraw.txt, and here http://www.kb5bfa.com/customclientraw.txt so I'm not sure where the script is looking. Try just "customclientraw.txt" in your settings.

Maybe it's time to give this a rest. I found the mistakes you pointed out, caused from copy and paste in the wrong windows. I have the ccr pointing to the correct file now, but its still not updating. I am beginning to wonder if there are other settings inside of WD that is causing this.

I think I will sleep on this and try again tomorrow.

Thanks for the help.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 25, 2012, 04:00:58 AM
You also have this as your ccr....http://tiggrweather.net/customclientraw.txt...

Hmm - probably not a good idea to show AZ stats in CT...   :roll:  :D
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 25, 2012, 04:17:06 AM
Hmm - probably not a good idea to show AZ stats in CT...   :roll:  :D

This is what happens when you have 2 kids playing, a tv blaring in the background, a terrible headache, and messing with things you should be doing when everyone is sleeping.  8O

I finally got it partially working, it will display the gauges in the first row only, the others are all still blank.

Good night all.
Title: Re: Steelseries Gauges for WD
Post by: broadstairs on February 25, 2012, 08:18:08 AM
I have been following this thread for a while and when I get my main PC back from repair I intend to have a go with this (my test server runs on this PC).

However I see that it uses customclientraw.txt which is a file I already use for running my website, so without a complete re-write I will have a problem. How easy is it to change the file being used, has anyone who already uses this file found a way to still use these gauges?

Currently you can only have one customclientraw file, it might be possible to use a custom log file instead but the problem there is that the option for appending or not to a custom log file refers to all custom logs and I already use two of these files both of which MUST append, so again for me this is not an answer. Maybe one option would be for Brian to allow more than one customclientraw file.

Stuart
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on February 25, 2012, 09:50:18 AM
Stuart,

Maybe you could have it created as a wxlocalxx file and renamed on the upload, then you wouldn't have the append issue.

- Jim
Title: Re: Steelseries Gauges for WD
Post by: broadstairs on February 25, 2012, 10:00:02 AM
Stuart,

Maybe you could have it created as a wxlocalxx file and renamed on the upload, then you wouldn't have the append issue.

- Jim

Its an idea for testing but the beauty of a customclientraw file is the upload being done by the clientrawftp program rather than starting the normal FTP which handles this.

Stuart
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 25, 2012, 11:35:35 AM
I finally got it working, just one small problem. In my customclientraw.txt file the inside and outside humidity values are the same however they are different on the console. I am trying to find out why the CCR has the same value for both inside and outside humidity.

"hum":"77","humTL":"49","humTH":"77","inhum":"77"

The current indoor humidity value is 45 both on the console and in WD.

UPDATE** found the answer in post 15. Problem solved :lol:
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 25, 2012, 06:29:26 PM
Stuart, its almost impossible to be able to cater for and please everyones desires
but flick me 100$ and anything is possible
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 25, 2012, 06:45:50 PM
I have just posted version 1.6.0 on the announcements thread. This now includes a Solar gauge and a pre-canned CCR file that may only need 1 or 2 fields customising (if any) - see the readme.txt

There are a large number of changes to make the scripts more WD friendly, please take the time to read the readme.txt file.

I have worked with Jack on this, so thanks to him, and you know who to go to for support! :-"

Enjoy, I hope I haven't introduced too many bugs!

Mark

PS:
Whilst creating this release I noticed a couple of oddities about WD tag handling:
I have worked around these issues in the script but they perhaps need looking at - I'm not a WD user so I leave this to others.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 25, 2012, 07:09:31 PM
use a new .zip update to fix those tag issues
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 25, 2012, 09:06:41 PM
New version looks great, Mark. Just what I was after. Now to put it into a 'site' page.

http://tiggrweather.net/gauges/gauges-ssT.htm

Thanks much!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 25, 2012, 09:15:31 PM
they look very nice, well done :)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 25, 2012, 10:01:06 PM
New version looks great, Mark. Just what I was after. Now to put it into a 'site' page.

http://tiggrweather.net/gauges/gauges-ssT.htm

Thanks much!
Hmm, its seems your dewpoint and humidex are being reported in C rather than F? - you may want to edit your CCR file and change those tags.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 25, 2012, 10:04:59 PM
Mark,

In the old version the red pointer on the wind gauge pointed to the highest gust for the day. Is there an easy code change to do that again?

Thanks,

Jack
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 25, 2012, 10:46:28 PM
Mark,

In the old version the red pointer on the wind gauge pointed to the highest gust for the day. Is there an easy code change to do that again?

Thanks,

Jack
It is still supposed to!

Try changing gauges.js line 1351 from

    gauge_wind.setMaxMeasuredValue(g_wind.maxMeasured);
to
    gauge_wind.setMaxMeasuredValue(g_wind.maxToday);

Not sure what happened there! I'll collect any other minor bugs up into a update tomorrow - unless there are any show stoppers in the next hour or two.
Title: Re: Steelseries Gauges for WD
Post by: ThorntonWeather on February 25, 2012, 11:02:39 PM
Very cool gauges!  Great work by all involved.  I have mine up and running except for one problem with the graphs.

On the main temperature gauge, the graph shows fine until I select Inside.  Then it doesn't display and switching it back to outside it still doesn't work until the page is reloaded.

Link: http://www.thorntonweather.com/gauges/gauges.htm

If anyone has any suggestions I would appreciate it.

   Tony
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 25, 2012, 11:10:56 PM
Very cool gauges!  Great work by all involved.  I have mine up and running except for one problem with the graphs.

On the main temperature gauge, the graph shows fine until I select Inside.  Then it doesn't display and switching it back to outside it still doesn't work until the page is reloaded.

Link: http://www.thorntonweather.com/gauges/gauges.htm

If anyone has any suggestions I would appreciate it.

   Tony
It's a bit ugly at the moment, you have to set them gauges.js AND ddimgtooltip.js (and re-minify - or edit the minified version directly).

I should get around to fixing that one day.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 25, 2012, 11:36:42 PM
It is still supposed to!

Try changing gauges.js line 1351 from

    gauge_wind.setMaxMeasuredValue(g_wind.maxMeasured);
to
    gauge_wind.setMaxMeasuredValue(g_wind.maxToday);

Not sure what happened there! I'll collect any other minor bugs up into a update tomorrow - unless there are any show stoppers in the next hour or two.

That worked, thanks again!
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 25, 2012, 11:47:48 PM
Very cool gauges!  Great work by all involved.  I have mine up and running except for one problem with the graphs.

On the main temperature gauge, the graph shows fine until I select Inside.  Then it doesn't display and switching it back to outside it still doesn't work until the page is reloaded.

Link: http://www.thorntonweather.com/gauges/gauges.htm

If anyone has any suggestions I would appreciate it.

   Tony

Tony,

Try this in your gauges.js (line 68)

Code: [Select]
var g_tipImgs = [["temp+hum_24hr.php", "indoor_temp_24hr.php"], "temp+dew+hum_1hr.php", "rain_1hr.php", "rain_24hr.php", "humidity_1hr.php", "baro_24hr.php", "windgust_1hr.php", "winddir_1hr.php"];
Jack

Title: Re: Steelseries Gauges for WD
Post by: ThorntonWeather on February 26, 2012, 12:17:44 AM
That's the ticket!  Thanks, Jack! 

Now with the basics up and running I can play with it some more.  Great job incorporating those into your home page!

   T
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 26, 2012, 12:26:37 AM
Hmm, its seems your dewpoint and humidex are being reported in C rather than F? - you may want to edit your CCR file and change those tags.

Fixed the humidex, but can't see a problem with the dew.

Page 1 WD question for the 'gang' - how do I get the ccr file to upload more quickly?

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: weatherbee on February 26, 2012, 12:37:58 AM
Nice work on the gauges.  They are working great.  John, I think your dewpoint and humidex are fine.  It's just it is so dry in Arizona. 
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 26, 2012, 01:21:53 AM
I have just posted version 1.6.0 on the announcements thread. This now includes a Solar gauge and a pre-canned CCR file that may only need 1 or 2 fields customising (if any) - see the readme.txt

Perfect! These look great, and I really like having the Solar gauge! Thanks!  :D

-Keith
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 26, 2012, 01:25:32 AM
Nice work on the gauges.  They are working great.  John, I think your dewpoint and humidex are fine.  It's just it is so dry in Arizona.

Thanks. I was thinking the same thing. The gauge reading matches the console.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 26, 2012, 01:29:02 AM
Put together a 'site' page at http://tiggrweather.net/wxgauges.php. Had to go to wide mode to make them fit, as I didn't want to make the gauges any smaller.

However, WCC is unhappy with XHTML validation. Started with 45 errors, got that down to 19. Those all have to do with 'canvas', and I'm not sure how to handle them. Use the validation link in the footer.

Thoughts appreciated.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 26, 2012, 09:47:02 AM
Put together a 'site' page at http://tiggrweather.net/wxgauges.php. Had to go to wide mode to make them fit, as I didn't want to make the gauges any smaller.

However, WCC is unhappy with XHTML validation. Started with 45 errors, got that down to 19. Those all have to do with 'canvas', and I'm not sure how to handle them. Use the validation link in the footer.

Thoughts appreciated.
The sample page does pass validation (or it used to!). The problem is your page is defined as XHTML 1.0 Tranistional, the gauges are HTML5 (as is the rest of the sample page) using the <canvas> tas, and unless you define the gauges page as HTML5 it will never pass validation.  :(
Title: Re: Steelseries Gauges for WD
Post by: Sask on February 26, 2012, 09:50:13 AM
I've added mine to the front page..I think/hope they look decent.

http://mahutaweather.no-ip.org
Title: Re: Steelseries Gauges for WD
Post by: ThorntonWeather on February 26, 2012, 01:38:15 PM
Just updated to v1.6 - easy enough. Do have one thing that seems to have changed that I can't fix.  On the wind speed gauge, the little red 'caret' is now moving with the wind speed needle (screenshot attached).  I believe in the old version this would show the max wind gust for the day.  I have tried to figure out where this would be set but to be quite frank, am flailing and unable to find it. 

Any ideas?  Thank you!

   T
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 26, 2012, 01:40:27 PM
Just updated to v1.6 - easy enough. Do have one thing that seems to have changed that I can't fix.  On the wind speed gauge, the little red 'caret' is now moving with the wind speed needle (screenshot attached).  I believe in the old version this would show the max wind gust for the day.  I have tried to figure out where this would be set but to be quite frank, am flailing and unable to find it. 

Any ideas?  Thank you!

   T
See http://www.weather-watch.com/smf/index.php/topic,54749.msg441801.html#msg441801 above, or upgrade to 1.6.2 - just posted ;)
Title: Re: Steelseries Gauges for WD
Post by: ThorntonWeather on February 26, 2012, 02:22:06 PM
Perfect!  Thank you very much, Mark!
Title: Re: Steelseries Gauges for WD
Post by: oz7mks on February 26, 2012, 02:34:56 PM
Hello..

Very nice work, a lot of interpretation problems solved.

But it seems that the max average wind value has disappered, in the tips it now shows the same value for maxavg as for maxgust?

And it would be very nice to have two needles in the wind gauge, one for avg and one for gust...  :headbang:
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 26, 2012, 03:55:29 PM
Hello..

Very nice work, a lot of interpretation problems solved.

But it seems that the max average wind value has disappered, in the tips it now shows the same value for maxavg as for maxgust?

And it would be very nice to have two needles in the wind gauge, one for avg and one for gust...  :headbang:
Argh! Confusion reigns on my part over all the different wind speeds and terms between C. and WD and my script. I'll sort this out for the next release, it needs changes to both the ccr and gauges.js for WD, just the JS file for C.

Sorry but two pointers on the wind speed gauge isn't going to happen (not by me anyway) - that would mean changing the core steelseries library and that is intended to be a general purpose library and in general gauges do not have two pointers! I created the WindDirection gauge with two pointers specifically for weather displays (previously I used the Compass component, but it was a little limited).
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 26, 2012, 07:29:31 PM
Just an FYI it is very easy to change the colors and styles of the gauge. Go to this site and you can try various combinations!
http://weather.wilmslowastro.com/gaugesB/gauges.htm

Then just change the settings you wish to in gauges.js

Jack

I had looked at this page and it was great.  I just went back and the link doesn't work. Is there a new link?

Bill

p.s. Great gauges.  Easy install.  Thanks.
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 26, 2012, 07:53:22 PM
I had looked at this page and it was great.  I just went back and the link doesn't work. Is there a new link?

Bill

p.s. Great gauges.  Easy install.  Thanks.

I have been using this site, select the options at the top then make the changes to gauges.js
http://www.wilmslowastro.com/steelseries/demoRadial.html (http://www.wilmslowastro.com/steelseries/demoRadial.html)
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 26, 2012, 09:33:11 PM
Thanks, I used that site and it worked fine.  I recall the other site having more control, but that may just be my memory.

Bill
Title: Re: Steelseries Gauges for WD
Post by: aggets on February 26, 2012, 09:43:22 PM
Have the gauges working. Hi I have the gauges working on my site http://www.sunprairieweather.com/wx_sg.php (http://www.sunprairieweather.com/wx_sg.php) still have to get the charts working but just wanted to say thanks for a great addition to my site.

Andy
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 26, 2012, 09:54:47 PM
1.6.2 is now running under HTML5 which cleared the canvas errors (thank you!). 16 new errors remain because of the switch to HTML5, but they are not because of your script. It's a pull from an outside site that creates a cache file which includes tables. No way around that one.

http://tiggrweather.net/wxgauges.php

Nifty work, Mark. Thanks again!
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 26, 2012, 11:00:56 PM
If I set "g_showPopupData" = 'true', I get the window with the high and low temp, for
example, but below that I get a broken image window from the browser. What is supposed
to be in the window?

Thanks.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 26, 2012, 11:06:26 PM
If I set "g_showPopupData" = 'true', I get the window with the high and low temp, for
example, but below that I get a broken image window from the browser. What is supposed
to be in the window?

Thanks.

-Keith

Keith,

It will show graphs if you set them up. I use wxgraphs to produce the image, you can see what they look like on my home page.

Jack
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 26, 2012, 11:14:52 PM
Keith,

It will show graphs if you set them up. I use wxgraphs to produce the image, you can see what they look like on my home page.

Jack

I don't know how to set up the graphs, so I won't be doing that. Do you know if the display of
the graphs can be disabled? If not, I'll turn off the popup.

Thanks.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 26, 2012, 11:18:32 PM
If you mean just show the top information bar I do not think so but not really sure.

Jack
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 26, 2012, 11:21:37 PM
If you mean just show the top information bar I do not think so but not really sure.

Jack

Thanks again, Jack.

Yes, I do mean just show the top bar without the graphs. OK, I'll just disable it then.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 27, 2012, 02:09:39 AM
n attempting to incorporate the Steelseries Gauges for WD into my Saratoga templates I also had the HTML5 problem with <canvas> when validating.  I set up a special gauges_top.php file to use in lieu of top.php, and set about correcting the validation errors.  I was down to two errors, and after I corrected the next to last one, abruptly the validator choked on my site and refused to validate further.

The problem was the $gizmotempratge in ajax-gizmo.php that doesn't push out an &deg; statement for the degree symbol.  What validated as transitional code isn't what HTML5 will accept.

Here is the output from the server at the problem area:
Code: [Select]
<span class="ajax" id="gizmotemprate">-3.2 �F/last hr</span>
The diamond question mark does mark the problem.

It's apparent that the ajax gizmo is redundant on this page, so I also created an alternate gauges_header.php that disabled the ajax-gizmo.php call and all seems well at this point.  One warning persists that I'm using an experimental HTML5 check on the site, but I'm happy with that.

My basic setup was to add a new template page for the gauges and then modify the existing gauges-ss.htm to create a guages-ss-stub.php program in the gauges directory that I call from the guages-ss.php located in the root.  Since I'm a hacker, not a bona fide coder it took me all day to accomplish.

Here is the page:  http://www.gwwilkins.org/gauges-ss.php (http://www.gwwilkins.org/gauges-ss.php)

The graphs don't function yet, but I'll dig back into this thread to see how to fix that problem--they're disabled for now.

Many thanks, guys for making this possible.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 10:36:54 AM
n attempting to incorporate the Steelseries Gauges for WD into my Saratoga templates I also had the HTML5 problem with <canvas> when validating.  I set up a special gauges_top.php file to use in lieu of top.php, and set about correcting the validation errors.  I was down to two errors, and after I corrected the next to last one, abruptly the validator choked on my site and refused to validate further.

The problem was the $gizmotempratge in ajax-gizmo.php that doesn't push out an &deg; statement for the degree symbol.  What validated as transitional code isn't what HTML5 will accept.

Here is the output from the server at the problem area:
Code: [Select]
<span class="ajax" id="gizmotemprate">-3.2 �F/last hr</span>
The diamond question mark does mark the problem.

It's apparent that the ajax gizmo is redundant on this page, so I also created an alternate gauges_header.php that disabled the ajax-gizmo.php call and all seems well at this point.  One warning persists that I'm using an experimental HTML5 check on the site, but I'm happy with that.

My basic setup was to add a new template page for the gauges and then modify the existing gauges-ss.htm to create a guages-ss-stub.php program in the gauges directory that I call from the guages-ss.php located in the root.  Since I'm a hacker, not a bona fide coder it took me all day to accomplish.

Here is the page:  http://www.gwwilkins.org/gauges-ss.php (http://www.gwwilkins.org/gauges-ss.php)

The graphs don't function yet, but I'll dig back into this thread to see how to fix that problem--they're disabled for now.

Many thanks, guys for making this possible.

Ensure you save your files in UTF-8 format, and put the same character set declaration in the resultant HTML - that should fix the extended character problems.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 10:39:32 AM
I don't know how to set up the graphs, so I won't be doing that. Do you know if the display of
the graphs can be disabled? If not, I'll turn off the popup.

Thanks.

-Keith
Keith, you can disable the graph images but it's a bit messy - I'll look at making the graphs optional in a future release. In the meantime, you could create a tiny blank 'dummy' graph image and point the scripts (gauges.js and ddimagepopup.js - and minified) at that image.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 10:41:24 AM
Here is a point of reference if you are customising the script - it's pretty obvious but just in case you hadn't realised it...

Since the ccr file uses the JSON file format, you can safely add your own fields/tags to the standard file (indeed you can re-order it how you like - so long as you leave the 'ver' field as the last value in the file, I use that to check the file is complete). Adding your own fields allows you to refer to the new tag via the 'data' object in the scripts without adding any additional code e.g.

in customclientrawlocal.txt add:

... "newField":"%newTag%", ...

Then in the script you can use:
...
 var myValue = data.newField * 100;
...
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 27, 2012, 01:41:11 PM
Ensure you save your files in UTF-8 format, and put the same character set declaration in the resultant HTML - that should fix the extended character problems.

Thanks, Mark.  The problem was in the ajax-gizmo.php output, not the Steelseries Gauges.  Because ajax-gizmo is redundant on this page, I disabled it there.

One last template related problem with validation was due to the template theme switcher which insisted on calling <form with action="".  The validator refused to accept this under HTML5.  I was unable to modify the page to show only the width selection, so I simply disabled the theme switcher in a guages_menubar.php clone.  Basically every php that is regularly called by the template routines has been modified with a 'gauges' prefix and appropriate changes were made in these new php's to allow the gauges-ss.php page to validate.

Anyone who accessed this page might have stumbled upon it while it was broken during the testing procedure--sorry about that.  My 'localhost' testbed can't be accessed by the validation page, so the changes were made on my live web site, at times unfortunately.
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 27, 2012, 08:12:09 PM
Keith, you can disable the graph images but it's a bit messy - I'll look at making the graphs optional in a future release. In the meantime, you could create a tiny blank 'dummy' graph image and point the scripts (gauges.js and ddimagepopup.js - and minified) at that image.

Thanks, Mark. I'll look at making the dummy graph file and see if that works for me.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 08:20:02 PM
Hold your hat Keith - just uploading version 1.6.3 which contains a switch for text only popups...
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 27, 2012, 08:28:57 PM
Hold your hat Keith - just uploading version 1.6.3 which contains a switch for text only popups...

Wow, that was fast! I'll hold off on the dummy image, then, and wait for the updated version.

Thanks!

-Keith
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 08:37:46 PM
Done, v1.6.3 now uploaded - eventually, my 3G connection has dropped down to GPRS in my hotel :(
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 27, 2012, 08:56:29 PM
Done, v1.6.3 now uploaded - eventually, my 3G connection has dropped down to GPRS in my hotel :(

Popup works perfectly for me, Mark! I get the text and no more broken image window.  :D

Thanks again. =D&gt;

-Keith
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 27, 2012, 09:19:09 PM
I have an error in internet explorer 9 voila it tells me

if someone has an idea I'm interested

Your browser does not support the HTML5 Canvas ... Sorry ...
An up-to-day of your browser to a newer version is required - almost all browsers support HTML5 Canvas now includes IE9!

I redirect you to the site containing the 'old' gauges ...

http://www.meteo16-vars.com/gauges.htm
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 09:42:03 PM
Sounds like you have 'compatibility' mode enabled - your pages loads OK for me in IE9.

Try clicking the 'broken page' icon at the right of your URL address bar.
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 27, 2012, 09:49:28 PM
Was this last question how much it made ​​you
 for the images when you pass on the gauge
 I have nothing
 thank you very much
 Emmanuel
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 27, 2012, 10:17:54 PM
Was this last question how much it made ​​you
 for the images when you pass on the gauge
 I have nothing
 thank you very much
 Emmanuel

I don't fully understand your question, but if you are referring to the redirect to the "old
gauges" page, I don't have those, either, so I changed the redirect link in gauges.js to
redirect the user back to my main weather page.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 27, 2012, 10:25:53 PM
I speak not of the images that you see when you pass the mouse over the gauge at home is nothing that appears

Emmanuel
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 10:36:23 PM
I speak not of the images that you see when you pass the mouse over the gauge at home is nothing that appears

Emmanuel

Emmanuel, you do not seem to have any 'image' based graphs on your website, you use Flash and HiCharts. So I do not think it is possible to use this feature with the gauges. The gauges popups require small graphs in an image format such as jpg, png or gif.

/M
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 27, 2012, 10:42:11 PM
OK called me how I can remove the window just leave the text in his case it'll be the prettiest :D
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2012, 10:47:28 PM
gauges.js, line 30

var g_showPopupDataGraphs   = false; //If popup data is displayed, show the graphs?
Title: Re: Steelseries Gauges for WD
Post by: neomanu16 on February 27, 2012, 10:50:06 PM
thank you

cordially Emmanuel :wink:
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 27, 2012, 11:15:57 PM
Done, v1.6.3 now uploaded - eventually, my 3G connection has dropped down to GPRS in my hotel :(

Works perfectly with the data only popups!  Thanks, Mark. :D
Title: Re: Steelseries Gauges for WD
Post by: Sask on February 28, 2012, 12:34:40 AM
Is there a direct link for these updates pls. I (for whatever reason) am unable to download from the update thread.
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 28, 2012, 07:29:50 PM
I think I must be missing something. 

The graphs look great.  Easy install etc.

How often should customclientraw.txt be updated?  Mine is being sent to the server every minute.  But I am sending clientraw.txt every few seconds and would like to send customclientraw at the same time.  Is that possible?

Bill
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 28, 2012, 07:59:24 PM
Bill,

Are you uploading the customclientrawlocal using the Real Time client upload? You can set
that up in the Real Time Client window; tick "Create a custom clientraw file..." near the bottom
of the window. If you have a zero offset, the Real Time client uploader will upload both at the
same time frequency. At least, that's how it is working for me.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 28, 2012, 08:08:16 PM
Is something else besides var g_showPopupData = true; and var g_showPopupDataGraphs = true; necessary to get the graphs to generate? I get the window and the text, but no graph.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 28, 2012, 08:10:35 PM
Bill,

Are you uploading the customclientrawlocal using the Real Time client upload? You can set
that up in the Real Time Client window; tick "Create a custom clientraw file..." near the bottom
of the window. If you have a zero offset, the Real Time client uploader will upload both at the
same time frequency. At least, that's how it is working for me.

-Keith

Thanks Kevin, I had the "Create a custom clientraw file" checked.  I have the customclientrawlocal in my wd directory.  Correct?

Bill
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 28, 2012, 08:22:34 PM
Is something else besides var g_showPopupData = true; and var g_showPopupDataGraphs = true; necessary to get the graphs to generate? I get the window and the text, but no graph.

Thanks.
John, the scripts do not generate graphs, they can only load graphics that are already on your server. So if you have some suitable graphics point the scripts at those, if not you are best disabling the graphs in the popups.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 28, 2012, 08:24:42 PM
Aw, shucks. You mean this wonderful script can't do that, too...??  :wink:

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 28, 2012, 08:25:49 PM
Thanks Kevin, I had the "Create a custom clientraw file" checked.  I have the customclientrawlocal in my wd directory.  Correct?

Move it into /webfiles/.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 28, 2012, 08:26:45 PM
Sorry John, I'll try harder!  :lol:
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 28, 2012, 08:38:16 PM
A question about the trend images, Mark.

I see this in gauges.js:
Code: [Select]
var g_tempTrendVisible = true;
var g_pressureTrendVisible = true;
// the trend images to be used for the popup data, used in conjuction with g_g_imgPathURL
// by default this is configured for the Cumulus 'standard' web site

I'm not sure what this means, or how/where to configure trend images in WD.  Is it looking for .png's?  What are their paths/names?

The arrows on my temp and pressure gauges aren't working correctly for some reason: http://www.gwwilkins.org/gauges-ss.php (http://www.gwwilkins.org/gauges-ss.php).

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 28, 2012, 08:42:27 PM
It's a bit confusing I agree.
The g_tempTrendVisibile/g_pressureTrendVisible control the trend 'indicators' (rising/steady/falling) indicators of the respective gauges.

The trend 'images' (maybe I should change the terminology to trend graphs) are images of graphs used in the pop-ups (any web format will do).
Title: Re: Steelseries Gauges for WD
Post by: KeithW on February 28, 2012, 08:56:54 PM
Thanks Kevin, I had the "Create a custom clientraw file" checked.  I have the customclientrawlocal in my wd directory.  Correct?

Bill

Correct.

Edit: Sorry, not that is not correct. The customclientrawlocal.txt should be in your webfiles directory.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 28, 2012, 09:02:40 PM
On more careful examination, the trend arrows are working correctly.  Apparently it's my eyes that aren't! :oops:
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on February 29, 2012, 04:00:53 AM
I am having problems with getting the graphs to work. I have setup wxgraphs and its working correctly but still unable to get them to show up. Any ideas or suggestions?

http://www.kb5bfa.com/gauges (http://www.kb5bfa.com/gauges)
http://www.kb5bfa.com/wxgraphs/wxgraphs_test.html (http://www.kb5bfa.com/wxgraphs/wxgraphs_test.html)

Thanks to everyone who has assisted in getting all this to work and for the gauges, they are very nice.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on February 29, 2012, 04:09:10 AM
I am having problems with getting the graphs to work. I have setup wxgraphs and its working correctly but still unable to get them to show up. Any ideas or suggestions?

http://www.kb5bfa.com/gauges (http://www.kb5bfa.com/gauges)
http://www.kb5bfa.com/wxgraphs/wxgraphs_test.html (http://www.kb5bfa.com/wxgraphs/wxgraphs_test.html)

Thanks to everyone who has assisted in getting all this to work and for the gauges, they are very nice.

Couple of things, on your main page change this....
Code: [Select]
<script src="scripts/ddimgtooltip.min.js"></script> to this
Code: [Select]
<script src="scripts/ddimgtooltip.js"></script>
Then in ddimgtooltip.js try this...

Code: [Select]
var ddimgtooltip={
  tiparray:function(){
    var tooltips=[];
    tooltips[0]=[imgPathURL + "temp+hum_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[1]=[imgPathURL + "temp+dew+hum_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[2]=[imgPathURL + "rain_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[3]=[imgPathURL + "rain_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[4]=[imgPathURL + "humidity_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[5]=[imgPathURL + "baro_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[6]=[imgPathURL + "windgust_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[7]=[imgPathURL + "winddir_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[8]=[null, " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[9]=[null, " ", {background:"#FFFFFF", color:"black", border:"2px ridge darkblue"}];
    return tooltips; //do not remove/change this line
  }(),

You can change the background colors to match your theme if you wish.

Jack
Title: Re: Steelseries Gauges for WD
Post by: blainec on February 29, 2012, 04:37:46 AM
Is there a direct link for these updates pls. I (for whatever reason) am unable to download from the update thread.

You can try http://www.westerncawx.net/ftp (http://www.westerncawx.net/ftp)
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 07:46:17 AM
Couple of things, on your main page change this....
Code: [Select]
<script src="scripts/ddimgtooltip.min.js"></script> to this
Code: [Select]
<script src="scripts/ddimgtooltip.js"></script>
Then in ddimgtooltip.js try this...

Code: [Select]
var ddimgtooltip={
  tiparray:function(){
    var tooltips=[];
    tooltips[0]=[imgPathURL + "temp+hum_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[1]=[imgPathURL + "temp+dew+hum_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[2]=[imgPathURL + "rain_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[3]=[imgPathURL + "rain_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[4]=[imgPathURL + "humidity_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[5]=[imgPathURL + "baro_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[6]=[imgPathURL + "windgust_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[7]=[imgPathURL + "winddir_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[8]=[null, " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[9]=[null, " ", {background:"#FFFFFF", color:"black", border:"2px ridge darkblue"}];
    return tooltips; //do not remove/change this line
  }(),

You can change the background colors to match your theme if you wish.

Jack

How can you run server-side code (php) on the client side(javascript)?  The above code doesn't work for me because it calls php code from within javascript.  I see that you have solved this problem somehow on your site, but the method isn't clear to me.  Any hints?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 29, 2012, 09:27:29 AM
Couple of things, on your main page change this....
Code: [Select]
<script src="scripts/ddimgtooltip.min.js"></script> to this
Code: [Select]
<script src="scripts/ddimgtooltip.js"></script>
Then in ddimgtooltip.js try this...

Code: [Select]
var ddimgtooltip={
  tiparray:function(){
    var tooltips=[];
    tooltips[0]=[imgPathURL + "temp+hum_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
  ...
    return tooltips; //do not remove/change this line
  }(),

From v1.6.3 you no longer have/need to edit ddimgtooltip.js - it picks up whatever you place in the g_imgPathURL and g_tipImgs array variables in gauges.js

The relevant bit of ddimgtooltips.js now looks like this:
Code: [Select]
tooltips[0]=[(g_tipImgs[0][0] !== null ? g_imgPathURL + g_tipImgs[0][0] : null), " ", style];
tooltips[1]=[(g_tipImgs[1][0] !== null ? g_imgPathURL + g_tipImgs[1][0] : null), " ", style];
tooltips[2]=[(g_tipImgs[2] !== null ? g_imgPathURL + g_tipImgs[2] : null), " ", style];
tooltips[3]=[(g_tipImgs[3] !== null ? g_imgPathURL + g_tipImgs[3] : null), " ", style];
tooltips[4]=[(g_tipImgs[4][0] !== null ? g_imgPathURL + g_tipImgs[4][0] : null), " ", style];
tooltips[5]=[(g_tipImgs[5] !== null ? g_imgPathURL + g_tipImgs[5] : null), " ", style];
tooltips[6]=[(g_tipImgs[6] !== null ? g_imgPathURL + g_tipImgs[6] : null), " ", style];
tooltips[7]=[(g_tipImgs[7] !== null ? g_imgPathURL + g_tipImgs[7] : null), " ", style];
tooltips[8]=[(g_tipImgs[8] !== null ? g_imgPathURL + g_tipImgs[8] : null), " ", style];
tooltips[9]=[(g_tipImgs[9] !== null ? g_imgPathURL + g_tipImgs[9] : null), " ", style];

The only reason to edit ddimgtooltip.js now is if you want to change the popup 'style' - or add more gauges ;)
/Mark
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 02:10:09 PM
Thanks, Mark!  Success with gauges-ss_v1-6-3 by restoring the distribution ddimgtooltip.js and modifying gauges.js to use this path to the graphs:
Code: [Select]
var g_imgPathURL              = "../wxgraphs/";,
and to use this image array:
Code: [Select]
var g_tipImgs = [["temp+hum_24hr.php", "indoor_temp_24hr.php"],        // Temperature: outdoor, indoor
                 ["temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php"],  // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                 "rain_24hr.php",                                       // Rainfall
                 "rain_1hr.php",                                        // Rainfall rate
                 ["humidity_1hr.php", "humidity_1hr.php"],            // Humidity: outdoor, indoor
                 "baro_24hr.php",                                       // Pressure
                 "windgust_1hr.php",                                    // Wind speed
                 "winddir_1hr.php",                                     // Wind direction
                 "uv_24hr.php",                                         // UV
                 "solar_24hr.php"                                       // Solar rad
                ];

I appreciate very much your hard work and especially your patience.  You can lead a horse to water (me), but you can't make him drink (i.e. see what's right in front of his nose.)  This is the page now:  http://www.gwwilkins.org/gauges-ss.php (http://www.gwwilkins.org/gauges-ss.php).    :greenjumpers: :signthanks:
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 29, 2012, 03:34:34 PM
Glad you got it going Jerry.

Your page looks good, but I've spotted one error in my code - you are leaving the units in the ccr file, and the whilst the script should handle this, I miss handle the data a bit in the Wind Direction gauge, so it fails to display the variation in direction on your gauge - I'll get that fixed.

Edit: Maybe you could test the fix for me?

gauges.js, line 1448, change:
Code: [Select]
if (+data.wspeed.replace(',', '.') > 0) {to:
Code: [Select]
if (windSpd > 0) {
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 29, 2012, 03:56:47 PM
Actually I do not think the wind variation tags in WD are still working correctly. I just patched Jerry's page in the debugger and watched his Wind Dir gauge.

The tags were reading 242-305, then the current value within that range.

Then there was a current reading on 330, the range tags changed to 242-330 (correct).

The next reading was 275, the range tags went back to 242-305 (wrong?) I would have expected them to reflect this new larger variation in direction and continue to read 242-330.

This sort of pattern carried on repeating, when the current value went above or below the 242-305 range.

In fact the tags seem stubbornly 'stuck' on 242-305.

One for Brian I think.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 04:38:48 PM
Actually I do not think the wind variation tags in WD are still working correctly. I just patched Jerry's page in the debugger and watched his Wind Dir gauge.

The tags were reading 242-305, then the current value within that range.

Then there was a current reading on 330, the range tags changed to 242-330 (correct).

The next reading was 275, the range tags went back to 242-305 (wrong?) I would have expected them to reflect this new larger variation in direction and continue to read 242-330.

This sort of pattern carried on repeating, when the current value went above or below the 242-305 range.

In fact the tags seem stubbornly 'stuck' on 242-305.

One for Brian I think.

You're correct, Mark.  The changes don't 'take' even with the modified code you suggested.  For now, I'll revert to the prior code in order to avoid a misleading gauge.  I also changed the graph to winddir_24hr.php which will provide additional information once Brian fixes the tags.

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 29, 2012, 05:50:43 PM
the range tag works on average wind direction
also make sure to be using the latest version of WD (does not mention which version is being used)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 29, 2012, 06:10:32 PM
Ah, thanks for clarifying that Brian.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 06:17:40 PM
the range tag works on average wind direction
also make sure to be using the latest version of WD (does not mention which version is being used)

Thanks, Brian.  I think that explains it, and Mark has already confirmed it.  I'm using the latest version of WD, V10.37Rb16.  BTW, would you recommend using
Code: [Select]
%avdirlastimediate10%.......Average dir wind for the last immediate 10 minute period
vs.
Code: [Select]
%avdir10minute% ............average ten minute wind direction (degrees)
for the tag in customclientrawlocal.txt?  Would the veer directions
Code: [Select]
%mindir10minute%............Max veer left wind direction, last 10 minute (based on 10 minute average speed)
%maxdir10minute%............Max veer right wind direction, last 10 minute (based on 10 minute average speed)
be something to look at here, or do I not understand those tags?

Thanks again for all your hard work.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 06:25:35 PM
Using '%avdirlastimediate10%.......Average dir wind for the last immediate 10 minute period' seems to have changed the range tags to much more reasonable values on my site.

I'll see how it works out.
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 29, 2012, 06:35:08 PM
Thanks, Mark!  Success with gauges-ss_v1-6-3 by restoring the distribution ddimgtooltip.js and modifying gauges.js to use this path to the graphs:
Code: [Select]
var g_imgPathURL              = "../wxgraphs/";,
and to use this image array:
Code: [Select]
var g_tipImgs = [["temp+hum_24hr.php", "indoor_temp_24hr.php"],        // Temperature: outdoor, indoor
                 ["temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php"],  // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                 "rain_24hr.php",                                       // Rainfall
                 "rain_1hr.php",                                        // Rainfall rate
                 ["humidity_1hr.php", "humidity_1hr.php"],            // Humidity: outdoor, indoor
                 "baro_24hr.php",                                       // Pressure
                 "windgust_1hr.php",                                    // Wind speed
                 "winddir_1hr.php",                                     // Wind direction
                 "uv_24hr.php",                                         // UV
                 "solar_24hr.php"                                       // Solar rad
                ];

I appreciate very much your hard work and especially your patience.  You can lead a horse to water (me), but you can't make him drink (i.e. see what's right in front of his nose.)  This is the page now:  http://www.gwwilkins.org/gauges-ss.php (http://www.gwwilkins.org/gauges-ss.php).    :greenjumpers: :signthanks:

Thank you, thank you.  I just copied and pasted your code into my page and the graphs worked. 

Bill
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 06:49:14 PM
Thank you, thank you.  I just copied and pasted your code into my page and the graphs worked. 

Bill

Glad to hear it, Bill.  The credit really belongs to Mark. :)
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 29, 2012, 07:21:22 PM
Bill,

Are you uploading the customclientrawlocal using the Real Time client upload? You can set
that up in the Real Time Client window; tick "Create a custom clientraw file..." near the bottom
of the window. If you have a zero offset, the Real Time client uploader will upload both at the
same time frequency. At least, that's how it is working for me.

-Keith

I don't understand.  I have ticked "Create a custom clientraw file".  But it is not being uploaded.  I can watch the realtimeftp and seel clientraw.txt be uploaded.

I have tried setting the frequency to the same as clientraw.txt and also to different frequencies.  I have tried the upload offset to 0 and to a few seconds.

Obviously, I have restarted WD, several times actually.

In the status bar at the bottom of the Windows screen, I see three small yellow ftp icons.  Should there be three? 

Occasionally, a small status window opens in the status bar and shows what filess are being uploaded.

I have one of the internet file uploads set to upload the customclientraw.txt file every minute and that is how I am getting the data now.  So, the customclientrawlocal.txt file is properly formatted and being found.

Is there some other configuration that either needs to be set or not set?

Thanks.

RESOLVED:  I have it working now.  I was pointing to the wrong place for the data.  My error.  BUT, should the ftp upload window show that customclientraw.txt is being uploaded?  Mine does not.

Bill
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 08:41:17 PM
Thanks Kevin, I had the "Create a custom clientraw file" checked.  I have the customclientrawlocal in my wd directory.  Correct?

Bill

Check the location of your clientraw files on the 'Web Files/Web Page Real Time FTP/WDL menu (via the pushbutton on the upper right).  That's where your custumclientrawlocal.txt goes.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 08:43:59 PM
BUT, should the ftp upload window show that customclientraw.txt is being uploaded?  Mine does not.

Bill

I had to 'stop' the uploads in the realtime uploader in order to scroll through the log and find the file.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 29, 2012, 09:17:23 PM
With appreciation to some great tips from a few folks here I finally have the graphs working (along with a giant headache)...

http://tiggrweather.net/wxgauges.php

Many thanks to all!   :D
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 29, 2012, 09:17:48 PM
Quote
BUT, should the ftp upload window show that customclientraw.txt is being uploaded?  Mine does not.
that was an oversight
this update should
http://www.weather-display.com/downloadfiles/realtimeftp.zip
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 29, 2012, 10:02:00 PM
Thanks Brian, the ftp update now shows the upload of the customclientraw.txt.

I--and I am sure I speak for lots of people--appreciate all your support.

Bill
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on February 29, 2012, 10:12:28 PM
Thanks Brian, the ftp update now shows the upload of the customclientraw.txt.

I--and I am sure I speak for lots of people--appreciate all your support.

Bill

+1

New clientrawrealtimeftp is doing the job AND logging it. :)
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 29, 2012, 10:22:21 PM
I think I found a typo in gauges-ss.css.

There should be a . before td.

With the change there is a slight reformatting of the gauges on my page.

Bill
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 29, 2012, 10:34:15 PM
the graphs works great jgillett :)
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on February 29, 2012, 10:44:04 PM
I create my Carterlake Ajax pages uses a series of classes.

I have had a consistent non-ASCII character at the top of the html page for the gauges.  I have solved the issue and post here in case others have this issue.

I think that the issue is caused by one of the files having been edited and saved as UTF-8, but that is only a guess.

Here is my function that creates the gauge portion of my page:

Code: [Select]
function makessGauges()
{

$gauges = $this->getIncludeContents("../gauges-ss/gauges-ssTO2.html");

//http://stackoverflow.com/questions/4057742/how-to-remove-efbbbf-in-php-string
/* detect the encoding, then convert from detected encoding to ASCII */
$enc = mb_detect_encoding($gauges);
$gauges = mb_convert_encoding($gauges, "ASCII", $enc);
$gauges = ltrim($gauges,"?");

$theBody = "<div id=\"main-copy\"><div align=\"center\">$gauges \n</div><!-- end align=\"left\" --></div><!-- end main-copy -->";
return $theBody;
}

So, I turn the non-ascii into ascii and it is then ? which I strip out.  Seems like an ugly workaround, but hey it works!

getIncludeContents is:

Code: [Select]
function getIncludeContents($filename)
    {
        if (is_file($filename))
        {
            ob_start();
            require_once ( $filename);  // 2-25-12  changed to require_once since started getting redeclared errors  Strange!!!
            $contents = ob_get_contents();
            ob_end_clean();
            return $contents;
        }
        return false;
    }

The non-ascii characters did not appear if I just echoed out the return from the function and displayed it it fireFox with no html wrapping.

Hope this saves someone time.

Bill

Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 29, 2012, 11:58:34 PM
the graphs works great jgillett :)

Thanks, windy. As always, your help and support is most appreciated as well.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on March 01, 2012, 04:09:14 AM
I create my Carterlake Ajax pages uses a series of classes.

I have had a consistent non-ASCII character at the top of the html page for the gauges.  I have solved the issue and post here in case others have this issue.

I think that the issue is caused by one of the files having been edited and saved as UTF-8, but that is only a guess.


I had the same problem, but my approach was to modify the page and supporting files in order to validate as UTF-8 HTML5 compliant.  It was an interesting learning experience, but right now I'm not about to subject the rest of my site to more of the same rigor.
Title: Re: Steelseries Gauges for WD
Post by: bhogsett on March 01, 2012, 11:53:57 AM
I had the same problem, but my approach was to modify the page and supporting files in order to validate as UTF-8 HTML5 compliant.  It was an interesting learning experience, but right now I'm not about to subject the rest of my site to more of the same rigor.

I had seen your earlier message and it helped me identify the problem.

Bill
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 01, 2012, 12:51:01 PM
It is possible that I saved one or more of the files in UTF-8 with a BOM (I switched editors recently) I'll check. The BOM is what you are seeing when the code is loaded as part of a non-UTF-8 page. The BOM should really not be required or be there.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 01, 2012, 08:36:08 PM
Minor glitch with 1.6.4. Since you indicated that gauges.js was all that changed, that's all I uploaded. However, my page is still indicating 1.6.3...

http://tiggrweather.net/wxgauges.php

...even though this is set...

var g_scriptVer = "1.6.4 - 2012-03-01";

Tried different browsers, different OSs, and different machines. What dummy thing did I miss.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 01, 2012, 08:50:52 PM
Minor glitch with 1.6.4. Since you indicated that gauges.js was all that changed, that's all I uploaded. However, my page is still indicating 1.6.3...

My page is showing 1.6.4. All I did was edit gauges.js for my specifics (gauge colors, etc.)
and upload it to my server. All other files remained the same as 1.6.3.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 01, 2012, 08:56:16 PM
That's all I did, Keith. Very strange.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 01, 2012, 09:02:53 PM
Now it's working, and I didn't touch a thing - honest! Can't see 2 different machines, 2 different OSs, and 4 different browsers all failing like that.

Oh, well - maybe a nap will help...   :roll:
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 01, 2012, 09:03:35 PM
That's all I did, Keith. Very strange.
Cross posted:

John your page loads as 1.6.4 for me. Got it stuck in your browser cache?
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on March 01, 2012, 10:47:10 PM
Mark,

Thanks for a great script, the gauges are awesome.  http://jcweather.us/bruce.php (http://jcweather.us/bruce.php)  Is it possible to make the tooltips either a little narrower or higher and if so, could you point me in the right direction so I can mess around?

Thanks again.  - Jim
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on March 01, 2012, 11:05:11 PM
Hi,

I am getting a HTTP Request Failed 404 Retry In ... seconds error.  #-o
Page with the meters is loading but the meters do not load the data.
Any ideas what could be the problem. I set it up just like the other versions.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 01, 2012, 11:24:54 PM
After many hours of testing & tinkering with SteelSeries Gauges, wxgraphs & jpgraph, I have finally managed to get my gauges up and running together with the pop-up graphs...

http://www.spireweather.co.uk/?page_id=2201

I would just like to thank Jacco for starting this thread, and Mark for his unending hard work, and anyone else in this thread and the wxgraphs thread that has helped me out directly or indirectly.  This is a fantastic companion to Weather Display that has transformed my site, and I could not have achieved any of this without this forum. =D&gt;

Regards,
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 02, 2012, 12:29:30 AM
Hi,

I am getting a HTTP Request Failed 404 Retry In ... seconds error.  #-o
Page with the meters is loading but the meters do not load the data.
Any ideas what could be the problem. I set it up just like the other versions.

Did you remember to comment out the Cumulus custom text file line and uncomment
the WD custom text file in gauges.js? I've made that mistake before and got the failed
404 notice.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on March 02, 2012, 12:47:52 AM
Couple of things, on your main page change this....
Code: [Select]
<script src="scripts/ddimgtooltip.min.js"></script> to this
Code: [Select]
<script src="scripts/ddimgtooltip.js"></script>
Then in ddimgtooltip.js try this...

Code: [Select]
var ddimgtooltip={
  tiparray:function(){
    var tooltips=[];
    tooltips[0]=[imgPathURL + "temp+hum_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[1]=[imgPathURL + "temp+dew+hum_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[2]=[imgPathURL + "rain_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[3]=[imgPathURL + "rain_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[4]=[imgPathURL + "humidity_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[5]=[imgPathURL + "baro_24hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[6]=[imgPathURL + "windgust_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[7]=[imgPathURL + "winddir_1hr.php", " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[8]=[null, " ", {background:"#0000CD", color:"white", border:"9px ridge darkblue"}];
    tooltips[9]=[null, " ", {background:"#FFFFFF", color:"black", border:"2px ridge darkblue"}];
    return tooltips; //do not remove/change this line
  }(),

You can change the background colors to match your theme if you wish.

Jack

Jack,

Thank you very much, that solved the problem.  :lol:
Title: Re: Steelseries Gauges for WD
Post by: KB5BFA on March 02, 2012, 12:54:16 AM
Now it's working, and I didn't touch a thing - honest! Can't see 2 different machines, 2 different OSs, and 4 different browsers all failing like that.

Oh, well - maybe a nap will help...   :roll:

John,

I experienced similar phenomenon before I made the fix suggested by Jack. One time they were there, the next they were gone. I thought that maybe all the php scripts did not finish running for wxgraphs to build the graphs.

Watch out for those headaches, you will make some goofy mistakes like i did  :oops:

I hope you get it all straightened out.   
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 02, 2012, 01:20:20 AM
Cross posted:

John your page loads as 1.6.4 for me. Got it stuck in your browser cache?

Nope. As mentioned above, can't see that happening on 2 different machines, 2 different OSs, and 4 different browsers. Besides, I cleared the caches. And, as mentioned below, it just started working by itself. I know, I know...   :?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 02, 2012, 01:22:31 AM
Jack,

Still have the headache, but at least it's working.
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on March 02, 2012, 02:05:58 AM
Jack,

Still have the headache, but at least it's working.

Excellent!  :D

Jack
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 02, 2012, 07:24:19 AM
Just a couple of question: -

My pop-up graphs look stretched compared to the graphs on my wxgraphs test page. Is there a way to size the images?

Also, especially for us WD users, there is quite a lot of editing of gauges.js each time a new version is released. What is the possibility of having a settings file from which gauges.js gets what it needs, that survives an update? I presume it's necessary to update ALL the SteelSeries files each update, unless specified otherwise?

EDIT: Another thing I've noticed this morning on my iPhone's small screen is that the pop-ups can be truncated off the side of the web page. See http://www.spireweather.co.uk/?page_id=2201. Is there any way this can be controlled, so that they're always centred for example?

Thanks,
Title: Re: Steelseries Gauges for WD
Post by: jacg on March 02, 2012, 09:02:38 AM
Just a couple of question: -

My pop-up graphs look stretched compared to the graphs on my wxgraphs test page. Is there a way to size the images?

Also, especially for us WD users, there is quite a lot of editing of gauges.js each time a new version is released. What is the possibility of having a settings file from which gauges.js gets what it needs, that survives an update? I presume it's necessary to update ALL the SteelSeries files each update, unless specified otherwise?

EDIT: Another thing I've noticed this morning on my iPhone's small screen is that the pop-ups can be truncated off the side of the web page. See http://www.spireweather.co.uk/?page_id=2201. Is there any way this can be controlled, so that they're always centred for example?

Thanks,

If you had checked the ddimgtooltip.css, you would have seen:

.tipimg{
  width: 438px;
  height: 175px;
}

So make your graphs that size, or change the css  :D

Jacco
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 02, 2012, 09:35:26 AM
Also, especially for us WD users, there is quite a lot of editing of gauges.js each time a new version is released. What is the possibility of having a settings file from which gauges.js gets what it needs, that survives an update? I presume it's necessary to update ALL the SteelSeries files each update, unless specified otherwise?
I try and identify in the readme file which files have been updated in each release. If a file isn't mentioned as 'updated' then 99% of the time it hasn't - occasionally I make a tweak and forget to edit the readme as I go along.

Can you tell me what settings you have to change each time to gauges.js for WD? I understand there is:
 - The realtime file (not a lot I can do about that)
 - The graphs location - that varies for each user
 - The graph image names - again unlike Cumulus WD does not have a 'standard' set of default images, everybody is rolling their own.

It would be possible to pull out all the 'settings' variables from the top of gauges.js and place them in a separate file. I can see the advantage of this, but there are also down sides: it is another file for me to maintain and keep in synch, and it is another file for the browser to download slowing page delivery.

Hopefully (ha!  :roll:) the recent rash of releases will stop or at least slow now as the 1.6 version stabilises. A great deal of code changed in 1.6.0 to better accommodate WD. My focus is now drifting to other things for a while - like the core SteelSeries library which I want to improve in a number of ways - and I only intend to bug fix this weather page for the time being (which was always meant to be a demonstration of how you could use the SS library, but sort of grew into something that most people are using almost as-is). Oh and my own gauges page is still stuck back on a 1.5.2beta release!  :oops:

Some people on the Cumulus forum are playing around with the linear and thermometer bulb gauges (only available in the full SS library, not the cut down for size version in the gauges-ss zip), and I posted instructions on how to create a Wind 'Radar' gauge using the SS library - which a couple people took up and managed to get going.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 02, 2012, 11:41:17 AM
If you had checked the ddimgtooltip.css, you would have seen:

.tipimg{
  width: 438px;
  height: 175px;
}

So make your graphs that size, or change the css  :D

Jacco

Thanks Jacco.

I've noticed that the download link on your site referenced from post #1 still shows v1.5. It might be worth updating the link to point to SteelSeries Announcenents to avoid confusion for new users.

Cheers,
Title: Re: Steelseries Gauges for WD
Post by: jacg on March 02, 2012, 12:33:01 PM
Simon,

That is because i still use that version, for me it is far more flexible.
There are 2 kinds of users, users that having difficulty enough to install the script, and those who want to adjust it to their own needs.

I did test the latest versions, but for me it was to much trouble "repairing" the script to the version i like.
For example the solar gauge, i'd like to have the max. possible solar reading as the max scale, i don't want a 1400 w/m2 scale in winter when we have 300 w/m2 max.
The same for the windspeed, i don't like the maxgust in the same gauge as the average 10 min windspeed. Changing the colors of sections etc etc.
And i think that is the most interesting part of the script, you can choose the tags in the ccr you like to show, choose the colors, the parameters.

For me there are far to many updates, don't have the time to adjust everything each time to what i like  :wink:

But i can imagine there are a lot of people happy with the hard work of Mark.  :D

Jacco

Title: Re: Steelseries Gauges for WD
Post by: Weerstation on March 02, 2012, 12:54:31 PM
Did you remember to comment out the Cumulus custom text file line and uncomment
the WD custom text file in gauges.js? I've made that mistake before and got the failed
404 notice.

-Keith

Yeah, saw that but that was not the cause.
Stupid me  :oops:, ran over the script many times but didn't notice missing a / between folder and customclientraw.txt
Working now.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 02, 2012, 04:30:07 PM

.tipimg{
  width: 438px;
  height: 175px;
}


That sorted the graph size.  How do I now reduce the window size to reduce the white space around the graph, but obviously with enough room for the graph & data?

Cheers,
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 02, 2012, 04:43:16 PM
Simon

In ddimgtooltip.css

Code: [Select]
.ddimgtooltip{
...
  padding: 0 7px 3px 7px;

controls the space between the graph and the border.

You will probably want to play around with the gauge colour schemes as well to fit in better with your 'black' theme. ;)
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on March 02, 2012, 06:11:27 PM
Hi,

I noticed when popping up text on the dial  for windspeed, the abbreviation for winddirection is still in English, no dutch translation.
The same for the barometer dial, trend "falling" has no translation.
I cannot see what the result for steady and rising is at the moment.

How can I fix that?

TIA
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 02, 2012, 06:25:52 PM

You will probably want to play around with the gauge colour schemes as well to fit in better with your 'black' theme. ;)


Do you think? I had a play & developed some blacked themed gauges, but I felt they weren't as clear & easy to read, so I decided to stick with your standard ones. Maybe I'll have another look.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 02, 2012, 06:42:12 PM
Hi,

I noticed when popping up text on the dial  for windspeed, the abbreviation for winddirection is still in English, no dutch translation.
The same for the barometer dial, trend "falling" has no translation.
I cannot see what the result for steady and rising is at the moment.

How can I fix that?

TIA
Check in languages.js - the changeLang() function
Line 818 should read:
Code: [Select]
    if (gauge_wdir) {
gauge_wdir.setPointSymbols(LANG.compass);
        g_dir.titles = [LANG.latest_web, LANG.tenminavg_web];
        gauge_wdir.setLcdTitleStrings(g_dir.titles);
doDir();
}
This is what changes the Wind Direction LCD titles.

Also check steelseries.min.js is version 0.10.2b - that version of the library implemented the .setLcdTitleStrings() method - (actually it may have been 0.10.2a)
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 02, 2012, 09:10:55 PM
I may be misunderstanding the timeout counter, but I find it does not work for me. I set a value of
five minutes, but if I leave the window open, no matter how long, the script continues to update.
I've even waited an hour, but it continues along on its merry way.

Thoughts?

-Keith
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 02, 2012, 09:25:56 PM
I may be misunderstanding the timeout counter, but I find it does not work for me. I set a value of
five minutes, but if I leave the window open, no matter how long, the script continues to update.
I've even waited an hour, but it continues along on its merry way.

Thoughts?

-Keith
I'm not sure what you have done Keith, but when it reaches the timeout limit, it displays the timeout message, but then the whole page reloads itself!

Ah, I see, in your HTML header you have:
<meta http-equiv="Refresh" content="300">

So the page reloads every 300 seconds and of course restarts the timer.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 03, 2012, 12:33:40 AM
Hey Mark!

We've got a little weirdness going on here in Phoenix. My current dew is 3 (officially at the airport it's -6). The DP gauge very obediently reset the scale down to -30!

Nifty work! Thanks again.   =D&gt;
Title: Re: Steelseries Gauges for WD
Post by: pwilman on March 03, 2012, 09:53:19 AM
Mark,

I have embedded my gauges within one of my web pages http://www.paulwilman.com/live weather.htm (http://www.paulwilman.com/live weather.htm). When I embed the code into my website the gauges become all squashed together. I was wondering what part of the code controls the space and placement of the dials? I do have some of my own CSS in the page that controls the header.

Paul
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on March 03, 2012, 10:21:25 AM
Code is the same as you posted and I am using Version 0.10.2b.
Translations for Falling and Winddirections are present and correct.
Anything else I can look at?

This is a problem with the windspeed dial, not the winddirections dial, winddirection is translated here.
Does that make any difference?

Check in languages.js - the changeLang() function
Line 818 should read:
Code: [Select]
    if (gauge_wdir) {
gauge_wdir.setPointSymbols(LANG.compass);
        g_dir.titles = [LANG.latest_web, LANG.tenminavg_web];
        gauge_wdir.setLcdTitleStrings(g_dir.titles);
doDir();
}
This is what changes the Wind Direction LCD titles.

Also check steelseries.min.js is version 0.10.2b - that version of the library implemented the .setLcdTitleStrings() method - (actually it may have been 0.10.2a)
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 03, 2012, 03:28:09 PM
I'm not sure what you have done Keith, but when it reaches the timeout limit, it displays the timeout message, but then the whole page reloads itself!

Ah, I see, in your HTML header you have:
<meta http-equiv="Refresh" content="300">

So the page reloads every 300 seconds and of course restarts the timer.

Argh! I forgot all about that line of code in my personal "template"! Thanks for doing my debug
for me...  :oops: I'll fix that and then try again.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on March 03, 2012, 05:06:06 PM
I try and identify in the readme file which files have been updated in each release. If a file isn't mentioned as 'updated' then 99% of the time it hasn't - occasionally I make a tweak and forget to edit the readme as I go along.

Can you tell me what settings you have to change each time to gauges.js for WD? I understand there is:
 - The realtime file (not a lot I can do about that)
 - The graphs location - that varies for each user
 - The graph image names - again unlike Cumulus WD does not have a 'standard' set of default images, everybody is rolling their own.

It would be possible to pull out all the 'settings' variables from the top of gauges.js and place them in a separate file. I can see the advantage of this, but there are also down sides: it is another file for me to maintain and keep in synch, and it is another file for the browser to download slowing page delivery.

Hopefully (ha!  :roll:) the recent rash of releases will stop or at least slow now as the 1.6 version stabilises. A great deal of code changed in 1.6.0 to better accommodate WD. My focus is now drifting to other things for a while - like the core SteelSeries library which I want to improve in a number of ways - and I only intend to bug fix this weather page for the time being (which was always meant to be a demonstration of how you could use the SS library, but sort of grew into something that most people are using almost as-is). Oh and my own gauges page is still stuck back on a 1.5.2beta release!  :oops:

Some people on the Cumulus forum are playing around with the linear and thermometer bulb gauges (only available in the full SS library, not the cut down for size version in the gauges-ss zip), and I posted instructions on how to create a Wind 'Radar' gauge using the SS library - which a couple people took up and managed to get going.

Those of us WD users who have successfully implemented the Steelseries Gauges now pretty much know what changes to cut and paste into any new version of gauges.js, and you've spotlighted them.  The only suggestion I have is that you include, in addition to the 'var g_realTimeURL' clientrawextra.txt line, a commented out 'var g_tipImgs' section with the common images that WD wxgraph users would employ:
Code: [Select]
var g_tipImgs = [["temp+hum_24hr.php", "indoor_temp_24hr.php"],        // Temperature: outdoor, indoor
                 ["temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php"],  // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                 "rain_24hr.php",                                       // Rainfall
                 "rain_1hr.php",                                        // Rainfall rate
                 ["humidity_1hr.php", "humidity_7days.php"],            // Humidity: outdoor, indoor
                 "baro_24hr.php",                                       // Pressure
                 "windgust_1hr.php",                                    // Wind speed
                 "winddir_24hr.php",                                     // Wind direction
                                                                                      //Only one each of the following two alternative settings for UV and Solar should be enabled:
//               "uv_24hr.php",                                            // UV if  UV sensor is present
                 null,                                                              // UV
//              "solar_24hr.php"                                          // Solar rad if Solar sensor is present
                 null                                                               // Solar rad
                ];
would be a suggestion.

Many thanks for all your hard work!
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 03, 2012, 06:41:29 PM
Those of us WD users who have successfully implemented the Steelseries Gauges now pretty much know what changes to cut and paste into any new version of gauges.js, and you've spotlighted them.  The only suggestion I have is that you include, in addition to the 'var g_realTimeURL' clientrawextra.txt line, a commented out 'var g_tipImgs' section with the common images that WD wxgraph users would employ:
Code: [Select]
var g_tipImgs = [["temp+hum_24hr.php", "indoor_temp_24hr.php"],        // Temperature: outdoor, indoor
                 ["temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php"],  // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                 "rain_24hr.php",                                       // Rainfall
                 "rain_1hr.php",                                        // Rainfall rate
                 ["humidity_1hr.php", "humidity_7days.php"],            // Humidity: outdoor, indoor
                 "baro_24hr.php",                                       // Pressure
                 "windgust_1hr.php",                                    // Wind speed
                 "winddir_24hr.php",                                     // Wind direction
                                                                                      //Only one each of the following two alternative settings for UV and Solar should be enabled:
//               "uv_24hr.php",                                            // UV if  UV sensor is present
                 null,                                                              // UV
//              "solar_24hr.php"                                          // Solar rad if Solar sensor is present
                 null                                                               // Solar rad
                ];
would be a suggestion.

Many thanks for all your hard work!

Yes, that just about covers it, plus minor changes within ddimgtooltip.css

Cheers,
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 03, 2012, 09:00:04 PM
Code is the same as you posted and I am using Version 0.10.2b.
Translations for Falling and Winddirections are present and correct.
Anything else I can look at?

This is a problem with the windspeed dial, not the winddirections dial, winddirection is translated here.
Does that make any difference?
I've  had another look and cannot see a problem in the code, can you provide a link to your page again please?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 03, 2012, 09:01:28 PM
Those of us WD users who have successfully implemented the Steelseries Gauges now pretty much know what changes to cut and paste into any new version of gauges.js, and you've spotlighted them.  The only suggestion I have is that you include, in addition to the 'var g_realTimeURL' clientrawextra.txt line, a commented out 'var g_tipImgs' section with the common images that WD wxgraph users would employ:
Code: [Select]
var g_tipImgs = [["temp+hum_24hr.php", "indoor_temp_24hr.php"],        // Temperature: outdoor, indoor
                 ["temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php","temp+dew+hum_1hr.php"],  // Temperature: dewpnt, apparent, windChill, HeatIndx, humidex
                 "rain_24hr.php",                                       // Rainfall
                 "rain_1hr.php",                                        // Rainfall rate
                 ["humidity_1hr.php", "humidity_7days.php"],            // Humidity: outdoor, indoor
                 "baro_24hr.php",                                       // Pressure
                 "windgust_1hr.php",                                    // Wind speed
                 "winddir_24hr.php",                                     // Wind direction
                                                                                      //Only one each of the following two alternative settings for UV and Solar should be enabled:
//               "uv_24hr.php",                                            // UV if  UV sensor is present
                 null,                                                              // UV
//              "solar_24hr.php"                                          // Solar rad if Solar sensor is present
                 null                                                               // Solar rad
                ];
would be a suggestion.

Many thanks for all your hard work!
OK, no problem, I can do that.
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on March 03, 2012, 09:10:15 PM
I've  had another look and cannot see a problem in the code, can you provide a link to your page again please?

Windspeeddial shows no translation for winddirection.
Winddirectiondial shows translation for winddirection.
Barometerdial shows no translations for trends.
Rising - Stijgend
Steady - Constant
Falling - Dalend

Translations for winddirections (Windrichting) in Dutch are as follows:

Code: [Select]
coords : ["N", "NNO", "NO", "ONO", "O", "OZO", "ZO", "ZZO", "Z", "ZZW", "ZW", "WZW", "W", "WNW", "NW", "NNW"],
    compass : ["N", "NO", "O", "ZO", "Z", "ZW", "W", "NW"],

Gauges (http://www.westland-depoel.nl/vantagevue/meters/meters.htm)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 03, 2012, 09:25:29 PM
Right got it now.

The Wind Direction gauges is showing "ZZW" at the moment which is correctly translated.

The Wind Speed gauge is showing "SW" at the moment which is not translated.

The cause:

The wind direction gauge uses degree values for the 'latest' and 'average' values, which I then convert into localised compass points.

The wind speed gauge gets todays max gust direction as a compass point in the ccr file, so it appears in the language that WD is using.

Cumulus only supplies the max gust direction as a compass point, I'd have to check if WD can supply in degrees.
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 03, 2012, 11:19:46 PM
Argh! I forgot all about that line of code in my personal "template"! Thanks for doing my debug
for me...  :oops: I'll fix that and then try again.

-Keith

OK, removing that line has solved the problem; the timeout works as programmed.

Thanks!

-Keith
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on March 05, 2012, 04:48:59 AM
Mark,

New one for you!! Brian is working very hard to improve the Mac version of WD. I use a Mac and currently use Virtual Box to run windows on my machine. Anyway very recently Brian assisted me with getting the mac version running very well. If I run it however it breaks my main page because something with the ccr is getting messed up. Here is what it produces....

Code: [Select]
{"date":"11:43 PM","dateFormat":"m/d/y%","temp":"35.6","tempTL":"35.6","tempTH":"36.3","intemp":"70.","dew":"19.","dewpointTL":"18.1","dewpointTH":"21.4","apptemp":"30.4","apptempTL":"28.8","apptempTH":"33.8","wchill":"33.0","wchillTL":"30.1","heatindex":"35.6","heatindexTH":"36.3","humidex":"29.2","wlatest":"7.0","wspeed":"3.3","wgust":"12.0","wgustTM":"12.0","bearing":"297","avgbearing":"274","press":"29.677","pressTL":"29.642","pressTH":"29.677","pressL":"29.642","pressH":"29.677","rfall":"0.00","rrate":"0.00","rrateTM":"0.000","hum":"51","humTL":"48","humTH":"55","inhum":"28","SensorContactLost":"0","forecast":"","tempunit":"F","windunit":"mph","pressunit":"inHg","rainunit":"in","temptrend":"-0.6","TtempTL":"11:39 PM","TtempTH":"10:03 PM","TdewpointTL":"9:53 PM","TdewpointTH":"11:24 PM","TapptempTL":"10:04 PM","TapptempTH":"10:45 PM","TwchillTL":"10:03 PM","TheatindexTH":"10:03 PM","TrrateTM":"","ThourlyrainTH":"%maxhourrnt%","LastRainTipISO":"----","hourlyrainTH":"%maxhourrn%","ThumTL":"9:53 PM","ThumTH":"11:24 PM","TpressTL":"9:53 PM","TpressTH":"11:42 PM","presstrend":"Rising","presstrendval":"+0.081 ","Tbeaufort":"%bftmaxgustlast24hrnum%","TwgustTM":"11:40 PM","windTM":"12.0","bearingTM":"WSW","timeUTC":"2012,03,05,04,43,36","BearingRangeFrom10":"%mindir10minute%","BearingRangeTo10":"%maxdir10minute%","UV":"0.0","SolarRad":"0","CurrentSolarMax":" 0","SolarTM":"0","version":"10.37L","build":"97","ver":"6"}
So I see the date formate problem again which I'm sure Brian can fix. Also the time of last rain leaves a blank spot. Can you see any way to quick fix this?

Thanks,

Jack
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on March 05, 2012, 05:09:28 AM
What do i need to fix re which custom tag re mav version?
Title: Re: Steelseries Gauges for WD
Post by: BfdWx on March 05, 2012, 05:13:05 AM
The %datefmt% and %dateoflastrainalways%%timeoflastrainalways% and I'm not sure yet but possibly the forecast tag.

Jack
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 05, 2012, 09:22:15 AM
The %datefmt% and %dateoflastrainalways%%timeoflastrainalways% and I'm not sure yet but possibly the forecast tag.

Jack
From that ccr, the following tags either do not work, or look a little 'odd' (missing decimal)

Code: [Select]
"dateFormat":"m/d/y%",          // %datefmt%
"intemp":"70.",                 //%indoortemp%
"dew":"19.",                    // %dew%
"forecast":"",                  // %dailywarning/forecast%
"TrrateTM":"",                  // %maxrainratetime%
"ThourlyrainTH":"%maxhourrnt%",
"LastRainTipISO":"----",        // %dateoflastrainalways%%timeoflastrainalways%
"hourlyrainTH":"%maxhourrn%",
"Tbeaufort":"%bftmaxgustlast24hrnum%",
"BearingRangeFrom10":"%mindir10minute%",
"BearingRangeTo10":"%maxdir10minute%",
Title: Re: Steelseries Gauges for WD
Post by: aggets on March 05, 2012, 12:59:51 PM
Just an FYI it is very easy to change the colors and styles of the gauge. Go to this site and you can try various combinations!
http://weather.wilmslowastro.com/gaugesB/gauges.htm

Then just change the settings you wish to in gauges.js

Jack

Hi

Does anybody know if there is another option for configuring? This link http://weather.wilmslowastro.com/gaugesB/gauges.htm (http://weather.wilmslowastro.com/gaugesB/gauges.htm) appears to be broken.

Thanks Andy
Title: Re: Steelseries Gauges for WD
Post by: ThorntonWeather on March 05, 2012, 01:34:09 PM
Andy,

See here: http://www.wilmslowastro.com/steelseries/demoRadial.html

   Tony
Title: Re: Steelseries Gauges for WD
Post by: aggets on March 05, 2012, 02:10:31 PM
Andy,

See here: http://www.wilmslowastro.com/steelseries/demoRadial.html

   Tony

Thanks Tony
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on March 05, 2012, 05:21:36 PM
Do you think? I had a play & developed some blacked themed gauges, but I felt they weren't as clear & easy to read, so I decided to stick with your standard ones. Maybe I'll have another look.

I just finished playing around with the look of my gauges and settled on a GLOSSY_METAL frame, a TURNED background, a BLACK TYPE11 pointer with a STANDARD lcd color that I think fit in with my gray and black theme a little better than the standard ones:  http://www.gwwilkins.org/gauges-ss.php (http://www.gwwilkins.org/gauges-ss.php).  It's a matter of taste after all, so if I can't please everybody, I should at least be able to please myself.  YMMV.
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 05, 2012, 08:08:06 PM
Andy,

See here: http://www.wilmslowastro.com/steelseries/demoRadial.html

   Tony

But what happened to this page:

http://weather.wilmslowastro.com/gaugesB/gauges.htm

I found it much more helpful than the "demoRadial.html" page for playing with different settings;
there were more settings that could be adjusted.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 05, 2012, 08:24:22 PM
Hi Keith, I took that page down because it was a bit broken and it was running on my laptop over my ADSL link. I'll see if I can resurrect it and put it on my hosted web site...
Title: Re: Steelseries Gauges for WD
Post by: KeithW on March 05, 2012, 09:02:50 PM
Hi Keith, I took that page down because it was a bit broken and it was running on my laptop over my ADSL link. I'll see if I can resurrect it and put it on my hosted web site...

Thanks, Mark.  :D
Title: Re: Steelseries Gauges for WD
Post by: administrator on March 05, 2012, 11:10:57 PM
I've been advised by the originator of this thread that he doesn't want it to be moved from this forum. Sorry if it's not with the other SteelSeries posts.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on March 05, 2012, 11:14:52 PM
That seems rather counter intuitive...
Title: Re: Steelseries Gauges for WD
Post by: administrator on March 05, 2012, 11:20:02 PM
I can't please all of the people all of the time. If ALL the people involved in SteelSeries Gauges for WD can agree where stuff should go I can put it there. That agreement doesn't exist at this time.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on March 05, 2012, 11:24:58 PM
That seems rather counter intuitive...

Quite...shouldn't all subsequent posters be directed to the new Graphics Child Board?  The announcement you had up served that function perfectly.

Somehow the 74 pages of posts has shrunk to 25, which is good, but still unwieldy.

Edit:  It's my memory that' shrunk while wrestling with wxsim3in1!  That's the long thread...sorry.
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on March 07, 2012, 08:58:42 PM
Saratoga Templates question!

Can someone help me please with setting up the gauges on a page similar like this one, I can't figure out how to do that.
I have the saratoga templates running but don't know how to get the gauges on a page.

http://tiggrweather.net/wxgauges.php

TIA
Title: Re: Steelseries Gauges for WD
Post by: Bunty on March 12, 2012, 07:35:20 PM
Wow, those gauges look cooler and more elaborate than ones offered by WD Live.  I may want to add a page like it, too.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 12, 2012, 09:53:31 PM
Wow, those gauges look cooler and more elaborate than ones offered by WD Live.  I may want to add a page like it, too.

Latest version with another gauge added at http://tiggrweather.net/wxgauges.php, Bunty. Mark did a great job with the scripts.
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on March 12, 2012, 10:22:00 PM
Wow, those gauges look cooler and more elaborate than ones offered by WD Live.  I may want to add a page like it, too.

Here is where all of the SteelSeries Gauge action is, Bunty: http://www.weather-watch.com/smf/index.php/board,61.0.html (http://www.weather-watch.com/smf/index.php/board,61.0.html)
Title: Re: Steelseries Gauges for WD
Post by: iszatso on March 16, 2012, 12:24:00 AM
Able to get the Gauges working and the graphs on hovering...How do I change the default colors for the graphs? and give them a raised appearance in jgraphs? is that in the config .txt file?. Brain going soft looking at this stuff..

http://iszatso.net/weather/gauges-ssT.htm

TIA. BRGDS,

patrick

Title: Re: Steelseries Gauges for WD
Post by: gwwilk on March 16, 2012, 02:10:05 AM
Able to get the Gauges working and the graphs on hovering...How do I change the default colors for the graphs? and give them a raised appearance in jgraphs? is that in the config .txt file?. Brain going soft looking at this stuff..

http://iszatso.net/weather/gauges-ssT.htm

TIA. BRGDS,

patrick

In /wxgraphs/graphsconfig.php you'll find this line:  $margincolour = "(somecolor)"; (mine is set to "lightgray").
Change it to the color of your choice, and that should do it.  I think I finally noticed the graphs' raised appearance on my site after I validated via CS3 and had to create a bunch of 'gauges_' specific copies of my Settings.php, top.php, header.php, footer.php, menubar.php, and common.php which I then modified in order to finally validate for HTML5 compatibility.  The gauges use the UTF-8 charset.  I just checked the compliance of my page, and there's only the warning that the checker for HTML5 is experimental, so I guess I haven't messed it up lately. :)  Your graphs have the shadows now.
Title: Re: Steelseries Gauges for WD, jgraph drop shadows.
Post by: iszatso on March 17, 2012, 03:36:36 PM
I also noticed this post in the Jgraph setup section....which helped also, as your comment did.

"are you running 3.5?
if so:
remove "required_once('jpgraph_theme.inc.php') from the jpgraph.php script.
Then you will get the drop shadows."



Not sure if you already had done this. After I did the above all was good.

BRGDS,

patrick
Title: Re: Steelseries Gauges for WD, not updating
Post by: iszatso on May 03, 2012, 07:16:10 AM
Recently fiddled with somthing in WD. Now my steel gauges aren't updating. Hadn't touched the gauges though. What might it be?  iszatso.net/weather/wxsteelgauges.php

TIA,

BRGDS,

patrick
Title: Re: Steelseries Gauges for WD, resolved
Post by: iszatso on May 03, 2012, 08:42:50 AM
don't upload the custom file from two places...
Title: Re: Steelseries Gauges for WD
Post by: iszatso on May 03, 2012, 03:58:26 PM
and never delete the customclientrawlocal file from the webfiles directory. These self responses may help another neophyte out when they wrap things around the axle.

p.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 10, 2012, 03:54:26 AM
Hey Mark,

Thanks for the update today. Works fine.

Is there any way to get the wind speed to display the tenths? Right now it's just the even mph (2.0, 3.0, etc.).

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on May 10, 2012, 04:33:09 AM
note that your weather station is not accurate to more than 1 mph for windspeed though
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 10, 2012, 06:49:28 AM

Is there any way to get the wind speed to display the tenths? Right now it's just the even mph (2.0, 3.0, etc.).

Thanks.
It displays what it it is given, mine displays in tenths, so as Brian has stated your station must only be supplying whole numbers. You can change the gauge config so that the LCD only displays whole numbers if that looks cleaner...

lcdDecimals: 0,
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 10, 2012, 02:46:41 PM
note that your weather station is not accurate to more than 1 mph for windspeed though

Understood, but it just 'looks' better.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 10, 2012, 02:50:16 PM
It displays what it it is given, mine displays in tenths, so as Brian has stated your station must only be supplying whole numbers. You can change the gauge config so that the LCD only displays whole numbers if that looks cleaner...

lcdDecimals: 0,

My main site page displays mph in tenths (Davis VP2+ with Scott's alt dashboard), so it's getting it from somewhere. Will have to dig into that code and see where it's coming from.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 10, 2012, 03:12:19 PM
Have a look in your ccr file, is it in tenths there, if not then the tag may be the problem.
Title: Re: Steelseries Gauges for WD
Post by: niko on May 10, 2012, 03:13:38 PM
My main site page displays mph in tenths (Davis VP2+ with Scott's alt dashboard), so it's getting it from somewhere. Will have to dig into that code and see where it's coming from.

Thanks.

Don't forget that the initial page load wind data loaded from the clientraw.txt will have been converted from knots, so it's likely to have decimals in mph, and any calculated average will also result in decimals.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 10, 2012, 10:52:14 PM
Have a look in your ccr file, is it in tenths there, if not then the tag may be the problem.

"wspeed":"%avgspd%" passes a decimal - "wspeed":"5.6". The other wind items are all "x.0". I assume function doWind() needs a little massage, but that is beyond my knowledge (much is these days).

Thoughts appreciated.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 10, 2012, 10:53:51 PM
Don't forget that the initial page load wind data loaded from the clientraw.txt will have been converted from knots, so it's likely to have decimals in mph, and any calculated average will also result in decimals.

Understood.

Thanks, niko.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on May 10, 2012, 10:54:21 PM
the averaging produces the decimal place
(it could be argued if that should be like that or not)
there are tags with no decimal from memory
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 11, 2012, 06:43:21 AM
"wspeed":"%avgspd%" passes a decimal - "wspeed":"5.6". The other wind items are all "x.0". I assume function doWind() needs a little massage, but that is beyond my knowledge (much is these days).

Thoughts appreciated.

wspeed = 10 minute average windspeed = green sector on gauge
wlatest = latest wind speed reading = gauge needle & digital readout

So as Brian says the 10 minute average is calculated to one decimal place which makes sense to me, but the readings from your station are in 1 mph increments.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 11, 2012, 10:48:13 PM
Mark,

0.11.4 will not unpack for me. Downloaded twice, but it just locks up my unzipper.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 11, 2012, 10:50:33 PM
wspeed = 10 minute average windspeed = green sector on gauge
wlatest = latest wind speed reading = gauge needle & digital readout

Thank you! That was exactly the definition this old mind needed.

Now to dig into the tags list.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 11, 2012, 11:13:39 PM
Mark,

0.11.4 will not unpack for me. Downloaded twice, but it just locks up my unzipper.

Thanks.
John, for some reason the forum does not like my zip files, I have created it using two different software (WinZip & Windows Explorer), and whilst both files look the correct size, they have zero files listed in the contents when you download them again. I have uploaded the same file to the Cumulus forum and it works fine. So I am at a bit of a loss now. ](*,)
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on May 11, 2012, 11:23:39 PM
But it downloaded fine for me and runs great.   :dontknow:

- Jim
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 11, 2012, 11:26:05 PM
Jim, could you try and download and open it again now for me please, both the computers I have powered on at the moment say it is corrupt when I download it.
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on May 11, 2012, 11:32:21 PM
Mark,

Sure thing, just did and opened both files with UltraEdit and they look just fine here.

- Jim
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 11, 2012, 11:34:40 PM
Weird, I wonder if there is a corrupt copy cached somewhere?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 12, 2012, 12:35:37 AM
Mark,

Jim kindly sent me a copy of his and it worked fine.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 12, 2012, 03:43:41 AM
Mark,

Keep forgetting to ask this. Inside /scripts/ is another /scripts/. The first has all the needed goodies, and the second contains only another copy of steelseries.js. Is it really needed?

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: KeithW on May 12, 2012, 06:21:54 PM
Weird, I wonder if there is a corrupt copy cached somewhere?

Downloaded and upzipped just fine for me, too. No problems whatsoever.

-Keith
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 12, 2012, 10:42:58 PM
Mark,

Keep forgetting to ask this. Inside /scripts/ is another /scripts/. The first has all the needed goodies, and the second contains only another copy of steelseries.js. Is it really needed?

Thanks.
Nope, that was included by error. I'll clean everything up for the next release.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on May 13, 2012, 05:30:24 AM
Nope, that was included by error. I'll clean everything up for the next release.

Tank U!   :D
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on May 17, 2012, 08:49:43 PM
Just downloaded the 0.11.4-weather.zip update & I'm being told there are no files to extract so I am unable to insall it...

Any ideas?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 17, 2012, 09:19:48 PM
Simon, try downloading the full zip file from the start of the thread, I have put the updated script in the full version:  gauges-ss_v1-6-6b.zip

For some reason the forum servers do not like that update zip file.
Title: Re: Steelseries Gauges for WD
Post by: SpireWeather on May 17, 2012, 09:22:42 PM
Thanks Mark. Is that the only file that's changed since the original 1.6.6? What's the actual file I need there?

Cheers,
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 17, 2012, 09:35:30 PM
just the "steelseries.min.js", I've actually made a few more updates since then but I'll save them up for a while - busy working away on version 2 of the weather gauges and updating the SteelSeries library as I find minor issues.
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on September 03, 2012, 08:13:51 AM
Hi all,

after much research, I found this new version of the gauges, I downloaded the package followed the directions on the website to display weather, only problem, and 'that weather does not display the file conversion customclientrawlocal.txt ---> customclientraw.txt, despite the file customclientrawlocal.txt and 'put in the same directory as the file Clientraw ...

Can you help me?!?

For now I only see the gauges but are not entered the data ...

Thanks in advance ....

mark
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on September 03, 2012, 09:48:26 AM
have you set to create a customclientraw in the webfiles/web page setup /real time ftp setup in WD?
also make sure to not have your windows folder options set to hide known file extensions
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on September 03, 2012, 10:45:10 AM
We have followed the readme and 'weather display so I set as shown in the attached image, and' correct?!?

I do not understand why 'does not convert the file .... customclientrawlocal.txt

here is the test page with the gauges still ... http://www.ombarcellonapg.tk/wdisplay/Tachimetri/gauges-ssT.htm

(http://i49.tinypic.com/1pw9ph.png)
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on September 03, 2012, 12:57:43 PM
It seems to have started to work as time to update and upload I put:

Update: 5sec Uploads: 10 sec and 'right?!?

As regards the rest of the graphics, can be able to put the pressure gauges such as those of weatherc?? Could someone kindly help me do that?

http://www.nordicweather.net/index.php?en

Thanks in advance.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on September 03, 2012, 06:46:02 PM
ah,,,so having 60 seconds did not work...
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on September 03, 2012, 07:34:22 PM
how many seconds I have to put in your brian?

To customize the inside of the speedometer as to Henkka as I do!?
Title: Re: Steelseries Gauges for WD
Post by: clement104 on October 16, 2012, 08:30:38 AM
Hi,

I have some troubles to run those scripts.
My customclientraw.txt file is uploaded into /html/wdlive so I put on line 21
Code: [Select]
    g_realTimeURL           = "../../html/wdlive/customclientraw.txt"; indeed, the gauges scripts are in /test/v3.

When I go on http://www.meteomelin.be/test/v3/gauges-ssT-fr.html everything is working but the autoupdate failed everytime. After that, it is impossible for me to go on www.meteomelin.be I have to reboot my server.

Any idea of what there is?

Sorry for my English :)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on October 16, 2012, 02:55:07 PM
Sorry, I get a 'page not found - 404' error on your link.
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on October 16, 2012, 06:10:55 PM
Sorry, I get a 'page not found - 404' error on your link.

This is the correct link.It's .htm instead of .html

http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on October 16, 2012, 10:31:58 PM
I really do not know, the script makes the Ajax call to GET the customclientraw.txt file  - with a cache buster string appended, such as...

http://www.meteomelin.be/html/wdlive/customclientraw.txt?1350426409990

And does not receive any response from your server.

Once you get the server back up  :oops:, try putting the following url into your browser and see if it works

http://www.meteomelin.be/html/wdlive/customclientraw.txt

if that works, then try the full url in your browser and see what happens:

http://www.meteomelin.be/html/wdlive/customclientraw.txt?1350426409990


This may show if the problem is just fetching the txt file (is your Apache configured to serve the .txt MIME type?), or if the cache buster is causing the problem.
Title: Re: Steelseries Gauges for WD
Post by: niko on October 16, 2012, 10:50:05 PM
The url works for me with or without buster.
Title: Re: Steelseries Gauges for WD
Post by: clement104 on October 17, 2012, 02:39:14 PM
Hello !

Here is what I get by going on http://www.meteomelin.be/html/wdlive/customclientraw.txt?1350426409990

Code: [Select]
{"date":"16:38","dateFormat":"d/m/y","temp":"14.9C","tempTL":"7.2C","tempTH":"15.6C","intemp":"21.5","dew":"12.8C","dewpointTL":"6.6 C","dewpointTH":"12.9 C","apptemp":"14.7","apptempTL":"5.9","apptempTH":"16.2","wchill":"14.9C","wchillTL":"6.5 C","heatindex":"14.9C","heatindexTH":"15.6 C","humidex":"17.6C","wlatest":"6.4 km/h","wspeed":"5.0","wgust":"6.4 km/h","wgustTM":"35.4 km/h","bearing":"188 ","avgbearing":"185","press":"1007.1 hpa","pressTL":"1005.4 hPa","pressTH":"1010.9 hPa","pressL":"0.0","pressH":"1100.6","rfall":"  1.0 mm","rrate":"0.0","rrateTM":"0.0","hum":"87","humTL":"83","humTH":"96","inhum":"51","SensorContactLost":"0","forecast":"mostly cloudy and cooler. precipitation possible within 12 hours, possibly heavy at times. windy.","tempunit":"C","windunit":"kmh","pressunit":"hPa","rainunit":"mm","temptrend":"-0.4 C/last hr","TtempTL":"02:14","TtempTH":"15:49","TdewpointTL":"02:14","TdewpointTH":"15:49","TapptempTL":"03:02","TapptempTH":"15:59","TwchillTL":"15:49","TheatindexTH":"15:49","TrrateTM":"08:23","ThourlyrainTH":"08:17","LastRainTipISO":"17/10/2012 08:56","hourlyrainTH":"0.8","ThumTL":"12:52","ThumTH":"00:00","TpressTL":"09:36","TpressTH":"00:49","presstrendval":"+0.3 hPa ","Tbeaufort":"5","TwgustTM":"11:45","windTM":"14.5 km/h","bearingTM":"119","timeUTC":"2012,10,17,14,38,12","BearingRangeFrom10":"109","BearingRangeTo10":"275","UV":"0.0","SolarRad":"105","CurrentSolarMax":"0","SolarTM":"257","Solardaykw" : "0.0kwh","Solarmnthkw" : "0.0kwh","Solaryrkw" : "81.4kwh","Solardesc" : "Day time","version":"10.37R","build":"37","ver":"7"}
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on October 19, 2012, 08:26:21 PM
works OK for me:
http://www.meteomelin.be/test/v3/gauges-ssT-fr.htm
Title: Re: Steelseries Gauges for WD
Post by: linuxfreak on November 15, 2012, 06:20:21 PM
Is there a variable to set the scroll speed for the ticker display?  Would like to speed it up a bit so the full  forecast text gets displayed before the page refreshes.

George
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on November 15, 2012, 06:27:08 PM
No variable, you will have to edit the steelseries.js file to alter this, I don't have the details with me, but the easiest way would be to increase the number of pixels per update, I think the current value is set to 2.
Title: Re: Steelseries Gauges for WD
Post by: linuxfreak on November 15, 2012, 08:39:17 PM
Hi Mark,

Would this be the section in question?

Code: [Select]
        var animate = function () {
            if (scrolling) {
                if (scrollX > imageWidth) {
                    scrollX = -textWidth;
                }
                scrollX += 2;
                scrollTimer = setTimeout(animate, 60);
            } else {
                scrollX = 0;
            }
            self.repaint();
        };

Then I guess it's the " scrollX += 2;" that needs modifying?

George
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on November 15, 2012, 09:02:15 PM
That's the jigger  :D
Title: Re: Steelseries Gauges for WD
Post by: runarbg on December 20, 2012, 05:27:07 PM
I have started looking at the Steelseries Gauges for WD. I really like them and want to implement them. But most of my gauges show "NAN". I guess that's because my customclientraw.txt includes units? I also know that I can tell WD to NOT include the units, but then that will be for all my cusom files? And I have some files where I need the units.

Is there a solution for this problem so I can get the gauges working?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 20, 2012, 06:15:34 PM
Is that with version 2.0?
Title: Re: Steelseries Gauges for WD
Post by: runarbg on December 20, 2012, 07:34:26 PM
Yes, I'm trying V2.0. I know it's a beta, but I wanted to try it out and hoping it was out of beta when I'm finished with my gauges page.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 20, 2012, 07:37:24 PM
there are alot of equivalent custom tags with no units though you could try and use

but also though if you set to have not units, then what is the problem?
(i.e you just add in the units where needed elsewhere you have custom tags)
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on December 20, 2012, 07:41:17 PM
Yes, I'm trying V2.0. I know it's a beta, but I wanted to try it out and hoping it was out of beta when I'm finished with my gauges page.

No beta anymore, V2.0 has just been released.
http://www.weather-watch.com/smf/index.php?topic=54945.new;topicseen#new
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 20, 2012, 07:43:02 PM
Thanks Brian, I'll see if I can replace some of the tags in ccr file with 'no units' equivalents....

runarbg: Version 2.0 is now 'live', and there was a bug in the handling of values with units in the previous beta that is now fixed. Maybe you can give that a try?
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 20, 2012, 07:52:54 PM
the other option is I add to WD a setting to create the needed customclientraw.txt file for the steel gauges in the format need (i.e no units, and no template file needed)
if someone could email me the customclientrawlocal.txt)
Title: Re: Steelseries Gauges for WD
Post by: runarbg on December 20, 2012, 08:40:57 PM
Thanks, I hadn't noticed that V2 was out of beta. I installed it now, and don't get any gauges. I'm sure I have done something wrong. I will check more and come back!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 20, 2012, 08:47:57 PM
the other option is I add to WD a setting to create the needed customclientraw.txt file for the steel gauges in the format need (i.e no units, and no template file needed)
if someone could email me the customclientrawlocal.txt)
Nice offer Brian, but the only problem with that is that if I make a change in the gauges that needs something adding to the ccr it means another WD release too.
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on December 21, 2012, 03:59:38 AM
Thanks, I hadn't noticed that V2 was out of beta. I installed it now, and don't get any gauges. I'm sure I have done something wrong. I will check more and come back!

Same thing here, I have set up everything like before and I don't get any gauges also.
Title: Re: Steelseries Gauges for WD
Post by: oz7mks on December 21, 2012, 07:41:46 AM
Same thing here, I have set up everything like before and I don't get any gauges also.

Hi...

Also no gauges here, I had to revert to the old gauges.js (from beta5), to get them to show...
Title: Re: Steelseries Gauges for WD
Post by: runarbg on December 21, 2012, 10:36:35 AM
Mark:
Is something wrong with the latest 2.0 version? I'm still not able to get any gauges. I have no problems getting it with the beta version. Now I tested installing from scratch both the latest version and beta. I did only the required changes for both versions:
That's all. When I do it with the beta version it's working. With the final version I don't get any gauges.
NB: I see that customclientraw.txt is uploaded for both versions and seems to be correct!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 21, 2012, 01:25:33 PM
Hmm, this is odd, could someone leave a 2.0 page up (a test version is fine) so I can take a look at what is going wrong?

Edit:
Ah, gauges.js, line 220, there is a missing comma...
Code: [Select]
                    (config.showSolarGauge ? 'solar_24hr.php' : null)   // Solar rad graph if Solar sensor is present | Solar rad=null if no Solar sensorshould be...
Code: [Select]
                    (config.showSolarGauge ? 'solar_24hr.php' : null),   // Solar rad graph if Solar sensor is present | Solar rad=null if no Solar sensor
It only affects WD, so the Cumulus users haven't caught it.

I'll get a 2.0.1 release out if that fixes for everyone.
Title: Re: Steelseries Gauges for WD
Post by: runarbg on December 21, 2012, 01:41:45 PM
That's great, Mark. I inserted the comma, and everything is working :) Thanks!

I can also confirm that customclientraw.txt WITH units is now working just fine :)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 21, 2012, 01:44:35 PM
OK, thanks for letting me know (it also worked on Brian's test page when I edited the script on the fly in the debugger), I'll give it a bit longer to see if any other issues arise then push out 2.0.1
Title: Re: Steelseries Gauges for WD
Post by: runarbg on December 21, 2012, 04:36:56 PM
One question:
Is it a way to display the date and time for the last update? And update it when the gauges update. I made a tag in customclientraw.txt file made up of the WD tags %date% and %timesec%. That works fine when I open the page, but never updates. Is it an easy way to make it update?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 21, 2012, 04:42:04 PM
The easist way would be to put the text in a <span> on your page, and update that each time new data is fetched.

So, somewhere in your HTML...

<span id="lastUpdate"></span>

and in the gauges.js   processdata() function, use something like

$('#lastUpdate').html = data.date;
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 21, 2012, 09:44:22 PM
Working here, too, Mark (but boy, did that ever give me a headache!).

http://tiggrweather.net/wxgauges.php

Thanks for the update!
Title: Re: Steelseries Gauges for WD
Post by: saratogaWX on December 21, 2012, 11:59:15 PM
Great job, Mark!  I have it working on my site too  http://saratoga-weather.org/gauges.php

Best regards,
Ken
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 22, 2012, 01:25:10 AM
working great here too
http://www.weather-display.com/windy/gb/gauges-ss.html
(just a test , proof of concept page)
:)
Title: Re: Steelseries Gauges for WD
Post by: Weerstation on December 22, 2012, 06:47:07 AM
Working here, too, Mark (but boy, did that ever give me a headache!).

http://tiggrweather.net/wxgauges.php

Thanks for the update!

If you take a close look at the row in the middle, it is slightly off to the left compared to the other rows.
I am having the same problem and I can't figure out why.
I fixed it with adding &nbsp in the code but I don't know if this is the right way to do.
Does anyone know how to fix this properly?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 22, 2012, 04:49:32 PM
Hi Mark,

Trouble in gaugesville (please see attachment)...

From the top down, the forecast and time are frozen as shown. The 3 gauges in the first row appear to be correctly recording changes. However, wind speed and direction are frozen at N and 000 (which does correspond to the physical position on the equipment), and according to my local WD graph there has not been any actual change in this for over 2 hours (I think this is the key - see note below). Wind rose dial is missing completely, and hovering over the empty spot (or over any gauge for that matter) shows an empty '?' graph window. Baro is correct, but both solar and UV show 0, which is incorrect because the sun is up (so much for the Mayans!) and the VP2 console is showing non-zero readings for both.

As I was typing this there was a wind speed 'burst' of 1 mph along with a few degrees change in direction. The second that happened everything on the gauges page came back to life, including the reappearance of the rose. Wind speed has gone back to 0, but the direction is still the new 009.

So - does this mean that after a prolonged period of no wind activity at all the gauges go to sleep?   :roll:  Possible bug?

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 22, 2012, 05:01:51 PM
Of course now I look at your site you have some wind! #-o Go and stick your finger in the anemometer for half an hour will you  :lol:
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 22, 2012, 05:06:27 PM
Of course now I look at your site you have some wind! #-o Go and stick your finger in the anemometer for half an hour will you  :lol:

Actually was thinking about doing just that. However, maybe this will help. Next week (2 at the most) the whole thing is going back to Davis for the refurb, so there ain't gonna be any speed or direction for more than half an hour!

Will that help??   :roll:
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 22, 2012, 05:37:37 PM
One more thing, are you using the default units that are coded in the page when it fails? (F, Inch, inHg, mph)
Title: Re: Steelseries Gauges for WD
Post by: stantomj on December 22, 2012, 08:40:11 PM
Hi Mark,
I have the WD steelgauges working at this location. I do notice that the wind direction dial has an "A" after the the direction in degrees in both the average and the current wind direction. Here is the link: http://macungieweather.net/a/wxabout.php

Ortherwise, thank you for sharing such a great script!

Mike
Title: Re: Steelseries Gauges for WD
Post by: saratogaWX on December 22, 2012, 09:05:07 PM
The SteelSeries gauges use UTF-8 for the character set, and the templates use ISO-8859-1.

If you change that page from
Code: [Select]
$showGizmo = true;  // set to false to exclude the gizmo
include("top.php");
############################################################################
to
Code: [Select]
$showGizmo = true;  // set to false to exclude the gizmo
$SITE['charset'] = 'UTF-8';
include("top.php");
############################################################################
the gauges will display correctly.

This will work on a page that uses ISO-8859-1 as the default character set and English , but will likely have unexpected results in non-English pages.

Best regards,
Ken
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 22, 2012, 09:43:28 PM
One more thing, are you using the default units that are coded in the page when it fails? (F, Inch, inHg, mph)

If that's for me - yes.
Title: Re: Steelseries Gauges for WD
Post by: stantomj on December 22, 2012, 10:17:08 PM
Ken,
Thank you. The UTF-8 insert worked perfectly!

Mike
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 23, 2012, 12:17:21 PM
Ken,
Thank you. The UTF-8 insert worked perfectly!

Mike
I think this should be the first FAQ on the SS Wiki page  :wink:
Title: Re: Steelseries Gauges for WD
Post by: gwwilk on December 23, 2012, 02:33:57 PM
Thanks for the updated script, Mark.  They're looking really good, but I'm having a problem getting the WindRose to occupy the same page space as the rest of the gauges.  Somehow the canvas that is created for it is 261x265px rather than the standard 201x205px for my gauges specified as 191px rather than 221px in gauges.js.  Nothing I do seems to affect the page space the WindRose occupies, although the gauge itself is 'right-sized'.

Second problem is a little more obscure, and probably mine to sort out.  I've tried to incorporate my 1 Hr. and 3 Hr. WindRoses of v 1.6.x (http://www.gwwilkins.org/gauges-ss.php) into the v2 gauges (http://www.gwwilkins.org/gauges-ss2.php), but while I've succeeded in getting the additional gauges to show up, I've not succeeded in getting the remainder of the foreground and the data to display.  As usual it requires running all of the functions in windrose.js in triplicate as well as trebling the WindRose-related lines in gauges.js, all with appropriate renaming of course.  I struggled the most yesterday just getting around a tooltip problem until I found the 'i' that your documentation references.  Obviously I still have a ways to go here...I've attached my modified gauges.js and windrose.js if you care to have a look when you get time, Mark.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 23, 2012, 05:15:05 PM
Mark,

Having the same problem as yesterday with a couple changes...

   * Forecast line IS running
   * Seconds countdown is frozen
   * Temp, Dew, and Hum appear OK
   * Wind speed IS indicating
   * Direction is frozen at N (slight change in direction about 2 hours ago that changed back to N about 1 hour ago)
   * Rose is again missing
   * Baro is incorrect
   * UV and Solar are again both wrong at zero

If the Sciatica will allow it I'll go up and check the wind vane. That whole assembly was replaced about a year ago with the new design units from Davis, so I really don't think it's a mechanical problem.

http://tiggrweather.net/wxgauges.php

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 23, 2012, 05:58:29 PM
jgillett:
I dont see uv or solar on zero or N for wind direction or a problem with barometer
when I view your site
http://tiggrweather.net/wxgauges.php
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 23, 2012, 06:10:40 PM
Brian (and Mark),

Just as I was setting up the ladder to go up a very slight breeze moved the vane off N. Came back inside immediately and all gauges were again working normally. Went up anyway - both the vane and cups feel perfectly smooth in their operation, no grittiness or sticking points.

So - the only thing now common between yesterday and today is wind direction not changing at all for an hour or so. Then things stop displaying, and, in the case of the rose, go away completely. Turns out my earlier post was incorrect in that Temp, Dew, and Hum were also incorrect. Brian, the baro was incorrect because, while it did have a display, it was not the same as what was showing on the console.

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 23, 2012, 07:07:41 PM
so where there is no wind for a long time, it causes some problem in the data feed?
(you would need to look at the differences in the data feed when that happens)
Title: Re: Steelseries Gauges for WD
Post by: gateway2capecod on December 23, 2012, 08:51:38 PM
hello....

Great Script and Very Nice looking Gauges....I have mine now working here:

http://www.gateway2capecod.com/gauges-ss.php

Thanks....Chris
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 23, 2012, 10:58:23 PM
so where there is no wind for a long time, it causes some problem in the data feed?
(you would need to look at the differences in the data feed when that happens)

Unknown at this time, Brian. As mentioned, within 2 weeks the unit is already scheduled to go back to Davis for the refurb, so that will force 'no wind' conditions. If not before, will definitely check then.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 24, 2012, 12:11:32 AM
Without actually catching this error happening, I suspect it may be something to do with the wind-rose array when al the values are zero. If I artificially supply a wind-rose array with all zeros the script still works, so *maybe* WD is sending some non-zero values (like for instance 'calm')when there hasn't been any wind for an hour?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 24, 2012, 02:00:43 AM
Will let you know when I catch the next 'burp', Mark.

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 24, 2012, 07:45:25 AM
OK - 0028 this morning noticed it was in trouble again. Same symptoms as before. Clientraw.txt (attached) is showing 360 and 0.0 wind. Stumped.

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 24, 2012, 08:59:28 AM
John, could you capture the gauges version of the custom client raw next time it happens please? The SS page doesn't use the default ccr file but a JSON formatted version. Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 24, 2012, 04:36:01 PM
Attached (sorry - meant to do that earlier). It's been stuck since my last message. Also included is the relevant part of the WD local graph showing the speed and direction.

HTH...

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 24, 2012, 05:01:16 PM
Hmm, that file does not have zero wind speeds in it?
Code: [Select]
"wlatest":"0.0","wspeed":"0.4","wgust":"2.0","wgustTM":"2.0","bearing":"360","avgbearing":"360"And of course your page is working when I look at it now - with wind.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 24, 2012, 06:41:26 PM
It seems OK above 1.0 mph. I have noticed speeds of 0.4, 0.6, etc., and the gauges are still frozen.

Looking at the current WD graph, it appears the speed and direction changed just before 1000, which is why you saw a functioning page.

Can I get another complete copy of v1.0 and the 2.0b from you? Would like to put them up together to see if they all fail at the same time (although I never saw this happening with either of the earlier versions).

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 26, 2012, 03:54:40 AM
FWIW, gauges are still running. However, it has now been more than 4 hours with no change in wind direction or speed (still 0). The only difference is that the direction is ESE, and has been the entire time. This is more than twice the duration of previous failures, with the direction being the only difference.

As mentioned - FWIW...
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 26, 2012, 01:05:02 PM
Hi John, I just took a look at you page, the latest wind speed is zero, 10 minute average speed is also zero, bearing 340,  last 10 minute gust 1 mph, 10 minute average bearing 340, max gust today is 4 mph

That is exactly what WD is supplying in the custom client raw file...

Code: [Select]
"wlatest":"0.0","wspeed":"0.0","wgust":"1.0","wgustTM":"4.0","bearing":"340","avgbearing":"340"
Title: Re: Steelseries Gauges for WD
Post by: plex_dk on January 01, 2013, 07:46:43 PM
Hi

I have trouble, getting WD to produce the customclientraw files.

I've ticked the box in "real time client ftp", and the "real time client ftp", is trying to upload it, but it can't find it (can't open localfile for reading)?

How do I make WD produce the file?

Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 01, 2013, 10:41:30 PM
Try resetting the clientraw location
Title: Re: Steelseries Gauges for WD
Post by: plex_dk on January 02, 2013, 05:41:32 AM
Try resetting the clientraw location

It's not working neither...

WD is not producing the customclientraw - it's not in the webfiles folder...?
Title: Re: Steelseries Gauges for WD
Post by: Silversword on January 05, 2013, 07:43:53 PM
Hi,

I am a newbie at this program.  Did you put the customclientrawlocal.txt file in the web file folder as well? If not, copy the one that came with the zipped file to that folder and see what happens.

Or use this piece of information.

One very important thing that must be done on the weather pc where your wd is installed onto....is to add to your webfiles folder, within WD Folder....the file from the download package named "customclientrawlocal.txt"...just copy itinto your webfiles folder as is, no need to edit any of that file. Then you must go to WD/CONTROL PANELS/webifle,webpage realtime ftp,WDL Icon (yellow icon on top row in middle right)...Then click on the REALTIME FTPTab at top of thats screen and then Check box for creating CUSTOM CLIENTRAW FILE At bottom right part of that screen. Leave the other 2 boxes set at default 5 and default 5...

--Stan Y.
  Maui, Hawaii
Title: Re: Steelseries Gauges for WD
Post by: plex_dk on January 05, 2013, 07:49:03 PM
Hi,

I am a newbie at this program.  Did you put the customclientrawlocal.txt file in the web file folder as well? If not, copy the one that came with the zipped file to that folder and see what happens.

Or use this piece of information.

One very important thing that must be done on the weather pc where your wd is installed onto....is to add to your webfiles folder, within WD Folder....the file from the download package named "customclientrawlocal.txt"...just copy itinto your webfiles folder as is, no need to edit any of that file. Then you must go to WD/CONTROL PANELS/webifle,webpage realtime ftp,WDL Icon (yellow icon on top row in middle right)...Then click on the REALTIME FTPTab at top of thats screen and then Check box for creating CUSTOM CLIENTRAW FILE At bottom right part of that screen. Leave the other 2 boxes set at default 5 and default 5...

--Stan Y.
  Maui, Hawaii

Hello Stan!

This was exactly what I forgot to do  :oops:

Now it's working great

Thank you :)
Title: Re: Steelseries Gauges for WD
Post by: Silversword on January 05, 2013, 08:09:24 PM
Glad it is working for you now.  You are welcome.

Now the "fun" begins in your set ups.

--Stan Y.
  Maui, Hawaii

 
Title: Re: Steelseries Gauges for WD
Post by: ukwoody on January 10, 2013, 08:32:32 PM
PLEASE HELP.
I find dealing with html, web servers and things very hard, and trying to change the ss series to suit WD is doing my head in.

I have put the ness files (gauges and customclient and )into the WD webfile folder on my weather PC and I think I've made the correct changes to the two files.  I have also checked the tick box on the WDL tab within the WD control panel.

But am I meant to upload somefiles to my web site then?  I also dont in the least understand the bit about Relative Paths.  What do I do there?

Just as a side issue I'd really like the ss series to be on a different page to my wdl page on my site

There MUST be an easier way to do it than trying to understand all the jargon needed to change things from Cumulus to WD.

ANy help gratefully accepeted

Woody 
Title: Steelseries Gauges for WD
Post by: Budgie on January 10, 2013, 11:01:00 PM
I set this up on another website using the WD settings and on it's own page (not the supplied HTML page) and it's not that bad.

I'll try to make a simple "how too" tomorrow and give you the code for the stand alone page.

As for the relative paths, it just means relative to the website setup. So if you have SS files in their own folder then it will be something like: /steelseries/


Sent from my BlackBerry using. Tapatalk
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on January 10, 2013, 11:32:37 PM
If someone would like to create a "how-to" for Kens Saratoga templates say  :wink:, I'd happily put up on the Wiki  :D
Title: Steelseries Gauges for WD
Post by: Budgie on January 10, 2013, 11:58:44 PM
Nightshift at the moment but i'll see what I can do between sleeps. :D

Sent from my BlackBerry using Tapatalk
Title: Re: Steelseries Gauges for WD
Post by: plex_dk on January 12, 2013, 10:20:16 PM
Hi

I got the gauges working :)

But I'm working on a new webpage based on the Saratoga template, and I can't figure out, how to embed these beauty gauges?

Here's the gauges:
http://www.jasminvejr.dk/gauges/gauges-ss.html (http://www.jasminvejr.dk/gauges/gauges-ss.html)

And here's the page I'm working on:
http://www.jasminvejr.dk/wxsteel.php (http://www.jasminvejr.dk/wxsteel.php)

The gauges are not in row, and the graphs is not working.

I can see that others has succeeded this, but I could use some help, as I'm beginner creating webpages :oops:
Title: Re: Steelseries Gauges for WD
Post by: aggets on February 11, 2013, 07:34:19 PM
Hi

I have my gauges working here http://www.sunprairieweather.com/wxssgauges.php (http://www.sunprairieweather.com/wxssgauges.php) . It seems like I found a page before that would let you try various options to change the appearance of the gauges kind of like a test page. I cant seen to find that page. I have looked but no luck. Anybody know?

Thanks Andy
Title: Re: Steelseries Gauges for WD
Post by: jgillett on February 11, 2013, 08:23:18 PM
Andy,

Try this...

http://www.wilmslowastro.com/steelseries/demoRadial.html
Title: Re: Steelseries Gauges for WD
Post by: aggets on February 11, 2013, 08:28:01 PM
Andy,

Try this...

http://www.wilmslowastro.com/steelseries/demoRadial.html

Thats it got it bookmarked

Thanks much Andy
Title: Re: Steelseries Gauges for WD
Post by: Fensmark on February 14, 2013, 10:24:07 AM
HI
can somebody tell me where i can remove the lcd from the wind-dir gauge
Ole
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 14, 2013, 12:22:00 PM
In gauges.js drawDir(), you need to add an initialisation parameter...

                params.lcdVisible = false;

Title: Re: Steelseries Gauges for WD
Post by: Fensmark on February 14, 2013, 12:44:52 PM
Hi Mark
Is it in line 1814
http://www.fensmark-vejret.dk/wxnewgauges.php
Title: Re: Steelseries Gauges for WD
Post by: Fensmark on February 14, 2013, 12:48:42 PM
its the led in windir i wil remove
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 14, 2013, 12:53:47 PM
no, around line 730
Title: Re: Steelseries Gauges for WD
Post by: Fensmark on February 14, 2013, 12:58:12 PM
Hi Mark
That was the trick tanks
Ole
Title: Re: Steelseries Gauges for WD
Post by: Kylo on February 27, 2013, 11:12:21 AM
Hi Mark,

In version 2.2.2 the movement of the pointer is too fast for me.
it is possible to change the pointer speed? if so how?
greetings Klaus
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on February 27, 2013, 11:57:40 AM
You can specify an initialisation parameter to the gauges "fullScaleDeflectionTime", this defaults to 2.5 seconds. So for example if you wanted to slow down the temperature gauge to 4 seconds, change drawTemp() and add the last line as below...

Code: [Select]
        drawTemp = function () {
            var params = extend(commonParams);
            // create temperature radial gauge
            if ($('#canvas_temp').length) {
                params.size = Math.ceil($('#canvas_temp').width() * config.gaugeScaling);
                params.section = _temp.sections;
                params.area = _temp.areas;
                params.minValue = _temp.minValue;
                params.maxValue = _temp.maxValue;
                params.thresholdVisible = false;
                params.minMeasuredValueVisible = _temp.maxMinVisible;
                params.maxMeasuredValueVisible = _temp.maxMinVisible;
                params.titleString = _temp.title;
                params.unitString = data.tempunit;
                params.trendVisible = gauge.tempTrendVisible;
                //params.customLayer = _imgBackground;      // uncomment to add a background image - See Logo Images above
                params.fullScaleDeflectionTime = 4;
....

To slow down all the guages, you could add it to he commonParams...
Code: [Select]
        commonParams = {
            // Common parameters for all the SteelSeries gauges
            gaugeType               : gauge.gaugeType,
            minValue                : 0,
            fullScaleDeflectionTime : 4,
....
Title: Re: Steelseries Gauges for WD
Post by: Kylo on February 27, 2013, 10:55:58 PM
Thanks Mark, thats work perfect ! \:D/
Title: Re: Steelseries Gauges for WD
Post by: I2R on March 11, 2013, 02:25:09 PM
hello

can you tell me why i don't see the graph ?

(http://img692.imageshack.us/img692/6678/capturedcran20130311152.jpg) (http://imageshack.us/photo/my-images/692/capturedcran20130311152.jpg/)

thks
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 11, 2013, 03:20:34 PM
can you tell me why i don't see the graph ?
Do you have the 'wxgraphs' series of scripts on your server?

If so, have you set imgPathURL in gauges.js to the path to those scripts (typically './wxgraphs/')?
Title: Re: Steelseries Gauges for WD
Post by: I2R on March 11, 2013, 06:03:24 PM
Do you have the 'wxgraphs' series of scripts on your server?

If so, have you set imgPathURL in gauges.js to the path to those scripts (typically './wxgraphs/')?

hi

i don't see the 'wxgraphs' series of script on my server ! i've to setup that in WD ? where ?

thks
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 11, 2013, 09:19:53 PM
hi

i don't see the 'wxgraphs' series of script on my server ! i've to setup that in WD ? where ?

thks
Nothing whatsoever to do with WD. You can get the scripts at http://www.stella-maris.org.uk/code.phtml. There is a good tutorial on installing (if you get stuck with the included instructions) at http://www.weather-watch.com/smf/index.php/topic,27489.0.html. Make SURE you upload the scripts in the same directory the arrive in ; /wxgraphs/. Don't scatter them loose at the root of your server.

There are numerous threads on the forum about getting them working.
Title: Re: Steelseries Gauges for WD
Post by: K3JAE on March 15, 2013, 07:02:42 AM
Wondering if anyone can advise me where I can lengthen the time the VP forecast text before resetting thereby missing portions of the text and it resets and starts over. Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on March 15, 2013, 10:01:26 AM
John,

I found that it was the "downloading" message that interrupted the longer forecasts.  At about line 985 I made the following changes and it works better for me.  The second change was because I found it disconcerting that each countdown would begin with 10 regardless of what was set in the config.

Code: [Select]
        getRealtime = function () {
//            setStatus(strings.StatusMsg);         // removed so "downloading" doesn't interfere with long scrolling forecasts
//            _count = 11; // 10 seconds timeout     
            _count = config.counter + 1;            // changed so that new countdowns start at the proper number rather than always 10
            countDown();
            $.ajax({url: config.realTimeURL,
                    dataType: 'text',
                    cache: false,
                    success: checkRtResp,
                    error: checkRtError,
                    timeout: 10000
            });
        },

- Jim
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 15, 2013, 10:30:42 AM
Jim

I think you have misunderstood why the counter goes to 10, then jumps to your configured timeout.

When the script kicks off an Ajax download it sets a 10 second timeout for the download to complete, after that it retries. So if the web server was unresponsive for some reason, and you had a 30 second refresh, you would see...

<forecast> - 2 secs
<forecast> - 1 secs
"Downloading..." - 10 secs
"Downloading..." - 9 secs
...
"Downloading..." - 1 secs
"Download failed, retrying..." - 10 secs
{download works}
<forecast> - 30 secs
<forecast> - 29 secs
... etc

When things are working well the sequence would be...
<forecast> - 2 secs
<forecast> - 1 secs
"Downloading..." - 10 secs
{download works}
<forecast> - 30 secs
<forecast> - 29 secs
... etc

What happens sometimes is the server response is so fast that the "Downloading..." - 10 secs only flashes up very briefly.
Title: Re: Steelseries Gauges for WD
Post by: jmcmurry on March 15, 2013, 10:44:13 AM
Thanks Mark, I see I was way out in left field on that one, I'll change it back.  I just thought it a little strange that the 10 would always flash up there but now understand why.

- Jim
Title: Re: Steelseries Gauges for WD
Post by: jgillett on March 15, 2013, 02:15:00 PM
Was about to ask the same question about the 'flashing 10'. Thanks, Mark, for the very descriptive answer.
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on March 20, 2013, 01:58:04 AM
 :oops:  dumb question how do I get the gauges to work??
http://www.n7xrd.tzo.com/wdisplay/web/gauges/gauges-ss.htm (http://www.n7xrd.tzo.com/wdisplay/web/gauges/gauges-ss.htm)
Title: Re: Steelseries Gauges for WD
Post by: K3JAE on March 20, 2013, 07:27:34 AM
Wondering if anyone can advise me where I can lengthen the time the VP forecast text before resetting thereby missing portions of the text and it resets and starts over. Thanks.

OK so after all of that, I again ask how to increase the amount of time (and what file needs updated) so the Forecast scrolls longer before it resets and restarts.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 20, 2013, 08:31:50 AM
OK so after all of that, I again ask how to increase the amount of time (and what file needs updated) so the Forecast scrolls longer before it resets and restarts.
It gets as long as the time you specify for the data refresh. So if you set the refresh time to 20 seconds, it gets 20 seconds to scroll before fresh data is down loaded.
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 20, 2013, 08:34:58 AM
:oops:  dumb question how do I get the gauges to work??
http://www.n7xrd.tzo.com/wdisplay/web/gauges/gauges-ss.htm (http://www.n7xrd.tzo.com/wdisplay/web/gauges/gauges-ss.htm)
Wow, that web server is a bit on the slow side!?

But the problem is teh script cannot find your customclientraw.txt file
You have configured the script to look for...
http://www.n7xrd.tzo.com/wdisplay/web/gauges/customclientraw.txt

but your file seems to be here...
http://www.n7xrd.tzo.com/wdisplay/web/customclientraw.txt
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on March 20, 2013, 12:30:15 PM
Wow, that web server is a bit on the slow side!?

But the problem is the script cannot find your customclientraw.txt file
You have configured the script to look for...
http://www.n7xrd.tzo.com/wdisplay/web/gauges/customclientraw.txt

but your file seems to be here...
http://www.n7xrd.tzo.com/wdisplay/web/customclientraw.txt
thanks I did finally figure that out and have it working!!  the server runs here at home and at the moment I have 2 running so it is slowing  things a bit...that will change Friday when I move one out to a remote location!
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on March 20, 2013, 12:48:21 PM
I did notice the ticker tape forecast is not moving on this site???   #-o
http://beachhouseweather.com/wxssgauges.php (http://beachhouseweather.com/wxssgauges.php)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on March 20, 2013, 12:52:16 PM
It only scrolls if the text is wider than the display area (by default  :wink:)
Title: Re: Steelseries Gauges for WD
Post by: YV5OF on June 18, 2013, 03:52:51 PM
Hi,

Excellent component for a weather page and do the installation without any problems and is operating. I have only one question:

In the scroll bar where information should appear forecast, more text appears not downloading ... when does the cooling.

This is fine? or should appear more detail?

Thanks
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 19, 2013, 08:03:49 PM
In the scroll bar where information should appear forecast, more text appears not downloading ... when does the cooling.

If I understand your question correctly, and you are not seeing the full forecast, see Reply #501 above.
Title: Re: Steelseries Gauges for WD
Post by: YV5OF on June 20, 2013, 02:13:51 PM
Thank's,

Today's Gauges stopped working, when entering the page the scroll shows Downloading ..... and the timer is at 60 without advancing without charge the information.

Link : http://clima.hamradioyv.com/gauges/

File is create and uoload from my WD Station fine..

But not working.
Title: Re: Steelseries Gauges for WD
Post by: broadstairs on June 20, 2013, 02:35:17 PM
I am seeing a 404 not found error on your weatherstyle.css file which according to the URL used should be in the gauges directory. Make sure this is there in the correct place and see what happens.

Stuart
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on June 20, 2013, 03:14:25 PM
Severino, your customclientraw.txt file is not being processed by WD, it still contains all the tags rather than the data.
Title: Re: Steelseries Gauges for WD
Post by: YV5OF on June 20, 2013, 04:07:03 PM
Thank's Stuart,

Thank's Mark : I will copy back the file in the WD, yesterday I was doing some changes to the website with Saratoga Template, and may have some local change in WD
Title: Re: Steelseries Gauges for WD
Post by: YV5OF on June 21, 2013, 01:03:49 AM
OK update and fix custom customclientrawlocal in WD (PC), and change error : HTTP Request Failed 404 in the scroll Bar. File customclientraw.txt is update good, and script included on config directory path for file.

http://clima.hamradioyv.com/gauges/

Title: Re: Steelseries Gauges for WD
Post by: broadstairs on June 21, 2013, 07:12:44 AM
Your customclientraw.txt file exists in your root directory and not your gauges directory, you either need to correct where it is uploaded to or change the settings so the Gauges can find it.

Stuart
Title: Re: Steelseries Gauges for WD
Post by: YV5OF on June 21, 2013, 12:35:59 PM
Thanks, it was my mistake to delete some files that I thought were redundant. I made a new installation and adjustment cartepa all parameters again. Now is working again.

The forecast for the WD scroll works with some special file?

Thanks again to all ..
Title: Re: Steelseries Gauges for WD
Post by: tnwxman on June 25, 2013, 12:55:40 AM
I updated to the latest version today and now nothing seems to work. What have i done wrong. Please assist.

Thanks.

Bob

http://lebanontnwx.org/gauges-ss.php  (http://lebanontnwx.org/gauges-ss.php)
Title: Re: Steelseries Gauges for WD
Post by: stewart45 on May 08, 2015, 09:06:04 AM
what and in what file do I need to change to get the countdown to change from 10secs to 60secs, have reverted from Meteobridge to WD and the guage refresh appears tobe 60secs
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 08, 2015, 09:24:32 AM
I updated to the latest version today and now nothing seems to work. What have i done wrong. Please assist.

Thanks.

Bob

http://lebanontnwx.org/gauges-ss.php  (http://lebanontnwx.org/gauges-ss.php)

You don't seem to have uploaded: /scripts/RGraph.radar.min.js
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on May 08, 2015, 09:26:06 AM
what and in what file do I need to change to get the countdown to change from 10secs to 60secs, have reverted from Meteobridge to WD and the guage refresh appears tobe 60secs
gauges.js...

Code: [Select]
config = {
     counter: 10,
Title: Re: Steelseries Gauges for WD
Post by: wvdkuil on May 08, 2015, 12:28:43 PM
what and in what file do I need to change to get the countdown to change from 10secs to 60secs, have reverted from Meteobridge to WD and the guage refresh appears tobe 60secs
Maybe I am wrong but I seem to remember from all those lost posts, that you were using the Leuven-Template.

As the small globe on your avatar results in a 404 error, I can not check your site if you are indeed using that.

If so, in wsSettings.php there can be a setting
$SITE['steelTime'] = 30;
You can then reset that to any values between 10 and 61 seconds.
If there is no such setting => add one.

===

As there are multiple scripts to display the steelseries, you can also reset the default value to a different value for that script.
1 script for header3 => gaugeframe.php  => lines 117-119
1 full page script => gauge.php
2 dashboard scripts => gaugeSmall.php and gaugeXsmall.php

Just scan for the lines with $SITE['steelTime'] in it.

If WD uploads the file every 60 seconds you should set the time not higher then 30 seconds.  With 60 seconds it could be in rare occasions 1 second old data when the upload just arrived.
But with the same chance it would be 59 seconds.

Wim
Title: Re: Steelseries Gauges for WD
Post by: stewart45 on May 08, 2015, 01:46:02 PM
Thanks Wim
just realised had changed web address and not updated profile, done now
Title: Re: Steelseries Gauges for WD
Post by: stewart45 on May 08, 2015, 02:07:52 PM
not having much luck finding anything to change
Title: Re: Steelseries Gauges for WD
Post by: wvdkuil on May 08, 2015, 02:59:48 PM
not having much luck finding anything to change
Your weather2/wsSettingsWeather.php lines
Code: [Select]
   35 | #---------------------------------------------------------------------------
   36 | #               upload time for steelseries data
   37 | #---------------------------------------------------------------------------
   38 | $SITE['steelTime'] = 10;                         // wait time to retrieve new info for steelseries gauges
Set that to value at line 38 to
Code: [Select]
   38 | $SITE['steelTime'] = 30;                         // wait time to retrieve new info for steelseries gauges
EDIT 2015-05-08 17:32 CEST: Sorry I types the wrong script name.
Title: Re: Steelseries Gauges for WD
Post by: niko on May 08, 2015, 03:19:29 PM
Thanks Wim
just realised had changed web address and not updated profile, done now

I think you lost the updated profile with the server crash  :wink:
Title: Re: Steelseries Gauges for WD
Post by: stewart45 on May 08, 2015, 03:45:49 PM
this is what I have on line 38 in my wsSettings.php and there is no ref to the word steeltime in the file, could be im using a old copy of wsSettings ?

35 #                       Select the region you are in or choose other
36 #---------------------------------------------------------------------------
37 #$SITE['region']       = 'america';    // #####
38 #$SITE['region']       = 'canada';    // #####
39 $SITE['region']       = 'europe';   // #####
40 #$SITE['region']       = 'other';      // #####
Title: Re: Steelseries Gauges for WD
Post by: wvdkuil on May 08, 2015, 03:49:22 PM
this is what I have on line 38 in my wsSettings.php and there is no ref to the word steeltime in the file, could be im using a old copy of wsSettings ?

35 #                       Select the region you are in or choose other
36 #---------------------------------------------------------------------------
37 #$SITE['region']       = 'america';    // #####
38 #$SITE['region']       = 'canada';    // #####
39 $SITE['region']       = 'europe';   // #####
40 #$SITE['region']       = 'other';      // #####
Sorry    weather2/wsSettingsWeather.php
Wim
Title: Re: Steelseries Gauges for WD
Post by: stewart45 on May 08, 2015, 06:12:29 PM
Yes, excellent, not a problem
Thanks Wim
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 07, 2015, 10:12:39 PM
Hi Mark,

Put up 2.5.9 today. Was working fine this morning. Just looked again and Cloud Base is having a fit. It climbs to the height, stays there for 1-2 seconds, then drops back to 0 and starts it all over again. Same number is displayed. Only seems to happen with setting at 'ft'.

http://tiggrweather.net/wxssgauges.php

Thoughts appreciated.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 08, 2015, 03:23:13 AM
Now the cloud height is acting normally. At the time of the failure the indicated height was >20,000 ft, now it's around 15,000 ft. Perhaps a clue there?

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: niko on June 08, 2015, 03:50:08 AM
Did you look at the cloud height value in the customclientraw file at the time that it was displaying incorrectly?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 08, 2015, 04:28:58 AM
Hi niko,

Long time.

Yes, I did. The numbers matched, but it wasn't until late this afternoon when the height came down to <20K ft that the nonsense stopped. Now it's down to 11,700 ft and is still OK.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 08, 2015, 06:29:52 AM
Just checked again and the cloud height had reset itself from ft to m; i.e., apparently the cookie didn't hold that option. It's now showing 9,300 ft.

Another puzzle piece...
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on June 08, 2015, 08:47:54 AM
Hi John,

Wow! We never get values like that in the UK - hence I've never seen this behaviour before.

OK two things...

First the cookie holds the ft/m unit on your web site for me - I suggest you delete all cookies and data in your browser for your site only and try that again. I have seen similar things from time to time with various sites in Chrome and that usually fixes it.

Second, the gauge 'bouncing around' thing. This is caused in part by your very high values, and the gauge performing some logic to try and produce a 'nice looking scale'

A quick fix whilst I think about how to handle this more elegantly would be to add an extra config parameter at line 2528...
Code: [Select]
params.niceScale = false;
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on June 08, 2015, 08:52:25 AM
Actually a more elegant 'patch' would be to ignore that first one and add an extra line at 2577..
Code: [Select]
                        cache.maxValue = ssGauge.getMaxValue();

So that code block now reads...
Code: [Select]
                    if (cache.maxValue !== ssGauge.getMaxValue()) {
                        ssGauge.setValue(0);
                        ssGauge.setMaxValue(cache.maxValue);
                        cache.maxValue = ssGauge.getMaxValue();
                    }
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 08, 2015, 03:55:50 PM
Mark,

Added the one line - cache.maxValue = ssGauge.getMaxValue(); - and dumped all cookies for the site.

Gauge is behaving nicely, but...  ceiling is currently only 11,400 ft and will probably take two days for this one to clear out and get back to 20,000+. Will let you know.

Thanks for the quick reply.   :D
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 18, 2015, 10:11:17 PM
Mark,

Finally! Cloud height now 22,700 ft and the gauge is behaving perfectly. Max height displayed on the face is 30000 (initially it was 25000 but decided to jump up) so it has that in hand as well.

Thanks again.
Title: Re: Steelseries Gauges for WD
Post by: niko on June 18, 2015, 10:44:43 PM
Whoa! 114.6F and 3% RH in Phoenix  8O
Title: Re: Steelseries Gauges for WD
Post by: jgillett on June 19, 2015, 12:29:11 AM
Yep. Just a tad warm for the day, niko. Record high for today is 115 so we just missed it. More of the same tomorrow.
Title: Re: Steelseries Gauges for WD
Post by: jzinckgra on January 12, 2016, 05:21:36 PM
Can someone tell me the procedure for how difficult it is to insert the script fro the gauges. I don't need a step-by-step, but is it as simple as cutting/pasting the script into my website code? thanks.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on January 12, 2016, 05:54:30 PM
Can someone tell me the procedure for how difficult it is to insert the script fro the gauges. I don't need a step-by-step, but is it as simple as cutting/pasting the script into my website code? thanks.
Basically, yes. But do follow the instructions or you could easily get lost.
Title: Re: Steelseries Gauges for WD
Post by: jzinckgra on January 13, 2016, 05:22:03 PM
Basically, yes. But do follow the instructions or you could easily get lost.

Thanks. Seems like there's a couple places for the instructions. Can you provide best link?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on January 13, 2016, 06:09:10 PM
Use the one in the .zip file you downloaded to get the scripts.
Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 13, 2016, 06:42:11 PM
@  jzinckgra..................Maybe explain a bit more of what youre trying to do...


if ypu want to ,lets say just add 1 temperature dial somewhere in your web page and only copy the temp.Dial's code part in the gauge-ss.html page wel... it just wont work .

Its not as easy as 1-2-3  :wink:
Title: Re: Steelseries Gauges for WD
Post by: jzinckgra on January 15, 2016, 01:05:16 AM
I'm reading the directions on installing the gauges, but am I supposed to use the Cumulus directions to get started, cause when you scroll to the WD directions, all that is listed is this:

These files will work with WD if you switch the following value in gauges.js:

   weatherProgram    : 0,
 To...
   weatherProgram    : 1,

This will make the script use the WD customclientraw.txt file rather than the Cumulus realtimegauges.txt file. A template for this file suitable for processing by WD is provided in the zip file - customclientrawlocal.txt

To process the customclientrawlocal.txt, in WD you need to:

    in control panel, webfiles/web page setup, real time ftp setup
    see the custom client raw file setup...and tick to create that
    make sure the needed customclientrawlocal.txt is in the clientraw folder location


The provided HTML files gauges-ssT.htm etc, are designed to be 'processed' by Cumulus before uploading to the web site and renaming as gauges-ss.htm This processing replaces all the tags like <#location> with general information about your station (the station name) in this case.

To use the templates with WD you will have to manually edit the HTML file, and replace each of these tags with information appropriate to you. I suggest you then save the file as gauges-ss.htm

You will also want to replace the Menu bar at the bottom of the HTML page which is specific to the Cumulus sample web pages.
customclientrawlocal.txt

The value for Humidex is set to Celsius by default. You may want to change this tag from %humidexcelsius% to %humidexfaren% if you use Fahrenheit as your temperature scale. (there is no WD tag to report the value in your default scale). This and the forecast tag (see above) are the only things you should have to edit in the ccr file.


I'm confused as where to start and which files from the zip folder I'm supposed to upload to my server. thanks.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 15, 2016, 01:11:37 AM
unzip the customclientrawlocal.txt to the WD web files folder
then in the real time ftp setup in WD set to upload the customclientraw

once you have that uploading, then follow the instructions provided
Title: Re: Steelseries Gauges for WD
Post by: jzinckgra on January 16, 2016, 12:18:12 AM
unzip the customclientrawlocal.txt to the WD web files folder
then in the real time ftp setup in WD set to upload the customclientraw

once you have that uploading, then follow the instructions provided

I see the txt file, but there's nothing to really unzip, right? Should I just cuut/paste the file into the WD web files folder?
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 16, 2016, 12:26:09 AM
there is also a customclientrawlocal.txt included with the WD install files anyway

I am thinking I might do a youtube help video for the steel gauges setup..
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 25, 2016, 10:11:18 PM
Hello guys , sorry to bother you, I have some problems in configuring this plug SteelSeries can you help?

Uploads are not the data , I have extracted the archive steelserie directly inside my site , here is the ' Address where there ' graph .

http://ombarcellonapg.com/wdisplay/SteelSeries/web_server/gauges-ss.htm

I also renamed the file gauges-ss-basic.htm in gauges-ss.htm  before exporting it on the site .
Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 25, 2016, 10:47:42 PM
did you configure the /scripts/gauges.js?
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 25, 2016, 10:52:24 PM
did you configure the /scripts/gauges.js?

yes, my customclientraw.txt : http://ombarcellonapg.com/wdisplay/customclientraw.txt

in the file gauges.js configured :

 weatherProgram    : 1,

 realTimeURL_WD     : '../wdisplay/customclientraw.txt',

Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 25, 2016, 10:59:53 PM
ok...

first,be careful with the www. of your website must always be there to avoid problems  #-o

take care of that problem first...cuz for me,it looks ok on the gauges.js
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 25, 2016, 11:02:39 PM
ok...

first,be careful with the www. of your website must always be there to avoid problems  #-o

take care of that problem first...cuz for me,it looks ok on the gauges.js

You think that the problem is that my site there is the www ?

http://www.ombarcellonapg.com/wdisplay/customclientraw.txt

What I need to fix ?


Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 25, 2016, 11:05:24 PM
that is enaugh for a website to malfunction...had problems with mine cuz of that last week so....

check all of your links in the template pointing to pages of your site
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 25, 2016, 11:09:49 PM
that is enaugh for a website to malfunction...had problems with mine cuz of that last week so....

check all of your links in the template pointing to pages of your site

What can ' be creating problems with the gauges ?

the file path and customclienraw ' correct ?
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 25, 2016, 11:37:45 PM
do you have the customclientraw.txt file uploading
and is the path to that file correct in the html code?
(how have you set that)
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 07:07:00 AM
do you have the customclientraw.txt file uploading
and is the path to that file correct in the html code?
(how have you set that)

As in Annex I activated the weather display to generate the file customclientraw .

The address where you will find the following files and ' : http://ombarcellonapg.com/wdisplay/customclientraw.txt

gauges.js path to the file that I put to catch the file ?

for now I put this :

realTimeURL_WD : ' ../wdisplay/customclientraw.txt '

it's correct?

thanks in advance
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 07:10:46 AM
Since all the files are in or below ombarcellonapg.com/wdisplay/ then the relative path doesn't need the /wdisplay/, I'm not sure where the customclientraw.txt is called from but I think the path should be either:

'../../customclientraw.txt'

or

'../customclientraw.txt'

I tried to put the path to catch the file in both of the recommended ways but not the same .

Why?
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 26, 2016, 07:31:03 AM
have you tried
../customclientraw.txt
?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on January 26, 2016, 09:35:09 AM
virusdunil hit the problem...

The problem is you are loading your web site as "http://ombarcellonapg.com/" and the script is trying to load from "http://www.ombarcellonapg.com/", which must be your default server name.

These are seen by your browser as two different sites, and scripts are not allowed (without some workarounds) to load data from a different site than they originate from. It is called XSS (Cross Site Scripting) and is blocked by default for security reasons.

If you specify the full path it will load the file correctly...
realTimeURL_WD     : 'http://ombarcellonapg.com/wdisplay/customclientraw.txt',

But then you will hit your next problem, you seem to be using an old version of the customclientraw template file.
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 12:30:51 PM
have you tried
../customclientraw.txt
?

YES I tested with the path indicated by you , and I have also solved the problem of www.ombarcellonapg.com .

But the gauges are still not working

Location file customclientraw it's now:
http://www.ombarcellonapg.com/wdisplay/customclientraw.txt
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 12:33:22 PM
virusdunil hit the problem...

The problem is you are loading your web site as "http://ombarcellonapg.com/" and the script is trying to load from "http://www.ombarcellonapg.com/", which must be your default server name.

These are seen by your browser as two different sites, and scripts are not allowed (without some workarounds) to load data from a different site than they originate from. It is called XSS (Cross Site Scripting) and is blocked by default for security reasons.

If you specify the full path it will load the file correctly...
realTimeURL_WD     : 'http://ombarcellonapg.com/wdisplay/customclientraw.txt',

But then you will hit your next problem, you seem to be using an old version of the customclientraw template file.

So the problem and ' the file customclientraw that and ' an old version how do I fix ?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on January 26, 2016, 01:17:59 PM
' an old version how do I fix ?
Use the template file from the same zip that you got the rest of the scripts from. The template file needs installing on your WD computer. People tend to forget to update that file when updating the web site.
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 02:33:26 PM
Use the template file from the same zip that you got the rest of the scripts from. The template file needs installing on your WD computer. People tend to forget to update that file when updating the web site.

As per your advice I took the file customclientrawlocal present in the template of the gauges and I replaced it in the folder of the Weather displays .

Now let's see if it works .

http://www.ombarcellonapg.com/wdisplay/SteelSeries/web_server/gauges-ss-basic.htm

Still does not work why ?

Here is the address of the file http://ombarcellonapg.com/wdisplay/customclientraw.txt

Can 'be a problem you have loaded all of the gauges folder with subfolders inside of ?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on January 26, 2016, 03:12:20 PM
It's not finding your ccr file again.

Change it to...
            realTimeURL_WD     : '/wdisplay/customclientraw.txt',
Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 26, 2016, 04:09:37 PM
http://www.ombarcellonapg.com/wdisplay/SteelSeries/web_server/gauges-ss-basic.htm

is web_server supposed to be there in the link... ?

i found the link is too long  8O

there are toooooo mani things uploaded to your server.....access is really too long for nothing.

your link could be http://www.ombarcellonapg.com/SteelSeries/gauges-ss-basic.htm

in mine, everything is in /gauges.......so

 8O
Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 26, 2016, 04:11:06 PM
Its not a necessity to put the steelseries folder in /wdisplay

 :wink:
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 10:37:09 PM
It's not finding your ccr file again.

Change it to...
            realTimeURL_WD     : '/wdisplay/customclientraw.txt',

They work now finally.

Thanks to everyone for the tips, it was just a problem of path, not the length of the path to reach the file gauges.

Now I want to ask you some things in detail how often do you advise me to upgrade?

In the high bar thing I can slide as written?

I have seen on this site http://www.barcellonameteo.it/weather28/index.php?p=980&lang=it#data-area  that updates in 5 seconds and as' possible?
Title: Re: Steelseries Gauges for WD
Post by: virusdunil on January 26, 2016, 10:42:46 PM
Of course its not a lenght related problem and i didnt say it was hehe :wink:

i just said that there are some things that you could remove to shorten the link

please be more specifik...upgrade or ...update ?

what are you referring to the dials data update ?...if so,i guess 10 seconds is mostly use

 :wink:
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 26, 2016, 10:54:58 PM
Of course its not a lenght related problem and i didnt say it was hehe :wink:

i just said that there are some things that you could remove to shorten the link

please be more specifik...upgrade or ...update ?

what are you referring to the dials data update ?...if so,i guess 10 seconds is mostly use

 :wink:

I took your advice here goes:

http://ombarcellonapg.com/wdisplay/SteelSeries/gauges-ss-basic.htm

I can not put more 'than 10 seconds I put 20 in the file gauges.js
load it into the site via FTP but remains at 10 seconds, maybe I have to delete it and reload it from the server?


Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 27, 2016, 02:38:45 PM
Now there must be more ' and tells me That and ' timed out and and ' reached the limit of self Updates State , that problem' ? How can I fix ?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on January 27, 2016, 03:51:50 PM
By default the gauges stop updating after 20 minutes. You can change that by editing gauges.js, line 42...
Code: [Select]
            pageUpdateLimit   : 20,                     //period after which the page stops automatically updating, in minutes (default 20),
                                                        // - set to 0 (zero) to disable this feature

Or you can override it by supplying a password - default 'its-me', as...
http://..../gauges.htm&pageUpdate=its-me
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 27, 2016, 06:55:24 PM
By default the gauges stop updating after 20 minutes. You can change that by editing gauges.js, line 42...
Code: [Select]
            pageUpdateLimit   : 20,                     //period after which the page stops automatically updating, in minutes (default 20),
                                                        // - set to 0 (zero) to disable this feature

Or you can override it by supplying a password - default 'its-me', as...
http://..../gauges.htm&pageUpdate=its-me

Now it seems to work I set it to 0 to remove the limit .

E ' can change the graphic style of the gauges ?
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on January 27, 2016, 07:07:05 PM
Yes. Demo page:
http://www.wilmslowastro.com/steelseries/demoRadial.html
Title: Re: Steelseries Gauges for WD
Post by: Cavaliere89 on January 27, 2016, 07:12:51 PM
Yes. Demo page:
http://www.wilmslowastro.com/steelseries/demoRadial.html
thanks

When I configured as a favorite as I bring on my own?

In this lines?

fullScaleDeflectionTime : 4,            //Bigger numbers (seconds) slow the gauge pointer movements more
            gaugeType               : gaugeGlobals.gaugeType,
            minValue                : 0,
            niceScale               : true,
            ledVisible              : false,
            frameDesign             : gaugeGlobals.frameDesign,
            backgroundColor         : gaugeGlobals.background,
            foregroundType          : gaugeGlobals.foreground,
            pointerType             : gaugeGlobals.pointer,
            pointerColor            : gaugeGlobals.pointerColour,
            knobType                : gaugeGlobals.knob,
            knobStyle               : gaugeGlobals.knobStyle,
            lcdColor                : gaugeGlobals.lcdColour,
            lcdDecimals             : 1,
            digitalFont             : config.digitalFont,
            tickLabelOrientation    : gaugeGlobals.tickLabelOrientation,
            labelNumberFormat       : gaugeGlobals.labelFormat
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 23, 2016, 12:14:24 AM
Help  can anyone tell me why I have an update problem the timer starts normal and then goes backward????   
http://www.n7drd.org/wxssgauges.php (http://www.n7drd.org/wxssgauges.php)    #-o 
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 24, 2016, 05:07:22 PM
Yours is counting down properly from 10 for me, Steve. However I don't see a forecast running.
Title: Re: Steelseries Gauges for WD
Post by: niko on December 24, 2016, 05:17:27 PM
It's working for me today too, but I saw the problem when it was posted.
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 24, 2016, 06:09:43 PM
Hey guys I have it narrowed down to the wind rose dial when I put that on the screen it is mostly greyed out except the odometer and the page does not updae when I take that gauge off works fine???  Not sure how to get the forecast to run on his page he has an Accurite station..??
Title: Re: Steelseries Gauges for WD
Post by: niko on December 24, 2016, 06:22:43 PM
Forever had a similar problem (http://www.weather-watch.com/smf/index.php/topic,61314.msg489820.html#msg489820) but the windrose is working on that site now :dontknow:
Title: JSON parsing error using STEEL SERIES gauges setup
Post by: Priscilla55 on December 28, 2016, 08:18:36 PM
I went through the youtube video for setting up the Steel Gauges for a webpage using Weather Display program/data and a Acurite 01035 5-in-1 weather station.

I had most of the setup done right but had not put the customclientrawlocal.txt into the WD webfiles directory.
Once that was done, the gauges-ss-basic.htm webpage file does show gauges and they allow me to change units,
however there is a JSON parsing error. "parsererror: syntax error unexpected token in JSON in position 651.

Does anyone have an idea what the problem might be?  I know html and worked through exercises from a book on php a year ago but JSON is unfamiliar to me.

Thanks !
Title: Re: Steelseries Gauges for WD
Post by: niko on December 28, 2016, 08:28:24 PM
A link to the website may help anyone working on this.
Title: Re: Steelseries Gauges for WD: LINK
Post by: Priscilla55 on December 29, 2016, 01:16:15 AM
Here is a link to the basic htm file giving the parse error: http://priscillanhk.com/0_Weather/STEEL_DREAMS/gauges-ss-basic.htm


I also get a similar error if I try to run the php file:
http://priscillanhk.com/0_Weather/STEEL_DREAMS/gauges-ss-basic-inc.php

Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 01:22:36 AM
I'm not seeing an error just no gauges I think you have a path issue in the setup
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 01:40:49 AM
You see the error in Chrome Developer Tools:

Uncaught SyntaxError: Illegal return statement

and the line it doesn't like is the second return line in this section of code in gauges.js:

Code: [Select]
// if String doesn't offer a .trim() method, add it
String.prototype.trim = String.prototype.trim || function trim() {
    return this.replace(/^\s+|\s+$/g, '');
};

    return this.replace(/^\s+|\s+$/g, '');
};

Unfortunately I don't do javascript, but it looks like unmatched } so may be an "else" or similar line missing. Suggest looking at the same code in the original gauges.js in the download.
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 01:46:27 AM
Looking at the original I don't think those last two lines should be there at all, so I suggest deleting them:

Code: [Select]
    return this.replace(/^\s+|\s+$/g, '');
};
Title: Re: Steelseries Gauges for WD
Post by: Jachym on December 29, 2016, 02:04:37 AM
Yes, spot on Niko, they must be deleted, it is just copied from the previous line and it is an unclosed return statement, which should normally be inside a function, which it is, but it just got copied over and it is missing the initial function declaration, just delete it and use:

Code: [Select]
// if String doesn't offer a .trim() method, add it
String.prototype.trim = String.prototype.trim || function trim() {
    return this.replace(/^\s+|\s+$/g, '');
};
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 29, 2016, 05:06:09 PM
  Okay, thank you folks for offering  your suggestions!

I deleted those extra lines at the end of the the file. I really have no idea why there was an extra identical line.
I'm sure I did not add that myself - at least not with any awareness of doing so.
Deleting the lines did not change the result when running the file online, unless maybe the parse error
changed what line number the error occurs on, decreased the line number by 1.

Speaking of line numbers, the parse error says line 650. (I think it was  651 before).
BUTT, there IS NO LINE 650 in the steelseriesVWSjson.php file!!!! 
It must be talking about a line number from something else. But from what? And where can I go to fix it?


Several thoughts/questions about "steelseriesVWSjson.php"
1. Isn't VWS related to some other weather program, rather than being relevant to weather-display?
There is no other "json" file provided with steelgauges. The youtube video included uploading it.

2. Near the top of the steelseriesVWSjson.php file is the following line:
 $wflashDir = './wflash/Data/';  // directory for the the wflash.txt and wflash2.txt files
However, steelgauges does not come with any flash files of any kind that I can see.
Nothing I have seen / read, mentions what to do for this directory setting when using weather-display
with steelgauges.

I've been looking all over the place and reading, looking for something that might relate to the problem I am having;  the wiki, the FAQ for wd/steelseries, and even at another application of the steelseries at: http://leuven-template.eu/dokuwiki28/doku.php?id=en:steelseries
I'm just not finding ANY mention of the file with json in its name nor anything about parse errors.

Priscilla
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 05:22:59 PM
I believe the file you are looking for is gauges.js  this is what I used for Weather Display setup.
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 29, 2016, 05:28:16 PM
Two more things, which I don't know, might be relevant to the problem:

In the gauges.js file, near the top:
1.
 imgPathURL         : 'trends.gif',  //*** Change this to the relative path for your 'Trend' graph images
I have not done anything with this line so what you see here (above) is how it is in my gauges.js file.
I looked at my setup online and there IS a trends.gif file in a directory above my /STEEL_DREAMS directory,
however that trends.gif file is not GRAPHS, it is a TABLE generated by weather display.
Q: Should I go into wd and try to change trends.gif into a graph somehow?

2.
 oldGauges          : 'gauges.htm',           //*** Change this to the relative path for your 'old' gauges page.
I did not have any "Old gauges" in my set-up. I was just using things provided by wd (weather-display) program, ie, graphs and forecast icons and such.
Q: Do I need to put something on this line or just leave it as it is (above in green) ?
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 29, 2016, 05:47:58 PM
1. Most folks are using the wxgraphs scripts for the hover-over showing, so this would be...
Code: [Select]
imgPathURL         : './wxgraphs/',
2. Leave it as is since you don't have an 'old' page. Mine is the same situation - no old page, no change.

http://tiggrweather.net/wxssgauges.php
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 06:08:53 PM
Note that the graphs are not part of the steel package or WD, they are a set of third party jpgraphs that work with WD, that's a whole other step after you get the gauges working.

oldGuages was intended for those who previously used the Weather Display Live Flash based gauges.
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 29, 2016, 07:58:26 PM
Thank you Niko, for clearing that up - about the trends.gif graphs

I'll repeat the main problem I am still having for the sake of anyone following this thread:

1.  The gauges-ss-basic.htm webpage file does show gauges
2.  And they allow me to change units,
3.  However there is a JSON parsing error AND THE GAUGES DO NOT SHOW readings
     - ie the gauges are not dynamically active.

"parsererror: syntax error unexpected token in JSON in position 651"
 
Does anyone have an idea what the problem might be?
I know html and worked through exercises from a book on php a year ago but JSON is unfamiliar to me.

Thanks!
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 29, 2016, 08:03:09 PM
if you could post that line of code where the error is occuring?
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 08:08:10 PM
What version of php are you running?
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 08:22:42 PM
in gauges.js have you set the weather program to #1 for WD ?? 
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 29, 2016, 08:56:48 PM
Thank you all for helping!

My replies to the three of you most recently posting:

1. Yes I n7xrd, I changed gauges.js for the wd  setting = 1

2. Niko, I believe the php version is now 5.5. As I recall they updated it from 5.4 a year ago in the Fall.
I don't remember how to check that.

3. WEATHER DISPLAY:
I cannot give you the line of code producing the error since the parse error "message" claims it is line 641
while the only json related file in steel gauges is: steelseriesVWSjson.php
and that file ends at line 603.
The error shows up when I run: http://priscillanhk.com/0_Weather/STEEL_DREAMS/gauges-ss-basic.htm
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 09:26:27 PM
#2 - Should be OK, earlier versions had a problem with json. To see the version run:

Code: [Select]
<?php
echo 'Current PHP version: ' phpversion();
?>

#3 - It's not a line number, it's a json data element number. I'm not sure how to display it. Check that there is nothing strange in the customclientraw.txt.
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 10:01:08 PM
It appears the problem is that the forecast in customclientraw.txt is missing and replaced with carriage return linefeed and that is upsetting the parser. Maybe Brian has some insight into how that is happening :dontknow: Maybe the "%vpforecasttext%" tag doesn't return anything if you don't have a VP?

Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 10:05:13 PM
Niko here is a site I just setup for a friend that does not have a VP station the forecast is just blank.
http://n7drd.org/wxssgauges.php (http://n7drd.org/wxssgauges.php)
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 10:07:58 PM
Where's the customclientraw for that site?
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 10:09:57 PM
Where's the customclientraw for that site?
it's in the root directory
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 10:18:15 PM
Thanks I see the difference.
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 10:19:05 PM
I can post that setup file if they want to try it see what happens??
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 10:26:49 PM
I think Priscilla55 should try deleting the forecast tag from customclientrawlocal.txt on the PC:

Code: [Select]
Replace

,"forecast":"%vpforecasttext%",

with

,"forecast":"",
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 29, 2016, 10:27:13 PM
Is it possible the customclientrawlocal.txt file could have a flaw creating a bad customclientraw.txt??
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 10:28:44 PM
Certainly worth to check it out.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 29, 2016, 11:54:32 PM
you could try a new .zip update of WD
Title: Re: Steelseries Gauges for WD
Post by: niko on December 29, 2016, 11:58:46 PM
It's an old build "version":"10.37S","build":"37","ver":"12"
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 30, 2016, 12:08:13 AM
i have checked for any carriage returns or line feeds or spaces in that custom tag now in the latest .zip update
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 12:40:49 AM
Here is what is & has been, in the customclientraw.txt file that I have online:
"forecast":"",
Niko, this is what you suggested I put there -but it is already exactly the way you suggested to have it.

The script you gave me, Niko, to find the version of php on my server gave the results:
Current PHP version: 5.5.38


I'm not sure who is talking to whom about the build version of ... which?
 - was it weather-display or steelgauges you are talking about? 
I am not sure where to get the guaranteed
latest version of steelgauges. I thought I had it. I had so many tabs open
that I closed some of them including the one where I got the latest steelgauges.
Pretty sure it was a thread on this forum where the latest versions are posted.
It was a zip file and I still have that zip file.
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 30, 2016, 12:48:52 AM
the latest Weather Display zip file Brian said. If that line was already like Niko said maybe put it back to the original??  I have a site not running the Davis VP and I did not need to edit the original     
,"forecast":"%vpforecasttext%",
Title: Re: Steelseries Gauges for WD
Post by: niko on December 30, 2016, 12:58:02 AM
Here is what is & has been, in the customclientraw.txt file that I have online:
"forecast":"",
Niko, this is what you suggested I put there -but it is already exactly the way you suggested to have it.

It looks that way at first sight but I downloaded the file and in a programming editor you can see there are control characters in there (see below) also if you are using chrome, go to http://priscillanhk.com/0_Weather/STEEL_DREAMS/customclientraw.txt  and hit Ctrl U to see the source. On the left side of the page you can see it has split into lines 1 and 2 at the forecast (see below #2)

(http://realweatherstation.com/pixies/p55raw.png)

(http://realweatherstation.com/pixies/p55sce.png)

The version we are talking about is of Weather Display
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 01:13:13 AM
SOME PROGRESS!!

Before your recent posts, I looked at an older version of the customclientrawlocal.txt file
and found the forecast line was different.
Here is what I put in:
"forecast":"%dailywarning/forecast%",
This might not be what we really want BUT THE GAUGES NOW SHOW READINGS ON THEM!
Meanwhile my weather-display program itself has stopped running and is hung up,
so data is not refreshing at the moment.

That brings me to another question I keep forgetting to ask:
How do you close and re-start the weather-display program?
The "Save and exit" in the top menu doesn't ever work for me.
I've tried "action" and turned off main internet switch and then tried save and exit but that doesn't work either!!

Title: Re: Steelseries Gauges for WD
Post by: niko on December 30, 2016, 01:22:06 AM
That's good news, what weather station do you have?
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 01:22:32 AM
However, the customclientraw.txt file keeps reverting back to the one with the weirdness going
on in the forecast line. I don't know where to change it - nor the best way to do it
since weatherdisplay is running and constantly working with that file
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 01:24:33 AM
My weather station is the ACURITE 5-in-1 model 010351A
Title: Re: Steelseries Gauges for WD
Post by: niko on December 30, 2016, 01:38:23 AM
However, the customclientraw.txt file keeps reverting back to the one with the weirdness going
on in the forecast line. I don't know where to change it - nor the best way to do it
since weatherdisplay is running and constantly working with that file

customclientraw.txt is generated based on the customclientrawlocal.txt template file. So if you are sure you have edited and saved the template file (customclientrawlocal.txt) and it is somehow reverting I just don't understand this at all  :?

"ACURITE 5-in-1 model 010351A" OK that other forecast tag will be better for you.
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 01:59:26 AM
Okay,

1. I installed the DEC 29 build of weather display.

2. I have an older copy of the steelgauges zip file from .. about a week ago ... from somewhere.
I looked at THAT customclientrawlocal.txt and it does NOT have the line bread on the forecast line.
So I copied THAT version into my weather-display webfiles folder and let weather display have its way with it.
GOOD NEWS!! Right now the gauges are working!!

http://priscillanhk.com/0_Weather/STEEL_DREAMS/gauges-ss-basic.htm

and

http://priscillanhk.com/0_Weather/STEEL_DREAMS/gauges-ss-basic-inc.php

Hopefully they won't stop working for some reason...
I'll be away for a few hours before checking again.

Thank you for your help. I'll be back in the morning to report how things are looking :)

Priscilla
Title: Re: Steelseries Gauges for WD
Post by: niko on December 30, 2016, 02:40:07 AM
One website fine tuning tip  :)  You have no index file in either /0_Weather or /0_Weather/STEEL_DREAMS so it's possible for anyone to see the whole list of files in those folders which may not be desirable. Two solutions:

Add an index.html or .htm or .php file, even if it's an empty one.

or

If you are using the .htaccess file add this line right at the top:

Options +Includes +FollowSymLinks -Indexes  (or add -Indexes if there is already an Options line)

Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 05:31:40 AM
Niko;
Thank you for mentioning this. I have not been clear about, and have not looked into it, why going to some folders online without specifying any file, gives me a *.* type listing of all files, as you are describing, and why some folders do not.

My intention (goal) has been to work the steelgauges material into a main page which would I guess be named index.html file for that folder.  With the troubles just getting things working I have not thought much ahead
to how I will for example, change the name of gauges-ss-basic.htm    and still have it being refreshed
along with data uploads. Trying to think where that file name is set - but it came the zip file for steel gauges,
so I suppose I could name it anything as long as the contents are kept intact enough for the gauges to work.

Tomorrow I'll set up a dummy index.html in that folder, or else try the above sort of thing.
Title: Re: Steelseries Gauges for WD
Post by: Priscilla55 on December 30, 2016, 10:50:53 PM
I want to thank all of you who offered suggestions which ultimately led to my getting the steel gauges to show up and report weather data online.
THANK YOU!!

 :)

Priscilla
Title: Re: Steelseries Gauges for WD
Post by: niko on December 30, 2016, 11:14:03 PM
Good job Priscilla  :D
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on December 31, 2016, 12:29:23 AM
thanks also to Mark, the author of the Steel Gauges, for making them available and making them modular so they can be customised :)
Title: Re: Steelseries Gauges for WD
Post by: mcrossley on December 31, 2016, 04:52:57 PM
Looks like you guys have been having some fun whilst I took a little break.
Priscilla- glad you got them working in the end.

Brian/Niko - should I change the default forecast string variable from %vpforecasttext% in the template? If so, to what?
Title: Re: Steelseries Gauges for WD
Post by: niko on December 31, 2016, 05:08:45 PM
Mark, the problem in this case was a blank %vpforecasttext% that included a CRLF, I think Brian has fixed that and it shouldn't prevent the gauges working now. Not everyone has WD set up to generate a forecast so some might like current conditions instead but I can't think of a single tag that is going to please everybody so I would leave it as it is. 
Title: Re: Steelseries Gauges for WD
Post by: jgillett on December 31, 2016, 10:59:12 PM
Brian/Niko - should I change the default forecast string variable from %vpforecasttext% in the template? If so, to what?
Mark, since you asked, I set mine to %5dayforecastday1%. That gives me today's NWS forecast which is a heck of a lot better than the VP junk. See http://tiggrweather.net/wxssgauges.php and, just for fun, http://tiggrweather.net/davconvp2CW.php.

Also, could you please change the default params.useColorLabels = false; to true (line 1819 in v.17)? My old brain always manages to forget that one on an update and it's a bear to find.

Thanks.
Title: Re: Steelseries Gauges for WD
Post by: niko on December 31, 2016, 11:04:37 PM
Maybe change it to "put your forecast tag here"  :lol:
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on December 31, 2016, 11:16:15 PM
Mark, since you asked, I set mine to %5dayforecastday1%. That gives me today's NWS forecast which is a heck of a lot better than the VP junk. See http://tiggrweather.net/wxssgauges.php and, just for fun, http://tiggrweather.net/davconvp2CW.php.

Also, could you please change the default params.useColorLabels = false; to true (line 1819 in v.17)? My old brain always manages to forget that one on an update and it's a bear to find.

Thanks.
I changed mine like this and it says Today!     no scroll
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 01, 2017, 12:32:11 AM
you would need to have the 5 day forecast setup in WD
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on January 01, 2017, 12:37:23 AM
you would need to have the 5 day forecast setup in WD
Can't get it to download the file everything is set correct but no go I can copy the link in the browser works fine ??  When I use the test button and view the log I get something about the Metar and at the end it gets an  151:HTTP error protocol

***Start Time/date***:4:41:59 PM 12/31/2016
waz021.txt
Permanent connection selected
Permanent connection, will do ftp now
Checking for what else to do...
there are 2 more things to do
Checking for what else to do...
there are 1 more things to do
Next file HTTP metar station download
http://weather.noaa.gov/pub/data/observations/metar/decoded/KAST.TXT
Downloading to :C:\Server\wdisplay\metar\KAST.met
final download setting=C:\Server\wdisplay\metar\KAST.met
Doing metar download now
Download complete
ERROR: 151: HTTP protocol error. 404 Not Found. at time/date 4:42:00 PM
12/31/2016 agenda item: doftpdownmetarstation
Doing abort procedure/program close...
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on January 01, 2017, 12:51:18 AM
that error is because it should be using the https instead of http
but WD now uses the separate cronmetardownload.exe
what version of WD are you using?

also note that what you have posted is not the NOAA forecast 5 day download function though
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on January 01, 2017, 04:19:07 AM
that error is because it should be using the https instead of http
but WD now uses the separate cronmetardownload.exe
what version of WD are you using?

also note that what you have posted is not the NOAA forecast 5 day download function though
  10.37S-36  and this is the screen I am using to download the file.  Don't see an option to change HTTPS I am using the NOAA forecast download page test button
Did a fresh reboot and it appears working not sure why haven't changed anything but I'll take it!!   :D Will watch for a bit see what happens.
Title: Re: Steelseries Gauges for WD
Post by: jgillett on January 01, 2017, 04:10:09 PM
I changed mine like this and it says Today!     no scroll
Did you change the forecast item in customclientrawlocal.txt?
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on January 01, 2017, 04:14:35 PM
Yes working now looks good Thank You!!
Title: Re: Steelseries Gauges for WD
Post by: M.P.C. on January 19, 2017, 04:43:47 PM
Steelseries Gauges in 18 language.
http://www.celinmeteo.com/wdisplay/wxnew.php (http://www.celinmeteo.com/wdisplay/wxnew.php)

 :D
Title: Re: Steelseries Gauges for WD
Post by: Jachym on January 19, 2017, 06:33:24 PM
OT: I was looking at your site, you need to get Google Maps API key, your maps arent working

Eg:
http://www.celinmeteo.com/wdisplay/weather_W.php

And in Czech, it should not be:

actualitzaci

but

aktualizace

;)

OT: Just curious, are all the laptops/PCs used for your PWS? http://www.celinmeteo.com/wdisplay/wxabout.php
Title: Re: Steelseries Gauges for WD
Post by: M.P.C. on January 19, 2017, 09:48:15 PM

Hi Jachym,

I used several weather stations: LaCrosse WS 2310, WMR968 Oregon, Oregon WMR200, Davis Vantage Pro2, Netatmo. Now I use only the last two.
Data archive can be found at WU.

Marian
 :roll:
Title: Re: Steelseries Gauges for WD
Post by: hydrowx on January 19, 2017, 11:34:29 PM
Just installing the Steelseries gauges and got the gauges-ss-basic.htm file to show all the gauges correctly but having trouble with the wxssgauges.php. Nothing displays in the wxssgauges.php but the attached. Any other settings I may be missing?  Thanks
Title: Re: Steelseries Gauges for WD
Post by: Jachym on January 20, 2017, 12:12:17 AM
Hi Jachym,

I used several weather stations: LaCrosse WS 2310, WMR968 Oregon, Oregon WMR200, Davis Vantage Pro2, Netatmo. Now I use only the last two.
Data archive can be found at WU.

Marian
 :roll:

"only two" :) A true enthusiast ;)
Title: Re: Steelseries Gauges for WD
Post by: M.P.C. on January 20, 2017, 01:20:05 AM
http://celinmeteo.com/wdisplay/Banner/banner5.php (http://celinmeteo.com/wdisplay/Banner/banner5.php)
Title: Re: Steelseries Gauges for WD
Post by: hydrowx on January 20, 2017, 05:10:09 PM
Just installing the Steelseries gauges and got the gauges-ss-basic.htm file to show all the gauges correctly but having trouble with the wxssgauges.php. Nothing displays in the wxssgauges.php but the attached. Any other settings I may be missing?  Thanks

Disregard. I'm in the process of updating my templates and have created a dir on my web server for testing purposes. As such I forgot to modify the relative path for the SSG files in the wxssgauges.php.

Bill
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on February 09, 2017, 03:25:38 PM
Well everything has been working great until today the scroll on the gauges is stuck????
http://www.n7drd.org/wxssgauges.php (http://www.n7drd.org/wxssgauges.php)
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 10, 2017, 02:40:21 AM
what did you have it set to show?
(the more information you can provide, the better)
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on February 10, 2017, 02:44:41 AM
what did you have it set to show?
(the more information you can provide, the better)
  %5dayforecastday1%  been working great for a few months then today it sopped.
Title: Re: Steelseries Gauges for WD
Post by: Weather Display on February 10, 2017, 02:49:05 AM
see other threads about that
(you need to be using build 42, as noaa changed the format)
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on February 10, 2017, 02:52:00 AM
Will update now see what happens. Thank You!
Title: Re: Steelseries Gauges for WD
Post by: n7xrd on February 10, 2017, 03:03:23 AM
Thanks Again Brian worked like a charm!   :D
Title: Re: Steelseries Gauges for WD
Post by: rford on February 11, 2019, 09:37:40 PM
I updated the Steel Series Gauges on my site today...they seem to be working OK https://www.turnerdownsweather.com/gauges-ss-basic.htm (https://www.turnerdownsweather.com/gauges-ss-basic.htm)

I cannot remember how to incorporate the page into my Saratoga-Templates.  Could someone please provide me with the code to make that happen.  Thanks in advance...

Ronnie


I was able to get this resolved...please disregard.

Ronnie