Connected Devices/Projects/Project Link/Taxonomy: Difference between revisions

Rules examples
(→‎Sending: + example)
(Rules examples)
Line 153: Line 153:


To Be Documented: Use channel selector {"kind": "AddThinkerbellRule"}.
To Be Documented: Use channel selector {"kind": "AddThinkerbellRule"}.
Example:
    PUT http://localhost:3000/api/v1/channels/set
   
    {
      "select":{
          "kind":"AddThinkerbellRule"
      },
      "value":{
          "ThinkerbellRule":{
            "name":"Hello, Thinkerbell",
            "source":"{\"rules\":[{\"conditions\":[{\"source\":[{\"id\":\"OpenZWave/72057594126794752 (Sensor)\"}],\"kind\":\"OpenClosed\",\"range\":{\"Eq\":{\"OpenClosed\":\"Open\"}}}],\"execute\":[{\"destination\":[{\"kind\":\"Log\"}],\"kind\":\"Log\",\"value\":{\"String\":\"Closed\"}}]}]}"
          }
      }
    }


* List available Recipes
* List available Recipes


To Be Documented: Use service selector {"getters": {"kind": "ThinkerbellRuleSource"}}}.
To Be Documented: Use service selector {"getters": {"kind": "ThinkerbellRuleSource"}}}.
Example:
    POST http://localhost:3000/api/v1/services HTTP/1.1 {"getters": [{"kind": "ThinkerbellRuleSource"}]}


== WebPush ==
== WebPush ==
Confirmed users
483

edits