Integrating and Caching Weather Data from Forecast.io API
Looks like there are already several PHP libraries for the forecast.io API.

I'd probably spend a few minutes reviewing those and find one that's to your liking.  Then, it's a simple as writing a Craft plugin that utilizes that library to make calls to their API and deal with the response as appropriate.