River/Lake Height Display addon page for WD-AJAX-PHP-USA

Version 2.00 - Set-18-2010 - Big changes, Clickable map- Thanks to Jim, also added the ability to put the images at the top or the bottom of the page. Hopefully fixed the script for the newest version of PHP.

Download at beginning of thread.

I would also like to apologize to everyone, I have been writing this between my computer at home and my computer at school. When writing new versions, sometimes improvements are left out that were incorporated in older versions. This version should have all the good stuff listed on the site.

-Dennis

Glad to offer this idea for huge improvement along with code for map.

Lee,

You’re right, your code is what got me thinking about it. The new version now scrapes the code from the AHPS site so that the mouseovers are always current.

Dennis,

I don’t think your changes made it to the download .zip because the most recent dates in there are the 12th.

  • Jim

Jim,

I think your right…doing too many things at the same time.

Now it is uploaded everyone.

Lee,

Thanks for giving us a starting point with the clickable map.

-Dennis

Thanks for the update guys! Works great

Tony 8)

Good day…I replaced the URL with my local clickable image, replaced what was needed in “river-fetch.php” and reuploaded…th emap isn’t displaying…was the URL suppose to be replace elsewhere also??

Has the cron job river-config run yet? I ran mine after I installed everything
and it was a-ok.

Yeah it ran…the map is displaying but its not click-able…

http://www.bucksweather.com/wxriverpage.php

Chris,

Looks like you need to change the permissions on your river-map.txt.

-Dennis

I have them at 664…I’ll check further.

Is the only place to change the url in the river-config.php file??

Got it…had to change permisions to 777 in the river-map file…

Thank you.

Nice script, but I seem to have a few problems I need help with.

I could not get the river-fetch to work at first so I used the “if the curl does not work” code and it stated to work. I was getting a “HTTP 500 Internal Server Error” before changing this code.

I thought everything was working till I tried using one of the detail pages; I’m now getting the “HTTP 500 Internal Server Error” again.

My guess is it’s my Windows 2003 server running IIS that is causing the problem. Anyone know what I can try to fix this?

http://www.weathercat.net/wxriverpage.php

Excellent script! Thank you very much. :smiley:

http://www.harpersferry-weather.com/wxriverpage.php

I’ve been trying to figure how to add the “Weekly Chance of Exceeding Levels” and “Chance of Exceeding Levels During the Entire Period” to the detail page. The NWS does not produce these graphics for all locations.

Example URL’s can be seen below.

http://water.weather.gov/ahps2/rfc/PAWW2.SSTG.prob.weekint.gif
http://water.weather.gov/ahps2/rfc/FDKM2.SSTG.exceed.90day.gif

Is there any chance of adding the exceedance graphics as an option in a future enhancement?

Thanks,

John

Works prefect right out of the box.

http://www.foresthillweather.com/wxriverpageA.php

Thanks again

Scott

Can anyone look at my www.bucksweather.wxriverpage.php page and see what went wrong all of a sudden???

no com org or net

This works
http://www.bucksweather.com/wxriverpage.php

Mark

I just updated to the clickable map version of the script and getting an error.

id=‘SQUW1’ is not defined.

can see it here…

http://www.snoqualmieweather.com/wxriverdetail.php?id=SQUW1

Before updating, it worked fine. And also not sure why the id is in caps, or if it even matters. All of my .txt files are set at 666.

Forever,
If it is something to do with the windows server, I probably cannot help you. I will look into this and try to find an answer.

John,
This would be a neat feature, there is a good possibility that I can add these.

Mark,
The problem is due to the id being all caps. It does not equal the id in your config. For a temporary fix change your config id’s to caps.

I will fix the cap issue and another minor aesthetic issue first. Then look into the server issue and the addition of the Exceeding levels. After I finish my Materials Science homework. :lol:

-Dennis

OK… I got this part to work here by changing my txt file to caps and in the config file.

But, on this page, it’s still showing “not defined”

The only id I changed to caps was the squw1