petretiandrea / smart-thermostat

Pervasive assigment1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thermostat Digital Twin

Application written in nodejs:

  • folder: thermostat-digitaltwin
  • npm install
  • npm start
GET /thermostat/properties/temperature

200 OK

{
	temperature: 20.3
}
GET /thermostat/properties/status

200 OK

{
	state: "heat" //or "cold", "off"
}
POST /thermostat/actions/heat

202 Accepted

POST /thermostat/actions/cold

202 Accepted

POST /thermostat/actions/off

202 Accepted

About

Pervasive assigment1


Languages

Language:Scala 68.6%Language:JavaScript 31.4%