Skip to content

jayOnJava/NWSObservation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NWSObservation

This is a simple library that enables the loading and parsing of real-time weather data from National Weather Service stations.

Usage

To use this library, you have to know the name of the NWS observation station that you'd like to use. These are available at their website. As an example, we'll use KCVO.

let observation = NWSObservation(stationID: "KCVO")

The Observation instance contains all the information that the weather service provided.
Every variable allowed for in the XML schema has an accompanied instance variable.
Those fields that were ommitted are left nil.

It is also possible to query for the weather summary icon as well.

let icon = observation.weatherIcon

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages