Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryanwinchester/hedwig_weather

Hedwig Weather Responder
https://github.com/ryanwinchester/hedwig_weather

bot hedwig irc-bot responder slack-bot

Last synced: about 14 hours ago
JSON representation

Hedwig Weather Responder

Awesome Lists containing this project

README

        

# Hedwig Weather Responder

[![Hex.pm](https://img.shields.io/hexpm/v/hedwig_weather.svg)](https://hex.pm/packages/hedwig_weather)
[![Hex.pm](https://img.shields.io/hexpm/l/hedwig_weather.svg)](https://hex.pm/packages/hedwig_weather)
[![Hex.pm](https://img.shields.io/hexpm/dt/hedwig_weather.svg)](https://hex.pm/packages/hedwig_weather)
[![Build Status](https://travis-ci.org/ryanwinchester/hedwig_weather.svg?branch=master)](https://travis-ci.org/ryanwinchester/hedwig_weather)

## Installation

Add to the deps in `mix.exs`

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

## Config

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

```elixir
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](https://darksky.net) API key

Or, you can override the config, like so:

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