Skip to content

r-icarus/forecast_io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForecastIO

Simple wrapper for Forecast.IO

Usage

export FORECAST_IO_KEY=yourkey

##Include forecast_io

defp deps do
  [
    {:forecast_io, "~> 0.2.2"},
  ]
end

#Start and use

ForecastIO.start()
{:ok, result } = ForecastIO.forecast("28.6353","-106.0889")
current = ForecastIO.current(result)

#Use ForecastIO Time API

{mega, secs, _ } = :os.timestamp
now = mega * 1000000 + secs
ForecastIO.start()
{:ok, result } = ForecastIO.forecast_time("28.6353","-106.0889", now)
current = ForecastIO.current(result)

About

Simple wrapper for Forecast.IO API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages