Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The /say API basically takes a text input, and says it audibly by using the google translate api. sample usage:
require 'net/http' result = Net::HTTP.get(URI.parse('http://yourserver:4567'), '/say/hello%20world')
import httplib2 resp, content = httplib2.Http().request("http://yourserver:4567/say/hello%20world")
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"
Send notifications via any of the supported methods below.
You must configure the following directives in your cloverleaf.conf