Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ryanwinchester/hedwig_weather
- Owner: ryanwinchester
- Created: 2017-06-27T01:10:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T20:31:16.000Z (about 6 years ago)
- Last Synced: 2024-10-30T16:55:51.475Z (11 days ago)
- Topics: bot, hedwig, irc-bot, responder, slack-bot
- Language: Elixir
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 keyOr, you can override the config, like so:
```elixir
config :hedwig_weather,
location: "Abbotsford, BC",
darksky_key: "abcdefg12345678"
```