Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:47 pm EDT

Geeklog Forums

Check your Weather blocks


Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
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
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
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
In a world without walls and fences, who needs Windows and Gates?
 Quote

Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
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.
 Quote

CrazyMick

Anonymous
Can I just go ahead and say you guys rule? Can I? Cause you do. Wink
 Quote

Anonymous

Anonymous
Thanks Danny and John. You guys are good.
 Quote

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
 Quote

All times are EDT. The time is now 07:47 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content