Author Topic: Radar-Status  (Read 362 times)

0 Members and 1 Guest are viewing this topic.

Offline HamiltonNJWX

  • Senior Member
  • **
  • Posts: 60
    • HamiltonWx
Radar-Status
« on: June 11, 2020, 05:32:29 PM »
Performed the updates for the webpage today and everything seems to be working great, Thanks Ken!  One thing I did notice, is that my radar status no longer comes up on my wxnwsradar page. I did also update all files that were in need, but rechecked the radar-status page, and it does report results standalone. Any ideas?

Www.hamiltonwx.com/wxnwsradar.php


Sent from my iPhone using Tapatalk

Online Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 727
    • Lake Huron Weather
Re: Radar-Status
« Reply #1 on: June 11, 2020, 05:35:16 PM »
I'm not sure but think the "status" shows up when available from the source.  There are times that mine does not show up and then it will.  Anyway, yes ken will be able to sort it.

CW3699

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Radar-Status
« Reply #2 on: June 11, 2020, 05:54:06 PM »
When radar-status.php is included in the wxnwsradar page, it uses a different interface than normal, and the code in radar-status.php
Code: [Select]
if (isset($statRadar)) { // for include in wxnwsradar script
  $myRadar = $statRadar; // use current radar in wxnwsradar scripts
$includeMode = true;   // force include mode
$noMsgIfActive = true; // suppress message if active
}
turns off the display if the radar is active. (not paying any attention to your Settings.php
Code: [Select]
$SITE['showradarstatus'] = true; // set to false to suppress 'active' message by radar-status.php
To honor the display as you wish, change radar-status.php to
Code: [Select]
if (isset($statRadar)) { // for include in wxnwsradar script
  $myRadar = $statRadar; // use current radar in wxnwsradar scripts
$includeMode = true;   // force include mode
$noMsgIfActive = false; // always show
}
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 HamiltonNJWX

  • Senior Member
  • **
  • Posts: 60
    • HamiltonWx
Re: Radar-Status
« Reply #3 on: June 11, 2020, 06:27:25 PM »
Works like a charm, Ken. Thank you again for everything!! 

P.S.  it’s great having current radar on the home page again!!

Online Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 727
    • Lake Huron Weather
Re: Radar-Status
« Reply #4 on: June 11, 2020, 08:03:52 PM »
Well learned something today, makes it a good day.  Thanks for straightening it out [for me] Ken

CW3699

 

anything