Page 1 of 1
SteelSeries Gauges script
Posted: Sun 17 Jan 2021 9:55 pm
by andersondj
Can anyone point me to a download link for a SteelSeries Gauges script suitable for integrating into the Saratoga Weather Template?
Re: SteelSeries Gauges script
Posted: Sun 17 Jan 2021 10:17 pm
by ConligWX
old link:
viewtopic.php?t=9262
dont think there is one. you use a new page from satatoga templates: copy wxnewpage.php and rename it.
then use the Steelgauages template:
viewtopic.php?f=21&t=7186 and use that on you website. gauges-ss-basic.htm should be added to the wx?????.page.php you have created.
Re: SteelSeries Gauges script
Posted: Mon 18 Jan 2021 12:14 pm
by mcrossley
The package has a PHP "include" file version of the demo page (gauges-ss-basic-inc.php) that is designed to be included within an existing PHP framework page.
Re: SteelSeries Gauges script
Posted: Mon 18 Jan 2021 6:47 pm
by andersondj
I have inserted the contents of gauges-ss-basic-inc.php into an "empty" Saratoga template page wxgaugesda.php.
When I run
https://eastleake-weather.org.uk/wxgaugesda.php the 2 temperature gauges are showing incorrect values.
However when I run
https://eastleake-weather.org.uk/gauges-ss-basic.htm the temperatures gauges show the correct values as shown in realtimegauges.txt
Any ideas as to what I have done incorrectly when running the gauges script in the Saratoga template?
On another matter I posted several days ago you will notice in eastleake-weather.org.uk the dashboard wind units are inconsistent. The default value in settings is mph. However the daily average and gust values are displayed in km/h whereas the monthy gust is correctly displayed in mph. The various Trends and NOAA reports all display wind in mph. Is this inconsistency by design or a bug?
David.
Loughborough UK
Re: SteelSeries Gauges script
Posted: Tue 19 Jan 2021 5:19 pm
by mcrossley
Those are problems in your Saratoga template set up, so I'll have to leave that to Ken or others to answer.
Re: SteelSeries Gauges script
Posted: Tue 19 Jan 2021 7:31 pm
by ConligWX
andersondj wrote: ↑Mon 18 Jan 2021 6:47 pm
I have inserted the contents of gauges-ss-basic-inc.php into an "empty" Saratoga template page wxgaugesda.php.
When I run
https://eastleake-weather.org.uk/wxgaugesda.php the 2 temperature gauges are showing incorrect values.
However when I run
https://eastleake-weather.org.uk/gauges-ss-basic.htm the temperatures gauges show the correct values as shown in realtimegauges.txt
Any ideas as to what I have done incorrectly when running the gauges script in the Saratoga template?
On another matter I posted several days ago you will notice in eastleake-weather.org.uk the dashboard wind units are inconsistent. The default value in settings is mph. However the daily average and gust values are displayed in km/h whereas the monthy gust is correctly displayed in mph. The various Trends and NOAA reports all display wind in mph. Is this inconsistency by design or a bug?
David.
Loughborough UK
David, send me a pm and attach your wxgaugesda.php (as a txt file) I'll have a look at it against my own.
https://www.conligwx.org/wxssgauges.php
as to wind. in settings.php have you set the wind unit?
Code: Select all
$SITE['uomWind'] = ' mph'; // =' km/h', =' kts', =' m/s', =' mph'
and ajax-dashboard.php
you have a couple of updates too:
http://eastleake-weather.org.uk/check-f ... w=versions
Re: SteelSeries Gauges script
Posted: Thu 21 Jan 2021 11:05 am
by andersondj
I have checked the uomwind parameters in settings.php and ajax-dashboard.php and they are both set to mph.
Re: SteelSeries Gauges script
Posted: Thu 21 Jan 2021 11:11 am
by ConligWX
the only other place I know of is:
ajaxCUwx.js
edit the contents of the settings within this file. be carefull.
Code: Select all
var useMPH = true; // set to true to force MPH for both English and Metric units
Re: SteelSeries Gauges script
Posted: Thu 21 Jan 2021 1:37 pm
by andersondj
I checked ajaxCUwx.js and var useMPH was set to false. Setting it true solved my problem!
Thanks Simon.
Re: SteelSeries Gauges script
Posted: Fri 22 Jan 2021 7:52 pm
by ConligWX
your welcome. glad I could help.
BTW thermometer.php change the
Code: Select all
$tickColor = '#FFFFFF'; // color for tick marks and UOM
to
Code: Select all
$tickColor = '#000000'; // color for tick marks and UOM
you're missing the scale text.