Skip to content

codeadict/ChannelsLightsControl

Repository files navigation

Django Channels Light Control

Demo

Demo app using django channels to control(turn on and off) some lights using the WebSockets protocol.

This was created for Python St. Petersburg (https://www.meetup.com/Saint-Petersburg-Python-Meetup/).

Demo

Credentials:

  • Username: admin
  • Password: th3n0rthr3m3mb3rs

Slides

Requirements

  • Python 3.5+
  • PostgreSQL
  • Redis

Running locally

$ pip install -r requirements.txt
$ ./manage.py runserver

Go to: http://localhost:8000

Create a few lights on the Django Admin(http://localhost:8000/admin) and start controlling it.

That's all!

License

MIT