WattDepot logo WattDepot3 HTTP API: Sensor Models

GET /wattdepot/{group_id}/sensormodels

http://server.wattdepot.org/wattdepot/{group_id}/sensormodels Response
		      
[
   {
      "id": "egauge1",
      "protocol": "eGauge",
      "type": "EGAUGE",
      "version": "1.0"
   },
   {
      "id": "shark1",
      "protocol": "MODBUS",
      "type": "Shark 200",
      "version": "1.03"
   }
]
		      
		    

Get a full list of defined Sensor Models.

GET /wattdepot/{group_id}/sensormodel/{sensormodel_id}

http://server.wattdepot.org/wattdepot/{group_id}/sensormodel/egauge1 Response
              
{
   "id": "egauge1",
   "protocol": "eGauge",
   "type": "EGAUGE",
   "version": "1.0"
}
              
            

Get the Sensor Model with the given sensormodel_id.

PUT /wattdepot/{group_id}/sensormodel/

curl -F '{id :"egauge1", "protocol": "eGauge", "type": "EGAUGE", "version": "1.0"}' http://server.wattdepot.org/wattdepot/{group_id}/sensormodel/
              
{
   "status": 200,
   "message": "OK"
}
              
            

Add the Sensor Model. Will return the HTTP status. Error status if duplicate unique id.

DEL /wattdepot/{group_id}/sensormodel/{sensormodel_id}

curl -X DELETE http://server.wattdepot.org/wattdepot/{group_id}/sensormodel/egauge1
              
{
   "status": 200,
   "message": "OK"
}
              
            

Deletes the Sensor Model with the given sensormodel_id. Will return the HTTP status. Error status if sensormodel_id is not defined.