Status
{
"status": "NORMAL",
"room_id": "livingroom",
"occupancy": 0,
"carbon_detected": false
}
GET /statuses
[
{
"status": "NORMAL",
"room_id": "livingroom",
"occupancy": 0,
"carbon_detected": false
},
{
"status": "NORMAL",
"room_id": "bedroom",
"occupancy": 0,
"carbon_detected": false
}
]
GET /status/livingroom
{
"status": "NORMAL",
"room_id": "livingroom",
"occupancy": 0,
"carbon_detected": false
}
POST /status/livingroom
{
"status": "FIRE"
}
POST /status/livingroom
{
"occupancy": 1
}
GET /images/livingroom.png GET /images/bedroom.png
Steps:
- git pull
- copy conf.py
- python server.py