cloudy

Author Topic: Volcano Conditions PHP Script  (Read 9076 times)

0 Members and 1 Guest are viewing this topic.

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Volcano Conditions PHP Script
« Reply #30 on: September 10, 2010, 01:41:11 AM »
The RSS Link has changed in 2 places to get the current updates..

Change this..

Code: [Select]
$RSS_URL = 'http://volcano.wr.usgs.gov/cvo/current_updates.php';

To this..

Code: [Select]

$RSS_URL = 'http://volcanoes.usgs.gov/cvo/current_updates.php';

And this..

Code: [Select]
Source: <a href="http://volcano.wr.usgs.gov/cvo/current_updates.php" title="U.S. Geological Survey - Cascade Range Current Update" target="_blank">Cascade Range Current Update</a>

To This..

Code: [Select]
Source: <a href="http://volcanoes.usgs.gov/cvo/current_updates.php" title="U.S. Geological Survey - Cascade Range Current Update" target="_blank">Cascade Range Current Update</a>


Also.. Not sure If it's needed, But I removed my "volcano-current-wa.txt" file and created a new blank one and uploaded it. Updating and working good now.
« Last Edit: September 10, 2010, 01:49:47 AM by ALITTLEweird1 »
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Volcano Conditions PHP Script
« Reply #31 on: September 10, 2010, 06:19:28 PM »
Thanks I will update the download file when I get time.

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: Volcano Conditions PHP Script
« Reply #32 on: September 11, 2010, 02:40:16 PM »
Version: 1.03 - 11-Sep-2010 - new data URL's to fix missing data

download URL in 1'st post

Offline Scobey

  • Posts: 37
Re: Volcano PHP Script
« Reply #33 on: August 04, 2011, 01:50:27 AM »
Mike:

i just noticed that the wxvolcano-ak script is not returning a conditions report despite the fact that one exists in volcano-current-ak.txt.

I'd appreciate any help.

www.scoblic.com/weather

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Volcano Conditions PHP Script
« Reply #34 on: August 04, 2011, 01:59:07 AM »
Are you running the current version?
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Volcano Conditions PHP Script
« Reply #35 on: August 04, 2011, 02:23:31 AM »
I just downloaded and installed the script from the link in the first post:

<!-- wxvolcano-wa.php - V1.02 12-Oct-2009 -->


add: Played around with the links and permissions and it's working.
« Last Edit: August 04, 2011, 03:25:13 AM by NorCal Dan »

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Volcano PHP Script
« Reply #36 on: August 04, 2011, 03:36:30 AM »
Mike:

i just noticed that the wxvolcano-ak script is not returning a conditions report despite the fact that one exists in volcano-current-ak.txt.

I'd appreciate any help.

www.scoblic.com/weather

Keep in mind I've only been playing with this for an hour.  It's possible Mike coded the volcano differently based on the website, but your cache file is not formatted the same as mine.  There is a link on the page that points to a "cleaner" text version versus the one your grabbing now that is embedded in the webpage. Maybe try pointing your cache file to this URL and see if it parses okay.

http://www.avo.alaska.edu/activity/print_report.php?output=screen&id=3982&type=status

for the

CLEVELAND VOLCANO (CAVW #1101-24-)
52°49'20" N 169°56'42" W, Summit Elevation 5676 ft (1730 m)
Current Volcano Alert Level: WATCH
Current Aviation Color Code: ORANGE

Offline Scobey

  • Posts: 37
Re: Volcano PHP Script
« Reply #37 on: August 04, 2011, 06:09:33 PM »
Keep in mind I've only been playing with this for an hour.  It's possible Mike coded the volcano differently based on the website, but your cache file is not formatted the same as mine.  There is a link on the page that points to a "cleaner" text version versus the one your grabbing now that is embedded in the webpage. Maybe try pointing your cache file to this URL and see if it parses okay.

http://www.avo.alaska.edu/activity/print_report.php?output=screen&id=3982&type=status

for the

CLEVELAND VOLCANO (CAVW #1101-24-)
52°49'20" N 169°56'42" W, Summit Elevation 5676 ft (1730 m)
Current Volcano Alert Level: WATCH
Current Aviation Color Code: ORANGE

Didn't work either.
Thanks!

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Volcano Conditions PHP Script
« Reply #38 on: August 04, 2011, 10:03:29 PM »
It appears the link for the Cleveland volcano is returning an not found error:

Quote
Page could not be found. -- www.avo.alaska.edu/activity/avoreport.php%20title=

We're sorry. It seems that the page you requested has moved or does not exist. If you typed in a web address by hand, please check that the spelling of the page you requested is correct. If you are unsure, please try one of the following links:

The link for Mt. Redoubt seems to be working, so I can only guess the format of the page has changed and the parser is not able to find the information.

Offline Scobey

  • Posts: 37
Re: Volcano Conditions PHP Script
« Reply #39 on: August 05, 2011, 07:31:50 PM »
It appears the link for the Cleveland volcano is returning an not found error:

The link for Mt. Redoubt seems to be working, so I can only guess the format of the page has changed and the parser is not able to find the information.


Suddenly! Cleveland is working! Don't know what I did if anything!

I gave up years ago trying to understand software and computers!

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 9,496
  • Davis Vue/iMac/Parallels/WinXP
  • Truckee, California
    • Traveling RV Weather
Re: Volcano Conditions PHP Script
« Reply #40 on: August 05, 2011, 09:49:34 PM »

Suddenly! Cleveland is working! Don't know what I did if anything!

Great.  See if your code has 2 different URL's for the Cleveland data source.  When I load your Cleveland page, mid page, there is a link for the source and it still gives me the error.

Offline Gregal

  • Greg
  • Posts: 154
  • PA / USA
  • OS/Browser:
  • Win XP
  • Firefox 11.0
    • Allshouse_Weather
Re: Volcano Conditions PHP Script
« Reply #41 on: March 27, 2012, 04:52:01 PM »
Just checking has anyone had any issues with the sites updating?  I just downloaded the files today and when I launch them I do not get any data.  I used the hi txt file from the top of page 2 and that data shows up on my WXvolcano-hi.php file.

Thanks

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Snoqualmie Weather
Re: Volcano Conditions PHP Script
« Reply #42 on: March 27, 2012, 07:32:30 PM »
They do seem to be down. Its seems like it does this every now and then, but should come back.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Snoqualmie Weather
Re: Volcano Conditions PHP Script
« Reply #43 on: March 29, 2012, 01:44:25 PM »
They have changed there RSS feed link..

From this..
http://volcanoes.usgs.gov/cvo/current_updates.php

To this..
http://volcanoes.usgs.gov/activity/status.php#cvo

But I cant get it too work
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline jgillett

  • John
  • Posts: 445
  • Phoenix, AZ
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Safari 5.1.4
    • TiggrWeather Phoenix
Re: Volcano Conditions PHP Script
« Reply #44 on: March 31, 2012, 01:50:08 AM »
This - http://volcanoes.usgs.gov/activity/status.php#cvo - brings back a full HTML page with status info on all the volcanoes, each of which is separated by its own <div id="cvo">, etc. The script would have to be modified to recognize this. One nice thing, however, is that they are all in the same place now, and there are more than the original 3 that came with the script. The only thing to change in the URL would be the #cvo (or whatever) to get the desired report.
John
W7JKG


 

cumulus