Skip to content

Allows Alice to provide weather forecast for a given location.

License

Notifications You must be signed in to change notification settings

alice-bot/alice_weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AliceWeather

This handler will allow Alice to provide the weather forecast of a given location. Powered by Dark Sky

Installation

If available in Hex, the package can be installed as:

  1. Add alice_weather to your list of dependencies in mix.exs:
def deps do
  [
    {:alice_weather, "~> 0.1.0"}
  ]
end
  1. Add the handler to your list of registered handlers in mix.exs:

    def application do
      [applications: [:alice],
        mod: {
          Alice, [Alice.Handlers.Weather, ...]}]
    end
  2. Set up the API keys and Geocodex geocode_api_url in your app's config.exs:

    config :my_bot,
      api_key: System.get_env("DARKSKY_API_KEY")
    
    config :geocodex,
      api_key: System.get_env("GOOGLE_GEOCODING_API_KEY")
    
    config :geocodex,
      geocode_api_url: "https://maps.googleapis.com/maps/api/geocode"

Usage

Use @alice help for more information.

About

Allows Alice to provide weather forecast for a given location.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages