Query OpenWeatherMap for current weather info using PHP

openweatherAs part of a wider project (more updates posted shortly) I am working with OpenWeatherMap’s API to obtain current and forecast weather information. This is ultimately going to be displayed on a ‘digital photo frame’ type setup.

OpenWeatherMap API offers results in both XML and JSON format. For my project I have chosen the JSON route, so using the below PHP I am grabbing the weather and outputting strings and an image based on current conditions.

This is very much a work in progress piece of code, and is part of a much larger tutorial which I will be posting up once complete. However, I thought the snippet below may prove useful for visitors just wanting a straight output from OpenWeatherMap.

NB: To use the API’s you’ll need to register for a free API ID, the one in the snippet below is just for example purposes.

Read More

Coming soon to an Outlook.com API near you…

Boomerang logoOutlook.com API is scheduled to launch in the summer this year.. Which may not be news to some.. However, a recent announcement may be. Microsoft have partnered up with Boomerang, dubbed a market-leading productivity software company, to deliver its powerful Boomerang system.

The Boomerang system is a power users best friend when faced with the day to day email and appointment management drain on resources. (more…)

Read More