Project

brunt_api

0.0
No commit activity in last 3 years
No release in over 3 years
This is an unofficial Ruby binding of Brunt API (e.g. Blind Engine). Ported from JS binding by MattJeanes https://github.com/MattJeanes/brunt-api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 5.0
~> 10.0

Runtime

 Project Readme

BruntAPI

Gem Version

This is an unofficial Ruby binding for Brunt API. Ported from JS binding by MattJeanes.

Currently this gem support operations only for Brunt Blind Engine.

Installation

gem 'brunt_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install brunt_api

Usage

Preparation

client = BruntAPI::Client.new
client.login('brunt_account_id', 'password')

Get things infomation

client.get_things

Get thing state

client.get_state('thing_uri')

'thing_uri' can be obtained by BruntAPI::Client#get_things.

Set blind position via Blind Engine

client.set_position('thing_uri', position)

position must be Numeric in range 0-100.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mmck328/brunt_api.rb.

License

The gem is available as open source under the terms of the MIT License.