Skip to content

Swift class to feach weather from OpenWeatherMap.org

Notifications You must be signed in to change notification settings

psksvp/OpenWeatherMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenWeatherMap

A swift class to feach weather information from OpenWeatherMap.org

import Foundation
import OpenWeather


let ow = OpenWeather(apiKey: "OPENWEATHERMAP_API_KEY")
if let d = ow.fetch(location: .name(city: "Sydney", state: "NSW", countryCode: "AU"))
{
  print("current temperature is \(d.main.temp)")
}
else
{
  print("fail to fetch")
}

About

Swift class to feach weather from OpenWeatherMap.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages