balena-io-experimental / balena-ir-remote

[WIP] A simple application for controlling your AC with a RaspberryPi ( or a balenaFin, if you wanna go fancy or even cellular :P )
14 stars 2 forks source link

balena-ir-remote

simple server application that allows to clone, save and arbitrarily execute IR commands.

SETUP

API

list saved commands

METHOD URL JSON BODY PARAMETERS SUCCESS ERROR
GET /v1/irs HTTP 200 ["on","off"] HTTP 500 error message

read content of a saved commands

METHOD URL JSON BODY PARAMETERS SUCCESS ERROR
GET /v1/ir name string HTTP 200 {"name":"on","cmd": "+4525 -4519 +549 ..."} HTTP 500 error message

delete a command

METHOD URL JSON BODY PARAMETERS SUCCESS ERROR
DELETE /v1/ir name string HTTP 200 OK HTTP 500 error message

save a command

METHOD URL JSON BODY PARAMETERS SUCCESS ERROR
POST /v1/ir name string HTTP 200 {"name":"on","cmd": "+4525 -4519 +549 ..."} HTTP 500 error message

execute a saved command

METHOD URL JSON BODY PARAMETERS SUCCESS ERROR
PUT /v1/ir name string HTTP 200 OK HTTP 500 error message