Author Topic: Steel Gauges  (Read 116438 times)

ha-rob

  • Gentle Breeze
  • **
  • Posts: 23
    • IBUSKERU54
    • UranusWeather
  • Station Details: Davis Vantage Vue on MAC OS X 10.11.6
Re: Steel Gauges
« Reply #465 on: August 23, 2016, 06:34:11 PM »
Do you upload the realtimegaugesWC.txt file properly onto your webspace?

I can´t find the file with that exact name. What I consider to do, is to upgrade both the WC version and the template version, and hopefully that will fix the problem and some other minor problems I have. I have had the same versions for almost 3 years now, so maybe it's smart to do a "clean up".

Rob

Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #466 on: August 24, 2016, 02:14:40 AM »
Your version is quite old. The current version is 2.5.15. However, you are using the Leuven Template and Wim no longer uses Mark's latest version. Wim has adapted the SteelSeries files for the template. You should probably update to the latest version that Wim is including in the template. This forum thread is primarily for Mark Crossley's scripts. Wim provides support for the version of SteelSeries he uses with his template. Hope this helps.
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1240
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini Mid 2011 2,7 GHz Intel Core i7 with 12 GB of RAM | 1x Canon EOS 1300D | macOS 10.14.6 Mojave
Re: Steel Gauges
« Reply #467 on: October 25, 2016, 06:47:38 PM »
Hi Mark,

just want to tell you that your SteelSeries are working perfect not only on my main weather site but also on the Meteotemplate! Waiting on the Cloud-Height-Graph you are using in your website.

 ;)

Cheers,
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #468 on: October 25, 2016, 07:27:07 PM »
Reinhard, your Meteotemplate SteelSeries page is gorgeous. I really like your colour selection.
Blick


mcrossley

  • Strong Breeze
  • ***
  • Posts: 241
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Steel Gauges
« Reply #469 on: October 25, 2016, 10:37:58 PM »
Hi Mark,

just want to tell you that your SteelSeries are working perfect not only on my main weather site but also on the Meteotemplate! Waiting on the Cloud-Height-Graph you are using in your website.

 ;)

Cheers,
Nicely done Reinhard - I think that is the first Meteotemplate/SteelSeries integration I have seen.
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #470 on: January 11, 2017, 06:31:53 PM »
Mark:

I recently obtained an encryption certificate for my website using SSL. Using the secure URL results in me not being able to see the SteelSeries Gauges although they still appear without it. Any suggestions?

https://timberlakesutah.com/weather/ cannot see the gauges using Safari

http://timberlakesutah.com/weather/ can see the gauges
Blick


mcrossley

  • Strong Breeze
  • ***
  • Posts: 241
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Steel Gauges
« Reply #471 on: January 11, 2017, 11:31:43 PM »
Yes, it because the main page is loaded as HTTPS, but the sub-pages are still being loaded as HTTP - mixed content is blocked by default.

If you want to switch the site the HTTPS then you will have to also change all the internal links to HTTPS as well.

You will also need to edit script loads the change to https where they come from a different site, eg. <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> - Assuming the third party supports https, if they don't then you will need to provide a local copy of the script and reference it without the site which means it works with both http and https, eg. <script src="/myscripts/jquery-1.11.1.min.js"></script>

