Better use the AlreadyActive semantics, which signalises that a state,
no matter which state in particular, is already active.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This will be used in the future Android App.
/api only allows POST requests. POST variables:
- user
- pass
- command
Supported commands: "status", "lock", "unlock"
Only valid API requests (i.e., an API request that has all POST variables set)
will respons a valid JSON response. Otherwise, an html error will be thrown.
JSON response format:
err: Integer, Error code, as defined in LogicResponse
msg: Message
status: Current kitchen status. Only set in case of success.
The LogicResponse stati "Success", "AlreadyLocked" and "AlreadyUnlocked" are
considered successful.
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>