A simple command line application that shows wheater information of a region near an US airport(it consumes this service.
-
Add weatherise to your list of dependencies in
mix.exs
:def deps do [ { :weatherise, github: "lucasmedeiros/leite" } ] end
-
Ensure weatherise is started before your application:
def application do [ applications: [:weatherise] ] end
-
Command line:
./weatherise KNYC
-
On code
Weatherise.WeatherInfo.fetch("KNYC")
Specs for the service consumer.