Author Topic: Top radar images  (Read 574 times)

0 Members and 1 Guest are viewing this topic.

Offline JupiterJoe

  • Senior Contributor
  • ****
  • Posts: 195
  • JupiterWX.com
    • Live Jupiter, FL Weather
Top radar images
« on: February 23, 2024, 12:28:02 PM »
Hi guys, my top left radar image has been mia for a while now. I was thinking of adding this graphic there, ( https://radar.weather.gov/ridge/standard/SOUTHEAST_loop.gif ) but not sure where to input the new url.
Thank you for any guidance.
www.jupiterwx.com

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: Top radar images
« Reply #1 on: February 23, 2024, 12:37:09 PM »
I'm able to open that radar image. Shows Florida rain moving through.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline JupiterJoe

  • Senior Contributor
  • ****
  • Posts: 195
  • JupiterWX.com
    • Live Jupiter, FL Weather
Re: Top radar images
« Reply #2 on: February 23, 2024, 12:41:17 PM »
Yes, that link graphic is what I’d like to put on the top left image on my weather page which has been unavailable for a while now, but I’m not sure where to add it in the code.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: Top radar images
« Reply #3 on: February 23, 2024, 01:11:26 PM »
Personally, I added my two images to my index.php file.  I think there is a way to do it via your settings.php file, but I never looked into it further.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Online BKS97

  • Senior Contributor
  • ****
  • Posts: 178
    • Sartell East Weather
Re: Top radar images
« Reply #4 on: February 23, 2024, 04:05:23 PM »
You can place an override script in Settings.php.  For example, to replace the right-side WU satellite map with a Goes 16 image, as I did, the override should be inserted just below the WU block of script in Settings.php:

______________________________________

$SITE['WUsatellite'] = 'nc'; // Wunderground regional satellite maps
// ="nw" North West, ="nc" North Central, ="ne" North East,
// ="wc" West Central, ="ce" Central, ="ec" East Central,
// ="sw" South West, ="sc" South Central, ="se" South East,

$SITE['rightMap'] = "Satellite|https://cdn.star.nesdis.noaa.gov/GOES16/ABI/SECTOR/umv/GEOCOLOR/GOES16-UMV-GEOCOLOR-600x600.gif|";

_________________________________________

In your case, you would have to substitute $SITE['rightMap'] with $SITE['leftMap'].  This thread provides more information:

https://www.wxforum.net/index.php?topic=45590.msg461998#msg461998

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: Top radar images
« Reply #5 on: February 23, 2024, 05:39:54 PM »
I'd like to see if I can return my setup to stock setup.

I added those $SITE['rightMap'] and $SITE['leftMap'] into my Settings.php file.

I think I'm missing what's needed in my index.php file to point to that map.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline JupiterJoe

  • Senior Contributor
  • ****
  • Posts: 195
  • JupiterWX.com
    • Live Jupiter, FL Weather
Re: Top radar images
« Reply #6 on: February 23, 2024, 06:38:11 PM »
Thank you. It's interesting. Though an image comes up now after I add the code, it's the wrong image. It shows California instead of the linked map. Hmmm


You can place an override script in Settings.php.  For example, to replace the right-side WU satellite map with a Goes 16 image, as I did, the override should be inserted just below the WU block of script in Settings.php:

______________________________________

$SITE['WUsatellite'] = 'nc'; // Wunderground regional satellite maps
// ="nw" North West, ="nc" North Central, ="ne" North East,
// ="wc" West Central, ="ce" Central, ="ec" East Central,
// ="sw" South West, ="sc" South Central, ="se" South East,

$SITE['rightMap'] = "Satellite|https://cdn.star.nesdis.noaa.gov/GOES16/ABI/SECTOR/umv/GEOCOLOR/GOES16-UMV-GEOCOLOR-600x600.gif|";

_________________________________________

In your case, you would have to substitute $SITE['rightMap'] with $SITE['leftMap'].  This thread provides more information:

https://www.wxforum.net/index.php?topic=45590.msg461998#msg461998

Offline JupiterJoe

  • Senior Contributor
  • ****
  • Posts: 195
  • JupiterWX.com
    • Live Jupiter, FL Weather
Re: Top radar images
« Reply #7 on: February 26, 2024, 09:53:02 PM »
Hi guys, revisiting this to see if anyone knows why a west coast image shows instead of a southeast image. Thank you for any help, I just can't find it!!!  ](*,) ](*,)

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Top radar images
« Reply #8 on: February 26, 2024, 11:16:37 PM »
Looking at the page source for your index.php shows
Quote
<!-- incorrect leftMap='Satellite|https://radar.weather.gov/ridge/standard/SOUTHEAST_loop.gif|' for left map - using 'sw' map instead. -->
so that's what is causing the default sw map to show.

In the README-2020-06-10-dashboard-maps.txt it says:
Quote
Either or both can be overridden by custom settings:

$SITE['leftMap']  = '<name>|<URL>[|<link-to-page>]';
$SITE['rightMap'] = '<name>|<URL>[|<link-to-page>]';

where:
<name> is the name of the map to display on mouseover (in alt= and title=)
<URL>  is the URL (fully qualified or relative) of the img file to display
<link-to-page> is the OPTIONAL URL (fully qualified or relative) that will be
       used in an <a href=... with a title="Click to open <name> page in new tab."

In your Settings.php you have
Quote
$SITE['NWSregion'] = 'se'; // NOAA/NWS regional radar maps
// 'ak' = Alaska,
// 'nw' = Northwest, 'nr' = Northern Rockies, 'nm' = North Mississippi Valley,
// 'nc' = Central Great Lakes,  'ne' = Northeast,
// 'hi' = Hawaii,
// 'sw' = Southwest, 'sr' = Southern Rockies, 'sc' = Southern Plains,
// 'sm' = South Mississippi Valley, 'se' = Southeast

$SITE['WUsatellite'] = 'se'; // Wunderground regional satellite maps
// ="nw" North West, ="nc" North Central, ="ne" North East,
// ="wc" West Central, ="ce" Central, ="ec" East Central,
// ="sw" South West, ="sc" South Central, ="se" South East,
$SITE['leftMap'] = "Satellite|https://radar.weather.gov/ridge/standard/SOUTHEAST_loop.gif|";

Your $SITE['leftMap'] entry has a trailing | but no alt URL, so removing the trailing | before " should fix the issue;
or you could just comment out $SITE['leftMap'] and the SE radar loop should show.
« Last Edit: February 26, 2024, 11:29:38 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 JupiterJoe

  • Senior Contributor
  • ****
  • Posts: 195
  • JupiterWX.com
    • Live Jupiter, FL Weather
Re: Top radar images
« Reply #9 on: February 28, 2024, 10:22:18 AM »
Thank you, Ken!
Removing the trailing | didn't do the trick, but commenting out that line of code did it. Thank you. It was driving me crazy!