HTTPS SSH

occupied_lamp

occupied / vacant indication lamp using websocket(tornado)

install

pip install -r requirements.txt

startup

PYTHONPATH=lib python lib/occupied_lamp/main.py

how to use

  • to view, access with borwser(tested with google chrome) http://localhost:8888/
  • to change state, use web api
    • url: /api
    • parameters: space_id=[0-9]+, state=(occupied|vacant), message

example) space 2 => occupied:

http://localhost:8888/api?space_id=2&state=occupied&message=(~_~)

example) space 4 => vacant:

http://localhost:8888/api?space_id=4&state=vacant&message=(^-^)