Posted on: 01/03/03 03:22pm
By: samstone
The 7 Day forcast stopped functioning. Check your Weather Blocks. It seems that the weather station has changed their script that become imcompatible with ours.
Sam
Check your Weather blocks
Posted on: 01/03/03 06:22pm
By: squatty
They changed servers...you need to update the following line in index.php:
Change:
$url="http://www.crh.noaa.gov/zipcity.php?inputstring=".$zip;
To:
$url="http://www.srh.noaa.gov/zipcity.php?inputstring=".$zip;
This should fix the problem.
---Danny @ squatty.com
Check your Weather blocks
Posted on: 01/03/03 09:40pm
By: jlhughes
The NOAA changes have also broken the "More Local Wx" and "2-Day History" links on the page.
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.
Check your Weather blocks
Posted on: 01/04/03 01:47am
By: Anonymous (CrazyMick)
Can I just go ahead and say you guys rule? Can I? Cause you do.

Check your Weather blocks
Posted on: 01/04/03 10:28am
By: Anonymous (Anonymous)
Thanks Danny and John. You guys are good.
Check your Weather blocks
Posted on: 02/03/03 05:02pm
By: Anonymous (Anonymous)
I am having a similar problem trying to get weather to display properly, but I am not sure those fixes really help me as my location I am trying to display is not in the United States.
I am trying to get Jalalabad, Afghanistan to display properly as the default weather block. It's seems as though the script wants to send zipcode information which is not working out very well.
The station METAR info is as follows:
JALALABAD (MIL) -- AH OAJL 1 34.43 70.47 580 40954
I have tried with no zipcode in the gl_weather table and I have tried with 40954 in the table, but alas no luck. I am not really even sure the station is responsive at this moment in it's life, so that may be another issue altogether.
I am not looking for the 7-day forecast so much as just the block display working. Any hints on how to display international weather would be greatly appreciated.
Regards