User Tools

Site Tools


api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
api [2013/11/15 10:06]
curlymo
api [2015/11/27 22:09] (current)
Line 1: Line 1:
 **Identification** **Identification**
  
-All programs ​communicatie ​with each other by using JSON objects. The normal identification process is as follows:+All programs ​communicate ​with each other by using JSON objects. The normal identification process is as follows:
  
   * Connect to ''​pilight-daemon''​ through ''​x.x.x.x:​5000''​   * Connect to ''​pilight-daemon''​ through ''​x.x.x.x:​5000''​
Line 44: Line 44:
 **Receiver** **Receiver**
  
-The receiver does nothing more than connecting to the ''​pilight-daemon'',​ and receiving the same JSON objects that were sended ​by the sender. The only difference it that the receiver will receive JSON objects that notify if the messages were send or received. An example:+The receiver does nothing more than connecting to the ''​pilight-daemon'',​ and receiving the same JSON objects that were sent by the sender. The only difference it that the receiver will receive JSON objects that notify if the messages were send or received. An example:
 <code js> <code js>
 { {
Line 75: Line 75:
 } }
 </​code>​ </​code>​
-After this command, the ''​pilight-daemon''​ will send the raw JSON config file in which all locations and devices are defined. This can help the controller to validate the sended ​codes. ​+After this command, the ''​pilight-daemon''​ will send the raw JSON config file in which all locations and devices are defined. This can help the controller to validate the sent codes. ​
  
 //​(development version) Additionally the config can contain a version array. The first number in the array is the currently running version, the second number is the latest upstream version.// //​(development version) Additionally the config can contain a version array. The first number in the array is the currently running version, the second number is the latest upstream version.//
Line 83: Line 83:
  "​living":​ {  "​living":​ {
  "​name":​ "​Living",​  "​name":​ "​Living",​
- "order":​ 1, + "bookshelf": { 
- "​bookshelve": { + "​name":​ "​Book ​Shelf Light",​
- "​name":​ "​Book ​Shelve ​Light",​+
  "​protocol":​ ["​kaku_switch"​],​  "​protocol":​ ["​kaku_switch"​],​
  "​id":​ [{  "​id":​ [{
Line 148: Line 147:
  "​humidity":​ 800,  "​humidity":​ 800,
  "​battery":​ 1,  "​battery":​ 1,
- "temparature": 3100+ "temperature": 3100
  }  }
 } }
api.txt · Last modified: 2015/11/27 22:09 (external edit)