Platforms

Artoo has a extensible system for connecting to hardware devices.

Pebble


Repository Issues

The Pebble is a smart watch, that connects via bluetooth.

+ info about the Pebble platform click here

How To Install

Installing artoo with pebble support is pretty easy using ruby gems.

gem install artoo-pebble

How To Use

This small program receives button press events from a Pebble smart watch.

require 'artoo'

connection :pebble, :adaptor => :pebble
device     :watch,  :driver  => :pebble, :name => 'pebble'

api :host => '0.0.0.0', :port => '8080'

name 'pebble'

def button_push(*data)
  unless data[1].nil?
    p " button pushed"
  end
end

work do
  pebble.send_notification("Hello Pebble!")
  on pebble, :button => :button_push
end

How To Connect

This software requires version 2.X of the Pebble watch firmware.

The main steps are:

  • Install Pebble 2.0 iOS or Android app. (If you haven't already)
  • Install watchbot by following this instructions
  • After app is installed, click on "Settings" and configure robot name, robot api host, and robot api port
  • Configuration settings must match with your program, in this example, api host would be your computer IP, robot name is 'pebble', and robot api port is 8080

Drivers

There is only one driver for the Pebble platform, as listed below.