Author Topic: WU Radar Saratoga Scripts  (Read 1464 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
WU Radar Saratoga Scripts
« on: March 02, 2017, 01:21:01 PM »
I just noticed something odd with my radar page and the Saratoga scripts.  If I go the WUnderground radar, then click on Fronts on the bottom, I get a page that has Bismarck out in the ocean near Oregon instead of in North Dakota.

I'm guessing I have some lat/long setting off somewhere.  Not sure where.

http://www.bismarckweather.net/wxradar.php?mode=6&animated=0&advisories=0&track=0#WUtop
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3360
    • Emmett Weather
Re: WU Radar Saratoga Scripts
« Reply #1 on: March 02, 2017, 04:13:50 PM »
Ken has updated the wu-radar routines. It looks like you are still running wu-radar-inc.php v1.11 whereas the current rev level is v1.13. You may want to get the latest updates and see what happens. Ken has made some major changes to the mapping to use the new maps WU is using.
Don - W3DRM - Emmett, Idaho --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KBOI7
Davis Wireless VP2, WD 10.37s150,
StartWatch, VirtualVP, VPLive, Win10 Pro
--- Logitech HD Pro C920 webcam (off-line)
--- RIPE Atlas Probe - 32849

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: WU Radar Saratoga Scripts
« Reply #2 on: March 02, 2017, 07:01:11 PM »
I put the new 1.13 on, but the location is still off.  I'm a bit confused though.  The Wu-radar-inc.php describes the steps for getting CityURL, CityPOS, etc.  Problem is when I go to the Nexrad radar on WU, I right click on the radar, I don't get a Save Image option.  Kinda hard to get the rest of the info without that image location.  So I'm sure the issue is I've never setup those Pos locations.

Then later in the file, it says to put the info into the Settings.php file.  Is there supposed to be a section there for this, or is that something that is being added?
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: WU Radar Saratoga Scripts
« Reply #3 on: March 02, 2017, 07:10:53 PM »
I may have it figured out.  Just not right clicking on the right spot.  I'll work on it tomorrow.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Weather Goat

  • Member
  • *
  • Posts: 12
  • Peet Bros. Ultimeter 2100 Pro
    • New Milford CT Weather
Re: WU Radar Saratoga Scripts
« Reply #4 on: March 03, 2017, 06:17:29 AM »
I have a 'Save Image' button at the bottom of the dark square block that contains the radar.  Clicking on that brings up another window with the image as you adjusted.  I think I then saved the web address and pasted that into the script page.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: WU Radar Saratoga Scripts
« Reply #5 on: March 03, 2017, 10:13:21 AM »
Here's probably a more basic question.  Can the red dot function be turned off?

On my radar, it's redundantly redundant because the city I live in has the local radar and is already labeled.  On the fronts, et al screens, I think it just gets in the way.

For now, I REM'd out the CityPos lines.  But all that did is put the city into the bottom left corner of the screen.  Which will do for now.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Weather Goat

  • Member
  • *
  • Posts: 12
  • Peet Bros. Ultimeter 2100 Pro
    • New Milford CT Weather
Re: WU Radar Saratoga Scripts
« Reply #6 on: March 03, 2017, 11:15:32 AM »
Maybe try reming out '$City = ...'  and/or  '$CityColor1 = ...' or change color to blend into map

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: WU Radar Saratoga Scripts
« Reply #7 on: March 03, 2017, 01:57:23 PM »
Yeah, that's what I tried and ended up with the city in the bottom left.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: WU Radar Saratoga Scripts
« Reply #8 on: March 03, 2017, 02:09:00 PM »
I just dug into the code and looked into the color suggestion.  What I found was a series of lines such as this one:

<span id="cityloc" style="position: relative; <?php echo $CityPos1; ?> font-size: 10pt; color:#FF0000">

They all had the id of cityloc.  I went into all of those and changed the color to #000000 which is black instead of read.  So now my city color is black. And since I left those other lines REM'd out near the top pertaining to $CityPos and $CityColor, my city name is still in bottom left.  But black text over black backgrounds.  This works for me.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WU Radar Saratoga Scripts
« Reply #9 on: March 03, 2017, 02:09:24 PM »
Here's probably a more basic question.  Can the red dot function be turned off?

On my radar, it's redundantly redundant because the city I live in has the local radar and is already labeled.  On the fronts, et al screens, I think it just gets in the way.

For now, I REM'd out the CityPos lines.  But all that did is put the city into the bottom left corner of the screen.  Which will do for now.
The script wasn't really designed to do that, but I think you can 'fake it' by changing $CityPos1, $CityPos2 and $CityPos3 (the three radar overlay screens) to have

$CityPosN = ''display: none;';

and that will cause the <div> to be invisible.
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 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: WU Radar Saratoga Scripts
« Reply #10 on: March 03, 2017, 04:03:50 PM »
Yep, that did the trick.  Thanks.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI