Build Status

CloudBit

A Ruby Gem for sending output to a littleBits CloudBit.

Installation

Add this line to your application's Gemfile:

gem 'cloud_bit'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cloud_bit

Usage

require 'cloud_bit'
cloudbit = CloudBit::Client.new('your-access-token', 'your-device-id')
cloudbit.output(100, 3000)

You can get your Access Token and Device ID from the Settings page of the littleBits CloudBit Control Panel

Contributing

  1. Fork it ( http://github.com/spilth/cloud_bit/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request