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, enter the various things you want to do in the $rain, $snow, $fog variables, and it will do the rest for you.

EDIT 1:

Since writing this, Chris Blakley of 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 zip code. Thanks again, Chris!

EDIT 2:

NEW VERSION!!!


Comments

Comments Are Not Yet Implemented.