Author Topic: Change color thermometer  (Read 739 times)

0 Members and 1 Guest are viewing this topic.

Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Change color thermometer
« on: October 16, 2021, 03:33:53 AM »
Good morning, I would like to customize the color of the thermometer of my Saratoga template.
I've seen websites that have it, and not just red. I don't know if it's a script or image modification.
Someone could enlighten me
Thank you

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Change color thermometer
« Reply #1 on: October 16, 2021, 02:41:39 PM »
It's just a background image replacement.  On your website, just rename 'thermometer-blank.png' to 'thermometer-blank-old.png' and then rename the background for the new thermometer to 'thermometer-blank.png' and it should work fine
« Last Edit: October 16, 2021, 02:44:42 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Re: Change color thermometer
« Reply #2 on: October 16, 2021, 02:49:21 PM »
It's just a background image replacement.  On your website, just rename 'thermometer-blank.png' to 'thermometer-blank-old.png' and then rename the background for the new thermometer to 'thermometer-blank.png' and it should work fine
Thanks for answering, I just have a question where do I get the original image?

Enviado desde mi M2007J20CG mediante Tapatalk


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Change color thermometer
« Reply #3 on: October 16, 2021, 03:52:40 PM »
Here's the original collection of images from Bashewa.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Re: Change color thermometer
« Reply #4 on: October 16, 2021, 05:45:53 PM »
Here's the original collection of images from Bashewa.

Thanks for your help. That didn't work for me. Only changing the image did the indicator appear in red.
Googling I found a thermometer.php that works. But it's weird, I can't open it to see its code ...

This is how it works, any explanation?
www.meteoviso.es


Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Re: Change color thermometer
« Reply #5 on: October 17, 2021, 02:59:05 AM »

Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Re: Change color thermometer
« Reply #6 on: October 17, 2021, 06:59:03 AM »
Finally it does not work, if I only change the background image, the image comes out but the red color still comes out. If I use the php that I download it does not change the temperature
No ok
http://meteoviso.es/thermometer.php?t=25.6


Its ok
http://www.meteopozuelo.es/thermometer.php?t=18.9
« Last Edit: October 17, 2021, 01:57:48 PM by CarlosLSev »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Change color thermometer
« Reply #7 on: October 17, 2021, 04:16:58 PM »
Ah, yes.. I remember now.
My script fills the red bar UP from the bottom.  Bashewa's script writes grey down from the TOP to mask the gradient out.

You can use http://www.meteopozuelo.es/thermometer.php?t=18.9&sce=view for the code to Bashewa's script for the thermometer.php.  Be aware that that version ONLY supports Weather-Display or VWS (and not CumulusMX).

Here's a version that supports Cumulus/CumulusMX attached.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Re: Change color thermometer
« Reply #8 on: October 17, 2021, 04:36:30 PM »
That's exactly what I wanted, thank you very much.


Enviado desde mi M2007J20CG mediante Tapatalk

« Last Edit: October 18, 2021, 10:27:29 AM by CarlosLSev »