cloudy cloudy

Author Topic: scale of the thermometer  (Read 155 times)

0 Members and 1 Guest are viewing this topic.

Offline eb3bvb

  • Posts: 130
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • meteotorrelavega
scale of the thermometer
« on: June 13, 2018, 10:13:29 AM »
Hi, could you tell me where it is set so that the scale of the thermometer goes blank
Thank you

Offline saratogaWX

  • Global Moderator
  • Posts: 5,779
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • Saratoga Weather
Re: scale of the thermometer
« Reply #1 on: June 13, 2018, 02:47:17 PM »
You are using the Bashewa mods to my thermometer.php script.  In his script there is
Code: [Select]
// TICK COLORS     :
// -----------------
//     black #000000
//     white #FFFFFF
//       red #FF0000
//     green #008000
//      blue #0000FF
//    yellow #FFFF00
//   fuchsia #FF00FF
//    orange #FFA500
// lightgrey #D3D3D3
//  darkgrey #A9A9A9
//   dimgray #696969
// -----------------
$tickColor    =  '#D3D3D3'; // color for tick marks and UOM
$tickMaxColor =  '#FF0000'; // color for max temp text
$tickMinColor =  '#008000'; // color for min temp text
which allows you to set the tick mark colors.  Is that what you wanted?
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline eb3bvb

  • Posts: 130
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • meteotorrelavega
Re: scale of the thermometer
« Reply #2 on: June 13, 2018, 03:30:38 PM »
Hello Ken
I use the Saratoga thermometer
Bashewa's is not configured for Cumulus and I do not know if you can
I have marked in red what I want to change

Offline saratogaWX

  • Global Moderator
  • Posts: 5,779
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • Saratoga Weather
Re: scale of the thermometer
« Reply #3 on: June 13, 2018, 08:21:47 PM »
So you want to change to white lettering/scale/ticks .. if so, then on thermometer.php 1.07 - 02-Apr-2011 change:

Code: [Select]
if (preg_match('|black|i',$CSSstyle) ) {
$invertColor = true;
}
to
Code: [Select]
if (true or preg_match('|black|i',$CSSstyle) ) {
$invertColor = true;
}
and that will force it to display white letters/scale/ticks
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline eb3bvb

  • Posts: 130
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • meteotorrelavega
Re: scale of the thermometer
« Reply #4 on: June 14, 2018, 07:58:18 AM »
thank you very much  :D

 

cumulus