Inside Temperature Scenarios

Action cURL example Response example
Retrieve list of all inside temperature scenarios
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/input_inside_scenarios/
{
  "results": [
    {
      "id": 1,
      "owner": "smarthg@googlegroups.com",
      "submitted": …,
      "description": "…"
    },
    …
  ]
}
Retrieve inside temperature scenario by id
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/input_inside_scenarios/1
{
  "id": 1,
  "owner": "smarthg@googlegroups.com",
  "submitted": …,
  "description": "…",
  "content": "…"
}
Create new inside temperature scenario
curl -X POST -d '{ owner: "smarthg@googlegroups.com", description: "…", content: "…" }' http://mclabservices.di.uniroma1.it/eur-k/api/input_inside_scenarios/
{
  "id": 1
}

Outdoors Temperature Scenarios

Action cURL example Response example
Retrieve list of all outdoors temperature scenarios
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/input_outdoors_scenarios/
{
  "results": [
    {
      "id": 2,
      "owner": "smarthg@googlegroups.com",
      "submitted": …,
      "description": "…"
    },
    …
  ]
}
Retrieve outdoors temperature scenario by id
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/input_outdoors_scenarios/2
{
  "id": 2,
  "owner": "smarthg@googlegroups.com",
  "submitted": …,
  "description": "…",
  "content": "…"
}
Create new outdoors temperature scenario
curl -X POST -d '{ owner: "smarthg@googlegroups.com", description: "…", content: "…" }' http://mclabservices.di.uniroma1.it/eur-k/api/input_outdoors_scenarios/
{
  "id": 2
}

Heatpump Scenarios

Action cURL example Response example
Retrieve list of all heatpump scenarios
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/input_heatpump_scenarios/
{
  "results": [
    {
      "id": 3,
      "owner": "smarthg@googlegroups.com",
      "submitted": …,
      "description": "…"
    },
    …
  ]
}
Retrieve heatpump scenario by id
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/input_heatpump_scenarios/2
{
  "id": 3,
  "owner": "smarthg@googlegroups.com",
  "submitted": …,
  "description": "…",
  "content": "…"
}
Create new heatpump scenario
curl -X POST -d '{ owner: "smarthg@googlegroups.com", description: "…", content: "…" }' http://mclabservices.di.uniroma1.it/eur-k/api/input_heatpump_scenarios/
{
  "id": 3
}

Executions

Action cURL example Response example
Retrieve list of all executions
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/executions/
{
  [
    {
      "id": 100,
      "owner": "smarthg@googlegroups.com",
      "submitted": …, // submission timestamp
      "scenario_inside": 1, // id of inside temperature scenario
      "scenario_outdoors": 2, // id of outdoors temperature scenario
      "scenario_heatpump": 3, // id of heatpump scenario
      "cop": 2.5, // coefficient of performance of heatpump
      "a": 100, // exchange surface with outside
      "status": "co", // completed
      "completed": …, // completion timestamp
      "c": …, // capacitance
      "u": …, // overall house heat transfer coefficent
      "r": …, // house thermal insulation
      "evaluation": … // evaluation data
    },
    …
  ]
}
Retrieve execution by id
curl -X GET http://mclabservices.di.uniroma1.it/eur-k/api/executions/100
{
  "id": 100,
  "owner": "smarthg@googlegroups.com",
  "submitted": …, // submission timestamp
  "scenario_inside": 1, // id of inside temperature scenario
  "scenario_outdoors": 2, // id of outdoors temperature scenario
  "scenario_heatpump": 3, // id of heatpump scenario
  "cop": 2.5, // coefficient of performance of heatpump
  "a": 100, // exchange surface with outside
  "status": "co", // completed
  "completed": …, // completion timestamp
  "c": …, // capacitance
  "u": …, // overall house heat transfer coefficent
  "r": …, // house thermal insulation
  "evaluation": … // evaluation data
}
Create new execution
curl -X POST -d '{ owner: "smarthg@googlegroups.com", scenario_inside: 1, scenario_outdors: 2, scenario_heatpump: 3, cop: 2.5, a: 100 }' http://mclabservices.di.uniroma1.it/eur-k/api/executions/
{
  "id": 100
}
Delete execution by id
curl -X DELETE http://mclabservices.di.uniroma1.it/eur-k/api/executions/100