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

2 thoughts on "Php Actual Weather Query Script"

  1. Chris says:

    Hey, glad to see that my post inspired your project! Thanks for the backlink too! I’ll be sure to follow your repo on Github.

    1. joeybab3 says:

      Thanks! This was the best and simplest weather script i could find!

Leave a Reply

Your email address will not be published. Required fields are marked *