HTTP API server for Computer Club office IoT devices.
Replacement for the old dot.cs.wmich.edu:8878 server that controls LED lights and doorbot.
- LED Control: Set colors and animations via Matrix chatbot (
$ledcommand) - Door Control: Unlock office door remotely (
$letmeincommand) - State Management: Maintains device state and auto-resets door unlock after 10 seconds
Port 8878 handles both control and status:
-
POST /: Control commands from chatbot
{"status": {"red": 255, "green": 0, "blue": 0, "type": "color", "letmein": true}}Returns:
200 OK -
GET /: Status for doorbot polling
{"letmein": false, "red": 255, "green": 0, "blue": 0, "type": "color", ...}
git clone https://github.com/ccowmu/Office-IoT.git
cd Office-IoT
docker-compose up -dView logs:
docker-compose logs -fSee DEPLOYMENT.md for full instructions.
GPL-3.0