Advanced Search  :  Site Statistics  :  Directory  :  Web Resources  :  Forum  
    Plugins for Geeklog Geeklog Plugins    
 Welcome to Plugins for Geeklog
 Saturday, May 17 2008 @ 07:10 AM EDT

Weather Block Patch

   
Blocks

The 7 Day forecast stopped functioning today.  It appears the NOAA made a change to the domain where the forecast code is hosted.  Apply the following to /weather/index.php to restore the forecast functionality:

Change:

$url="http://www.crh.noaa.gov/zipcity.php?inputstring=".$zip;

To:

$url="http://www.srh.noaa.gov/zipcity.php?inputstring=".$zip;

 

Story Options

Weather Block Patch | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Weather Block Patch
Authored by: anonymous on Saturday, January 04 2003 @ 01:25 PM EST

Looks like I missed some steps...see these instructions from jhughes:

The changes have also broken the "More Local Wx" and "2-Day History"

Here's what needs to be fixed in index.php

In the function cleanup_html($html)

Find

    $html = str_replace( 'obslocal.php?', $wx[sw_site] . 'index.php?goget=obslocal.php&', $html );
    $html = str_replace( 'obshistory.php?', $wx[sw_site] . 'index.php?goget=obshistory.php&', $html );

Replace with

    $html = str_replace( 'http://www.srh.noaa.gov/obslocal.php?', $wx[site_site] . $wx[sw_file] . '?goget=obslocal.php&', $html );
    $html = str_replace( 'http://www.srh.noaa.gov/obshistory.php?', $wx[site_site] . $wx[sw_file] . '?goget=obshistory.php&', $html );

In the goget switch for obslocal and obshistory,

Change the existing URL

$url = 'http://www.crh.noaa.gov/data/forecasts/'

To this

$url = 'http://www.srh.noaa.gov/'

Those changes restore the index.php to full function.

 

---
Danny @ squatty.com

 Copyright © 2008 Plugins for Geeklog
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.15 seconds