/honeywell-elixir

An Elixir Client for the Honeywell Developer API

Primary LanguageElixirMIT LicenseMIT

Honeywell

Build Status Hex.pm Inline docs Deps Status License

Honeywell Cloud API Client for Elixir:

This is an unofficial client for the Honeywell Round and Water Leak & Freeze Detector APIs.

Usage

Installation

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

and run mix deps.get. Now, list the :honeywell application as your application dependency:

def application do
  [applications: [:honeywell]]
end

Configuration

You will need to set the following configuration variables in your config/config.exs file:

use Mix.Config

config :honeywell,
  client_id: System.get_env("HONEYWELL_CLIENT_ID"),
  client_secret: System.get_env("HONEYWELL_CLIENT_SECRET"),
  site: System.get_env("SITE"),
  redirect_uri: System.get_env("HONEYWELL_REDIRECT_URL")