In other words Tom’s script is good for the rest of the country, but us folks in the west have to use Ken’s script.
niko
Yes, in fact the URL and much more seem to be MIA from the script altogether. Somehow FrontPage must have screwed it up again. I’ll have to rebuild it again. Thanks.
Thanks Ken. Turns out it was something else. I do the same as you and actually have a mirror site that was doing the same thing. The main site and the mirror are on two different servers and two different hosts. The script itself is hosed and I’ll have to rebuild it.
I’ve just attempted to set mine up. Can someone shed some light on what I may be doing wrong?
http://69.143.144.53/forecast.php
http://69.143.144.53/forecast.txt
Thanks,
Michael
Sure, you need the printable point forecast (you selected the URL from the first map click)… Here’s the URL you need (based on what’s in your cache file forecast.txt)
http://www.erh.noaa.gov/ifps/MapClick.php?FcstType=text&textField1=39.2156448364258&textField2=-76.7381134033203&site=lwx&Radius=0&CiTemplate=0&TextType=2
Best regards,
Ken
Hi Ken,
Thanks for the response. I think that is the URL that I used. In Tom’s Advanced forecast ( http://www.carterlake.org/advforecast.php.txt), I replaced Tom’s URL ($fileName =) with that identical URL. I’m not sure what it is that I’m doing wrong.
Thanks,
Mike
Mike:
I think the URL you used was just slightly different, as the contents of your cache file showed the parent page of the printable point forecast, not the printable point forecast itself.
Please try copy from the URL in the prior post and paste into the $filename part of the script. I’d checked the URL in the above post in a browser window, and it does yield the printable point forecast.
Best regards,
Ken
Thanks Ken, I will give this a shot when I get home. (Still at work) I will let you know how it turns out. I appreciate your help.
Mike
Ken,
It worked!!! Thanks for the help!!
Mike
You’re welcome Mike. The trick to seeing if you have the right URL is to go to the webpage on the NOAA website, and if you don’t see JUST the row of icons and the text description of conditions, find the link that says Printable Forecast at the bottom-right of the page and click it… it should show a page with the icons and text descriptions of the forecast only… copy that url and use it with Tom’s forecast script.
Best regards,
Ken
Well I am thinking about embedding this onto my forecast page (http://www.chucksndweather.info/wx.html). I was wondering if this is the right url I have to use. Plus where do you put the folders for the icons on your webserver or your computer. I am a bit confused about this. I like the way it looks. Any help would be greatly appreciated. I am very much a beginner at this.
Chuck
I still haven’t sorted things out. :oops:
It just stopped working but everything looks right. Can anyone help?
My forecast.txt file is old and hasn’t updated since July 7…
http://www.leyner.org/forecast.txt Why?
But nothing but blanks shows up on the forecast page (probably because the data is old?):
http://www.leyner.org/my-advforecast.php
The printable point forecast works by itself and has been working before:
http://www.crh.noaa.gov/ifps/MapClick.php?FcstType=text&textField1=40.048237&textField2=-105.103348&site=den&Radius=0&CiTemplate=0&TextType=2e=2
Any ideas?
Thanks,
David
Hi David,
You have some very weird web configuration there…
Your forecast text is not located at: http://www.leyner.org/forecast.txt
It is located here: http://www.brobergs.us/Weather/forecast.txt
Your PHP script is not located here: http://www.leyner.org/my-advforecast.php
It is located here: http://www.brobergs.us/Weather/my-advforecast.php
You probably have the script configured for where you think it is located… not where it’s really located.
Yes, it’s a bit wierd, but they both point to the same place and the same files. But I’m not sure it matters, but I’ll take a look in the script and see if there is something I can change with the file locations that will make a difference. Thanks.
I’m 100% sure it matters!
Okay, help me here. Can you tell me where it matters? Is there a file pointer somewhere in the PHP script. I couldn’t see one, maybe I’m missing something. I am sure that if I put either of those URLs in my browser they point to the EXACT same files.
The crazy thing is, everything was working for several months, and nothing that I can identify was changed, and suddenly it stopped working. I noticed the NOAA Printable forecast starting using new file locations for the images, so I even tried to restructure my paths and folders to match, and it started working for about 30 minutes, then stopped again. Compare the path for the image files on your printable forecast and mine. Maybe they changed something else?
Good Morning,
It seems that my PHP Forecast just stopped working. I’m not sure what the heck happened here. When I go to the forecast page of my site, the PHP makes the forecast.txt file blank. I have a backup of my forecast.txt file, when I replace the file with the backup, as soon as I call up the forecast.php, it writes to the forecast.txt file and makes it blank. Any comments or suggestions??
http://69.143.144.53/forecast.php
http://69.143.144.53/forecast.txt
Thanks,
Michael
There have been some recent changes to several of the www.*.noaa.gov websites, and Tom has updated the advforecast.php script to address the changes.
You should try a fresh copy of the script from
http://www.carterlake.org/advforecast.php.txt
That will probably fix your problem.
When you install, you should generate a fresh copy of the $fileName URL by following the instructions in the code. Some of the changes to the NOAA website(s) have changed the location of the point printable forecast. Tom has also added a clickable hotlink in the page to refresh the cache if the user finds it blank.
Best regards,
Ken
Hi Ken,
Thanks for the quick response:
I’ve installed and configured the new updated advforecast script although it seems to be giving me some problems.
http://69.143.144.53/advforecast_php.php
http://69.143.144.53/forecast.txt
Can you please take a look and let me know if its something that I did wrong?
Cheers,
Mike
Ken,
I think I got it working again :), thanks for your help.
Mike