API servers/clients for use with koru library
This project provides client and server wrappers for the koru library for various protocols.
There is currently a REST API server, with plans for a MQTT client in the near future.
This should be considered alpha quality software at this point in time, and is highly untested.
The REST API was created mostly as a PoC while developing koru.
Returns version number of koru-api
Returns a JSON array of devices in the database
Returns a JSON array of devices discovered on the network w/ socket timeout of 5 seconds
Identical to GET /discover
, only with a configurable timeout
JSON-formatted version of device info XML
Returns current power state
e.g.
- off
- displayoff
- on
Sends a power command
e.g.
- toggle
- turnoff
- turnon
Launch an app by id
Emulates remote button press
e.g.
- PowerOff
- VolumeDown
- Home
- ...
Sends UTF-8 character key press
Sends UTF-8 string as series of key presses