Difference between revisions of "SudoSense"

From Sudo Room
Jump to navigation Jump to search
(Created page with "SudoSense is an API for collecting, viewing, distributing and parsing Sensory Data. ==API== ===get=== *url: /api/get/'''''sensorID''''' '''return''' { "method": "get", ...")
 
Line 1: Line 1:
SudoSense is an API for collecting, viewing, distributing and parsing Sensory Data.
SudoSense is an API for collecting, viewing, distributing and parsing Sensory Data.
Point of Contact: --[[User:Wolfy|Wolfy]] ([[User talk:Wolfy|talk]]) 20:18, 23 January 2013 (UTC)


==API==
==API==

Revision as of 12:18, 23 January 2013

SudoSense is an API for collecting, viewing, distributing and parsing Sensory Data.

Point of Contact: --Wolfy (talk) 20:18, 23 January 2013 (UTC)

API

get

  • url: /api/get/sensorID

return

{
"method":   "get",
"sensorid": "sensorID",
"value":    "currentValue",
"unit":     "unit"
}

set

  • url: /api/set/sensorID

post

{
"value": "currentValue",
"key":   "secretKEY"
}

return

{
"method":   "set",
"sensorid": "sensorID",
"value":    "currentValue",
"unit":     "unit"
}