A simple PHP script that tells the weather in Celcius using the OpenWeatherMap API.
Thanks to unsplash for the amazing backgrounds.
Everything is already setup for you. Just upload to a php enabled server.
If you would like to use your own API key, then obtain a free key from OpenWeatherMap. Edit $api_key
inside scraper.php
to your key.
- You can change the default location inside
scraper.php
. - The location can also be changed on the website by either editing the url
?location=area_here
or by editing the location shown on the site.