Moving to HTTPS can be non-trivial exercise :(
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #472 on: February 14, 2017, 10:43:49 PM »
Mark:

Thanks for the insight on complying with a security certificate. I am making progress. I have a few questions about some lines in three scripts.

gauges.js
line 170-176 are external links to the various websites of supported weather software programs, none of which currently support https, but as they are only an external link and not actually loading any data or scripts, I assume leaving the correct http link as is, is ok.

language.min.js
line 2 has some error messages like StatusHttp:"HTTP Request Failed", in various languages.
I assume these are ok to leave as is, or should I change to read:
StatusHttp:"HTTPS Request Failed",

Same question about the language.js file:
line 2062 StatusHttp:"Erro no pedido HTTP",
I don't anticipate using this language but should I change the error message to
StatusHttp:"Erro no pedido HTTPS"

Otherwise, I believe I have successfully changed all other scripts referencing http to https.

You are right, this is not a trivial exercise!  :(
Blick


mcrossley

  • Strong Breeze
  • ***
  • Posts: 241
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Steel Gauges
« Reply #473 on: February 14, 2017, 10:54:13 PM »
Mark:

Thanks for the insight on complying with a security certificate. I am making progress. I have a few questions about some lines in three scripts.

gauges.js
line 170-176 are external links to the various websites of supported weather software programs, none of which currently support https, but as they are only an external link and not actually loading any data or scripts, I assume leaving the correct http link as is, is ok.
Leave as is, they launch in a new page anyway so it doesn't really matter.


language.min.js
line 2 has some error messages like StatusHttp:"HTTP Request Failed", in various languages.
I assume these are ok to leave as is, or should I change to read:
StatusHttp:"HTTPS Request Failed",

Same question about the language.js file:
line 2062 StatusHttp:"Erro no pedido HTTP",
I don't anticipate using this language but should I change the error message to
StatusHttp:"Erro no pedido HTTPS"
For completeness they should all be changed. But I don't think anyone will ever notice - you never get download errors do you? ;)


Otherwise, I believe I have successfully changed all other scripts referencing http to https.

You are right, this is not a trivial exercise!  :(
Well done, I might be brave enough to do it myself one day....
Mark

Randall75

  • Storm
  • *****
  • Posts: 1243
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 OS High Sierra 10.13.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: Steel Gauges
« Reply #474 on: February 14, 2017, 11:26:07 PM »
Hi mark and Blick
 I just updated to 2.5.18 and to get my Weather name to show up at the top of page I had to add some code to get it to work.


you can see it here: http://randysweatheronthehill-usa.com/gauges-ss-basic.htm


so is there a better way to do this I had to add: <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 </head>
  <body>
    <div class="row"> <canvas id="canvas_header" width="25" height="25"></canvas>&nbsp;&nbsp;&nbsp;<big><big>
          <big> <b>RANDY'S WEATHER ON THE HILL&nbsp;&nbsp;&nbsp;
              REFORM, OHIO </b></big></big></big>


thanks

Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #475 on: February 15, 2017, 12:16:25 AM »
For completeness they should all be changed. But I don't think anyone will ever notice - you never get download errors do you? ;)
...
Well done, I might be brave enough to do it myself one day....
Ha ha. You are correct, I've never had a download error with my SteelSeries Gauges because your scripts work. Thanks, mate.  ThU5:-)
Converting a site from http to https is not for the faint of heart.

Hi mark and Blick
 I just updated to 2.5.18 ...
Aaaaagh! Don't tell me that. I just spent all day editing my 2.5.15 scripts to comply with my security certificate. Now I have to start all over again.  :'(

On a happier note, your title looks fine to me.
Blick


Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #476 on: February 15, 2017, 05:38:07 AM »
Mark:

Can you help me understand the change to the Metar default on line 54 in gauges.js? If the default used to be enabled, but now is disabled, do i want to enable it here in order to keep the wind direction gauge functioning in 2.5.18 like it was in 2.5.15?

Thanks. The changes you made are nice, but Reinhard is going to ask you where is the altimeter face for the Cloud Base gauge.  :)
Blick


mcrossley

  • Strong Breeze
  • ***
  • Posts: 241
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Steel Gauges
« Reply #477 on: February 15, 2017, 09:26:33 AM »
Can you help me understand the change to the Metar default on line 54 in gauges.js? If the default used to be enabled, but now is disabled, do i want to enable it here in order to keep the wind direction gauge functioning in 2.5.18 like it was in 2.5.15?
The change just removes the bit of text in the hover pop-up on the gauge that displays a bit of pseudo METAR type info eg. METAR 17405G10KT 120V240
Most people found that confusing so I have defaulted it to being 'off'.


Thanks. The changes you made are nice, but Reinhard is going to ask you where is the altimeter face for the Cloud Base gauge.  :)
Ah, that needs some changes to both the script and the SteelSeries libraries.
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3245
    • EW3808
    • KUTHEBER6
    • Timber Lakes Utah
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP™ Data Logger | iMac (late 2013), 3.5 GHz Intel Core i7, 24 GB RAM, macOS Mojave | Sharx SCNC2900 Webcam | Supportive Wife
Re: Steel Gauges
« Reply #478 on: February 15, 2017, 03:14:27 PM »
Thank you for the explanation and quick reply. Again, the tweaks and enhancements that you incorporated are much appreciated. I went through a file by file comparison of every item in the download and you cleaned up a lot of extra spaces and lines, in addition to giving us some nice improvements. Very nice work, Mark, and much appreciated! You are my favourite non-user of WeatherCat.  :D
Blick


mcrossley

  • Strong Breeze
  • ***
  • Posts: 241
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: WH1090
Re: Steel Gauges
« Reply #479 on: February 15, 2017, 08:33:00 PM »
Thank you for the explanation and quick reply. Again, the tweaks and enhancements that you incorporated are much appreciated. I went through a file by file comparison of every item in the download and you cleaned up a lot of extra spaces and lines, in addition to giving us some nice improvements. Very nice work, Mark, and much appreciated!
Github will do the 'diffs' for you as well for a quick look-see what has changed on the web before you decide if it is worth updating in the future.


You are my favourite non-user of WeatherCat.  :D
Ah, Jachym must be challenging me on that front now  [cheers1]
Mark