You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2024. It is now read-only.
currently: curl -XPOST http://:<password>@schalter.hq.c3d2.de:/door/unlock results in {} which is not helpful.
maybe the answer could be customizable with optional arguments, e.g.
if strings are ok… curl -XPOST http://:<password>@schalter.hq.c3d2.de:/door/unlock?keyname=lock&type=string&success=OPEN&failure=CLOSED&fallback=UNKNOWN results in {"lock":"OPEN"} when successful and {"lock":"CLOSED"} when not or {"lock":"UNKNOWN"} on error.
if it should stay boolean… curl -XPOST http://:<password>@schalter.hq.c3d2.de:/door/unlock?keyname=locked&type=boolean&success=false&failure=true&fallback=false results in {"locked":false} when successful and {"locked":true} …
And similar json answer for /door/lock and door.json.
A customizable answer would be nice to be used in e.g. https://github.com/mwarning/trigger.
currently:
curl -XPOST http://:<password>@schalter.hq.c3d2.de:/door/unlockresults in{}which is not helpful.maybe the answer could be customizable with optional arguments, e.g.
curl -XPOST http://:<password>@schalter.hq.c3d2.de:/door/unlock?keyname=lock&type=string&success=OPEN&failure=CLOSED&fallback=UNKNOWNresults in{"lock":"OPEN"}when successful and{"lock":"CLOSED"}when not or{"lock":"UNKNOWN"}on error.curl -XPOST http://:<password>@schalter.hq.c3d2.de:/door/unlock?keyname=locked&type=boolean&success=false&failure=true&fallback=falseresults in{"locked":false}when successful and{"locked":true}…And similar json answer for
/door/lockanddoor.json.