Jetlun REST Web Service Interface

REST API: Data Access

Get device info

Description: Get individual device's information

Method: GET

Arguments: myjetlun_id, sn, api_key, timestamp, sign, format

Format: JSON, XML

URL: "http://api.myjetlun.com/v1/services/device?mac=C8D2C11A4D00&sn=1&api_key=[apikey]&myjetlun_id=[myjetlun-id]&timestamp=[time]&sign=[sign ature]"

Example Response:

Sensor attrs:

  c2: positive kWh

  c4: negative kWh

  ca: current

  cd: voltage

  cf: power factor

  da: temperature

  db: humidity

{
"device":{
{
"mac":"C8D2C1000634",
"sn":"c8d2c100000023f70000000000000000",
"status":"online",
"name":"PM-23F7",
"type":Panel Meter,
"did":"0031",
"device_network":"ZIGBEE",
"firmware_version":"03",
"registered_gateway_id":"4ddf69cfb376053141000025",
"timestamp":"20120815160700",
"online_at":"Mon May 21 04:21:50 UTC 2012",
"created_at":"Thu Dec 01 02:06:43 UTC 2011",
"sensors":{
"attrs":[ca,cd,c2,c4,cf],
"sid":"3101",
"type":"3",
"status":"1",
"name":"kichen room"
}
}
}