Author Topic: Saratoga Base-USA updated index.php maps  (Read 1785 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8397
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Base-USA updated index.php maps
« Reply #25 on: August 10, 2020, 02:16:01 PM »
I'd just copy wxindex.php to index.php and be done.  I never update index.php with the automated updates.  The wx...php scripts may be updated as auxiliary scripts are updated, so it's safer to have your site 'home' to index.php.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 3822
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Saratoga Base-USA updated index.php maps
« Reply #26 on: August 10, 2020, 02:45:12 PM »
I did both, belts and suspenders.

The redirect is working fine, so I will leave it for now. I have the corrected index.php there if needed as a backup.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline mldenison

  • Contributor
  • ***
  • Posts: 110
    • York, PA Weather
Re: Saratoga Base-USA updated index.php maps
« Reply #27 on: September 13, 2020, 11:56:43 AM »
Hi Ken,

I'm not sure how/if the radar images can be resized.

Here's my site: https://www.m82a1.us/index.php#header

I'd like to make the right WU map larger to fill the frame.

Is it possible?

Thanks
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8397
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga Base-USA updated index.php maps
« Reply #28 on: September 13, 2020, 05:32:07 PM »
In USA-regional-maps-inc.php, change
Code: [Select]
    <img src="<?php echo $rightURL?>" alt="<?php echo $rightTitle?>" title="<?php echo $rightTitle?>"
      width="320" height="240" style="margin: 0px; padding: 0px; border: none"
to adjust the width= and height= values to make the displayed image larger.
Since the NWS Radar has a different aspect ratio than the WU Satellite map, you won't be able to make them the same height, but you can make the image larger (remember to preserve aspect ratio so it doesn't get distorted).

Try using width="480" and removing the height="240" .. that seems to work.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mldenison

  • Contributor
  • ***
  • Posts: 110
    • York, PA Weather
Re: Saratoga Base-USA updated index.php maps
« Reply #29 on: September 13, 2020, 05:59:20 PM »
Perfect.  And thanks.
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

 

anything