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.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
There is only one driver for the Pebble platform, as listed below.