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]
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.
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.
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).
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.
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 for sharing your customization. Much appreciated! :D/ I’ll have to remember to use “Compare It” for future script updates to maintain the customization.
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…
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”.