Php Actual Weather Query Script

May 8th, 2014


Download here https://github.com/joeybab3/Simple-Weather-Query

This is a simple script I made mostly based off of http://gearside.com/make-it-rain-let-it-snow-query-weather-with-php/, to get it to work, go to This Url, and choose the airport nearest to you. Copy that url and replace $url in the document with your url. Next all you have to do is enter the various things you want it to do in the $rain, $snow, $fog variables, and it will do the rest for you.

EDIT 1:

Since writing this, Chris Blakley(http://gearside.com) has since notified me that there is a better way to do this:

It uses Yahoo’s XML Weather. The new file is found here: https://github.com/joeybab3/Simple-Weather-Query/blob/master/Final.min.php

Now all you have to do is replace $zipcode with your zipcode. Thanks again Chris!

EDIT 2:

NEW VERSION!!!


Comments

Comments Are Not Yet Implemented.