3/16/2011 EDIT: The Wing Kp Predicted Geomagnetic Activity Index model is now deployed and operational. Costello is now considered non-operational and will be discontinued on 23 Mar 2011. Comments and questions are welcomed at SWPC.CustomerSupport@noaa.gov
The Wing Kp Predicted Geomagnetic Activity Index model is known to perform well for large geomagnetic storms and includes both a 1 hour and a 4 hour advance prediction of activity. Wing Kp 7-day model output is available in ascii data list format at http://www.swpc.noaa.gov/wingkp/wingkp_list.txt and via Anonymous FTP at ftp://ftp.swpc.noaa.gov/pub/lists/wingkp
----------------------------------------------
Build a visual indicator of the Northern Lights using the Arduino. Know when to go outside and look up, no matter where you live!
For years I have struggled to find a good way of alerting me to Northern Lights activity. I have tried email alerts and real-time monitoring software. Nothing worked well and I would regularly miss good displays.
Enter the Costello Geomagnetic Activity Index. Simply put, this is a prediction of auroral activity. It is pretty reliable and gives about an hour's notice of northern lights activity. The problem is, of course, you have to keep checking the web page to catch any jump in the Index.
What we will build is a visual representation (an LED display) of the current level of auroral activity. The build consists of three main parts: a PHP Web scraping script, a Processing script, and an Arduino script. The LED lights green for low activity, blue for moderate, red for high activity and white for GET OUTSIDE NOW! I have mounted this in an old clock face so it is always visible in my living room. Essentially this is a poor man's Ambient Orb costing under $40 to build compared to the Ambient Orb's $150 + S/H + $6.95/mo for custom monitoring.
Right off the bat I wish to thank Tod E. Kurt for his Spooky Arduino projects and his help getting me through my own stupidity. It is his scripts this project is based on and I strongly recommend checking out his blog for great Arduino projects.
Remove these ads by
Signing UpStep 1: The PHP script
The first of the scripts is the PHP Web scraper. The Costello Index is calculated and fed to a FTP server text file(there is http output as well, but the FTP info is more recent.) We need to pull only the most recent Predicted Index from the text file. The PHP script parses out the needed information, converts the Index number into a hexadecimal representation of color in the form #RRGGBB and then writes that to a text file to your server.
Parsing PHP.zip579 bytes










































Visit Our Store »
Go Pro Today »




Apparently they just have a new index for Kp reporting. It's called the Wing Index and is actually updated every 15 minutes as opposed to every 3 hours.
http://www.swpc.noaa.gov/wingkp/wingkp_list.txt
I went ahead and tried to track down some other source for the data, and found a twitter account that gives Kp forecasts. The rss is already done by twitter and is available here:
http://twitter.com/statuses/user_timeline/18164887.rss
How high does the index have to be for one to see the northern lights? I know latitude has a lot to do with it, is there a formula?
Also, it looks like the NOAA is switching to a new prediction model on November 22nd-- besides tweaking the PHP script, do you think that'll affect the project?
My suggestion for this project is to explore using Processing to parse the data rather than using the PHP/server setup that I created. I know it is possible, but just haven't been able to return to the project to work out the code.
I had not heard NOAA was switching models. Can you provide a link?
http://www.swpc.noaa.gov/rpc/costello/index.html
I don't really code (yet), but I'm just starting to mess around in Processing (which of course, is nice for also messing around with Arduino). I didn't know you could do html scrapers in processing though... It'd be neat to put the whole thing in one sketch!
The group is here: http://tech.groups.yahoo.com/group/southern-aurora/
I also collect all the relevant southern stats here: http://efpeters.customer.netspace.net.au/pub/Aurora.html
(the moon phase graphic seems to be broken - I'll have to look into that).
Excellent instructable, I may have a go at this. 5 Stars.