Author Topic: WU-Radar-INC issue  (Read 661 times)

0 Members and 1 Guest are viewing this topic.

Offline mkutche

  • Forecaster
  • *****
  • Posts: 976
    • GosportWx.com
WU-Radar-INC issue
« on: July 16, 2022, 08:47:11 AM »
Something is wrong because I'm using the right LAT/LONG for my location but when i goto switch to switch modes it totally lists Gosport in a different location see URL's below.


mode 4 http://gosportwx.com/wxradar.php?mode=4&animated=0&track=0&advisories=0&lightning=0#WUtop
mode 5 http://gosportwx.com/wxradar.php?mode=5&animated=0&track=0&advisories=0&lightning=0#WUtop

below is my settings.php and WU-Radar-Inc.php

Settings.php
Quote
############################################################################
# Sitewide configuration - Station location, identity and date/time info
############################################################################

$SITE['organ']         = 'GosportINWX';
$SITE['copyr']         = '© ' . gmdate("Y",time()) . ', Your Weather Website';
$SITE['location']       = 'Gosport, Indiana, USA';
$SITE['email']         = 'gosportinwx@gmail.com';
# Station location: latitude, longitude, cityname
$SITE['latitude']      = '39.298095';    //North=positive, South=negative decimal degrees
$SITE['longitude']   = '-86.699102';  //East=positive, West=negative decimal degrees
$SITE['cityname']      = 'Gosport';

Wu-Radar-Inc.php
Quote
$RDR  = 'IND';  // last 3 characters of NOAA Radar Site Name
$Lat  = '39.298095';    //North=positive, South=negative decimal degrees
$Long = '-86.699102';  //East=positive, West=negative decimal degrees
$City = 'Gosport';  // Name of city
$WUregion = 'mw';    // WeatherUnderground regional map group name
// 'sw'=SouthWest, 'nw'=NorthWest, 'mw'=Midwest
// 'sp'=South Central, 'ne'=North East, 'se'=South East
$WUradarRegion = 'usday'; // go to https://www.wunderground.com/radar/us,
// pick a regional radar, and use the <VALUE> in the ImageLink URL
//  of https://s.w-x.co/staticmaps/wu/wu/wxtype1200_cur/<VALUE>/current.png
Mike K.
WS2080 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8715
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WU-Radar-INC issue
« Reply #1 on: July 16, 2022, 10:58:15 AM »
You'll need to reset some of the $CityPosN values in WU-radar-inc.php to have them display the location of Gosport correctly.

Use http://www.gosportwx.com/WU-radar-testpage.php?show=loc and use your mouse to reposition the marker and copy the $CityPosN value into WU-radar-inc.php to fix it.  It doesn't use the lat/long in the script for positioning the markers.
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 mkutche

  • Forecaster
  • *****
  • Posts: 976
    • GosportWx.com
Re: WU-Radar-INC issue
« Reply #2 on: July 16, 2022, 11:04:56 AM »
You'll need to reset some of the $CityPosN values in WU-radar-inc.php to have them display the location of Gosport correctly.

Use http://www.gosportwx.com/WU-radar-testpage.php?show=loc and use your mouse to reposition the marker and copy the $CityPosN value into WU-radar-inc.php to fix it.  It doesn't use the lat/long in the script for positioning the markers.

ah it's been awhile since i had to mess with this thanks Ken :)
Mike K.
WS2080 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------