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

Now that NOAA has changed over to using https for some of the images & links used in the Space Weather addon page, I’ve updated the script to V1.5.
You’ll need to update if you’re seeing errors on the EIT 284 & EIT 304 images and the latest aurora images aren’t showing.

This is what I’ve put in the change log:
[i]Version 1.5 - 22-Jun-2017 by Martin Collins (Budgie)

  • updated image URL’s for NOAA Website in the following files:
    image-space-aurora.php
    image-space-aurora-s.php
    image-space-eit-284.php
    image-space-eit-304.php
  • updated URL’s for NOAA Website & Mauna Loa Solar Observatory in the following files:
    wxspace.php
    wxspace_narrow.php[/i]

The full v1.5 script is attached below.

Cheers,
Martin


wxspace_v1.5.zip (177 KB)

I really appreciate the work Budgie has put into updating this script. I’m busy resurrecting my weather site after having ‘mothballed it’ over a year ago and I had discovered a number of 018 errors. Gone now.

However, I have come across one problem with the output of the script, which may have to do with file permissions:

3-day Solar-Geophysical Forecast Space Weather Forecast Unavailable
Error reading spaceweather current update data.

Could someone point me in the right direction for this?

Hi Jim,
The forecast should be cached into the spaceweather-current.txt file in the script. It was an empty file in the download so make sure it’s on the server and has something in it.
If not, check the settings in the wxspace.php or wxspace_narrow.php file to make sure the location is correct for the cache file.
The permissions for this file should be 644.

Martin

Bingo! It was definitely a wrong file permission. Many thanks Martin. Only several more scripts and pages to sort out now :smiley:

I spoke too soon. I needed to re-upload the space weather script after I stuffed something up and now the 3-day forecast is coming up with the same error as before. I’ve checked the file permissions and all ok. However, the spaceweather-current.txt is empty.

Any more thoughts?

Can you post a URL for the page?
This isn’t part of the script I altered in any way and the cache script is part of the wxspace.php. Try re-uploading that in case it got corrupted in some way.

Ok, I don’t know what happened but it is working again sigh. I’m going to leave well alone, I think. Thanks again, Martin. Maybe the script got frightened into behaving when it realised you were on the case.

I’ve done an update to V1.7 for the Space Weather scripts … the services.swpc.noaa.gov site has changed to HTTPS only necessitating updates to many of the scripts (including wxspace.php and wxspace_narrow.php which now use curl for the 3-Day Geophysical Forecast).

Best regards,
Ken


wxspace-V1.7.zip (174 KB)

Thanks, Ken! It’s working just fine. (I had to find and delete the cache file, spaceweather-current.txt, before the Space Weather Observations, Alerts, and Forecasts showed up.) As is my preference you can see that I’ve centered things a bit.

BTW, Welcome Back!

Thank you Ken. Much appreciated! =D> Hope that you had a great cruise …

Jerry, How did you “center” all of the headings in the script. Here’s mine with Ken’s new script.

http://indiantrailweather.com/wxspace.php

You can view my customized source here. I did this a few years ago and I have just carried the customizations forward into each new version using ‘Compare It!’.

Thanks Ken & Jerry

Cheers

:smiley:

MikeyM

Jerry,

Thanks for sharing your customization. Much appreciated! :D/ I’ll have to remember to use “Compare It” for future script updates to maintain the customization. :smiley:

Very nice! I added a couple of goodies to it just for grins. Many thanks to Ken and everyone else who put this together.

http://ucweather.org/wxspace.php

This script has been nothing but a pain…I can never get all the images to display. Of all the scripts I run this one is by far the one I waste more time trying to fix…

It looks as if wxspace.php has changed. Is it possible to get the latest script with all the files please? Thank you.

Suggest you read this Space Weather Template (wxforum.net) if your logged in you will see the downloads in the last 2 posts

Is there a more comprehensive set of instructions on setting this up? I have read the threads over WXForum and there are underlying requirements for making it work that i don’t understand. It’d be nice to see them work with PWSDashboard. Its trying to read in settings.php and menu.php, which i guess i don’t have. All i get is a 500 error which tells me nothing, except “its broke”.

Thanks and regards,

Jim

If you look in the web server logs you should see more information about the 500 error.

As far as I know it does not work in in stand alone mode it only works with the Saratoga template