hedwig_weather

Hedwig Weather Responder


Keywords
bot, hedwig, irc-bot, responder, slack-bot
License
Apache-2.0

Documentation

Hedwig Weather Responder

Hex.pm Hex.pm Hex.pm Build Status

Installation

Add to the deps in mix.exs

def deps do
  [
    {:hedwig_weather, "~> 0.1.0"},
  ]
end

Config

Add the responder to your :responders list in your bot config, config/config.exs

config :my_robot, MyApp.MyRobot,
  responders: [
    {Hedwig.Responders.Weather, []},
  ]

Environment variables

  • LOCATION environment variable for the default location
  • DARKSKY_KEY environment variable for your darksky.net API key

Or, you can override the config, like so:

config :hedwig_weather,
  location: "Abbotsford, BC",
  darksky_key: "abcdefg12345678"