Space Weather addon page for WD-AJAX-PHP-USA

Space Weather addon page for WD-AJAX-PHP-USA

You can see my Space Weather Script in use here:
http://www.642weather.com/weather/space-weather.php

This script will show a space weather forecast page, Real Time Images of the Sun, and graphs of Real Time Solar X-ray and Solar Wind. It shows the 3-day space weather forecast from the NOAA / Space Weather Prediction Center. Also included are 9 PHP images that are cached locally on your server.

Version: 1.2.1 - 30-Sep-2011

  • updated image URL for Mauna Loa Solar image

Version: 1.2 - 24-Oct-2009

  • XHTML 1.0-Strict compliant code (even though the template uses XHTML 1.0 Transitional)
  • added links in the credits.

Version: 1.1 - 24-Oct-2009


Installation (USA carterlake php template sites)

You must already be running the USA carterlake php template
http://saratoga-weather.org/template/index.php

Step 1)
Download:
www.642weather.com/weather/scripts/wxspace.zip

Step 2)
Upload these files to your web server:
wxspace.php
image-space-aurora.php
image-space-aurora-s.php
image-space-eit-284.php
image-space-eit-304.php
image-space-sat-env.php
image-space-solar-cycle.php
image-space-solar-disk.php
image-space-solar-wind.php
image-space-xray.php

Step 3)
test your page:
www.yoursite.com/wxspace.php

A paypal donate button is on my scripts page
www.642weather.com.com/weather/scripts.php

What to do if you get Error 003 displayed in the images.
Description of the PHP error:
cannot write to file, you need to adjust the server permission settings.

Solution:
This is a PHP error telling you that your server is setup with too strict file permissions,
not every server is the same so it is not possible to give you one specific solution.
Try changing the folder permissions(CHMOD) to 755, 717, or on some servers 777.

Here is a tutorial on how to change folder permissions using your FTP program.
http://www.stadtaus.com/en/tutorials/chmod-ftp-file-permissions.php

If your host has PHP safe_mode = on, this will cause many PHP scripts to have permission problems and errors.
Ask your host to turn safe_mode off, safe_mode was determined to be a bad idea and will be removed from PHP6.

Very nice Mike. I’ll be adding that onto my site later.

1 Like

Nice one, added, I have something similar on my astronomy page but yours is so much better :smiley:

Hi Mike,

Got another winner. This info will be great for the amateur radio community as well. Will try to play around with it as time permits.

Thank you for all that you contribute.

–Stan Y.
Maui, Hawaii
KH6HHG

Looks good. Is there a chance of using dials from Rice University, the Planetary Kp from N3KL, and offer black background.? I also RSS from HFRadio.org Propogation Center.

When I flew the DSP Satellite Constellation we heavily relied upon Kp and X-Ray indices. Indicators of impending spacecraft impacts and perturbations. Bad stuff, as flares and our magnetic field can cause ‘drag’ on spacecraft.

http://www.knology.net/~blackjack52/wxspacewx.php

Very Nice Mike,
here is the link: http://www.meteocarmignano.it/wxspace.php

Thanks for your great job, :slight_smile:

Alessandro

I’ve been meaning to place a space weather page on my site for some time now. Thanks very much Mike :slight_smile:

I like the sun images you have, and the other stuff. I might fit them into my script when I get time.

Mike

Good one Mike!

Great script set, Mike! Thanks!!

My page is at http://saratoga-weather.org/space-weather.php

Best regards,
Ken

Quick question - I uploaded the files per instructions (Thanks Mike!!) and tested the wxspace.php at http://www.tuscawilla-weather.net/wxspace.php Seems I’m not getting any graphics. Could that be the cache file writing restriction on e-Rice.net? If so, what are the cache files? I think if I create them in the website directory at e-Rice and set the permissions to 666 then the scripts can use the cache file write that it needs to display graphics? Am I on the right track??

Any help appreciated.

Greg.

I’m also on E-Rice.
I simply uploaded the files that Mike said was needed, and it worked.
I didn’t have to change any permissions.

Hmmmm. Now Im really puzzled.

All files were put in the same directory as wxspace.php?

Hi All,

Thanks Mike for the script. Got mine to work just fine. Plug n’ Play. No fuss, just load and go. My page is at http://www.dwayneyamato.com/wx/wxspace.php.

Will get it on the menu bar as time permits.

Thank you again for a wonderful job.

–Stan Y.
Maui, Hawaii
KH6HHG

Also on e-rice, also not getting graphics. :frowning: http://www.cavecountryweather.com/wxspace.php
I looks to me like the script is calling for a .txt cache. Is this something that we need to create manually and then change the permissions on?

hi
Tried installing this but not getting the graphics just “error 003” Maybe because I’m using the worldmml template though.

http://www.weybourneweather.co.uk/wxspace.php

Phil

Samething here on e-rice. I did manage to get a few graphics going after fighting with it for a bit. I’ll try and finish it today.

http://www.snoqualmieweather.com/wxspace.php

Put the chmod permissions on 777, but after update got this

d0

403 Forbidden

Forbidden

You don't have permission to access /today.html on this server.

in spaceweather-current.txt

emptied it have forecast again and put chmod on 755, observing now

I have all of my files set to 777, thats the only way i could get them to work.