Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

WeatherService
Project Home Blog Forums Known Issues Contact Project

Author: Brian Ghidinelli (All RIAForge projects by this author)
Last Updated: November 7, 2011 6:31 PM
Version: 1.0
Views: 20,848
Downloads: 617
License: Apache License, Version 2

Description:

Uses the freely accessible NOAA weather web service to obtain current or predicted weather conditions for most US locations. May also work outside of the US but untested.

Last Update:

On my to do list for 3 years is to post this CFC here to make it easy to pull weather forecast data from the NOAA web service. This goes straight to the source and is free of charge. Data is cached for 6 hours per zip code.

There is one dependency on a ZipCodeService in here that you need to replace to work in your own environment:

<cfset loc = variables.zipcodeService.getLocation(arguments.zip) />

returns a (Transfer ORM) zip code object based on a zipcode table that we have. It doesn't really matter where/how you get your data from; all you need to do is replace the method calls on loc.* to provide your own latitude and longitude in decimal format and city/state combinations. Everything else should basically just work.

This code is kind of old but it's simple and will give you a big head start on integrating weather data into your app.

Requirements:

Ability to use CFCs and parse XML

Issue Tracker:

There are no issues for this project.

To enter issues for this (or any other) project, you must be logged in.