Skip to content

ccowmu/Office-IoT

Repository files navigation

Office-IoT

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.

What It Does

  • LED Control: Set colors and animations via Matrix chatbot ($led command)
  • Door Control: Unlock office door remotely ($letmein command)
  • State Management: Maintains device state and auto-resets door unlock after 10 seconds

API

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", ...}

Deployment

git clone https://github.com/ccowmu/Office-IoT.git
cd Office-IoT
docker-compose up -d

View logs:

docker-compose logs -f

See DEPLOYMENT.md for full instructions.

License

GPL-3.0

About

HTTP server to host json data for Rasberry Pi hardware that controls office IoT (doorbot, led lights)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors