Skip to content
brandon-dacrib edited this page Jul 29, 2013 · 12 revisions

/say

The /say API basically takes a text input, and says it audibly by using the google translate api. sample usage:

ruby

require 'net/http'
result = Net::HTTP.get(URI.parse('http://yourserver:4567'), '/say/hello%20world')

bash

curl http://yourserver:4567/say/hello%20world

python

import httplib2
resp, content = httplib2.Http().request("http://yourserver:4567/say/hello%20world")

/do

All of the actions that make a change in the physical world such as toggling a light or switch are listed under the do API. More documentation on supported devices and calls to come.

status curl http://yourserver:4567/do/nodeid/status
on "wget -O /dev/null http://yourserver:4567/do/nodeid/1"
off "wget -O /dev/null http://yourserver:4567/do/nodeid/0"

/notify

Send notifications via any of the supported methods below.

  • email
  • sms
  • growl

You must configure the following directives in your cloverleaf.conf

  • from_email
  • google_voice_user
  • google_voice_pass

/play

Clone this wiki locally