Skip to content

thingbound/tinkerhub-bridge-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinkerhub-bridge-http

Tinkerhub plugin for accessing things over HTTP.

Usage

When running tinkerhubd install via:

$ tinkerhubd install bridge-http

Server port

Currently its not possible to configure the server port and it always starts on port 10000.

API

GET /v1/things

List all the things that can be seen.

GET /v1/things/:tags

List all the things that matches the given tags. Tags are comma-separated, so type:light,cap:dimmable would be equivalent to calling th.get('type:light', 'cap:dimmable') in the normal API.

GET /v1/things/:tags/call/:action

Call an action on all things matching the tags. This will call the action without any arguments.

POST /v1/things/:tags/call/:action

Call an action on all things matching the tags. The body of the POST should be in an array in JSON format. The array represents the arguments to pass to the action.

About

HTTP API for Tinkerhub networks

Resources

Stars

Watchers

Forks

Packages

No packages published