codeadict / ChannelsLightsControl

Demo app with Django Channels to control Lights over websockets. Made for PyStPete meetup(https://www.meetup.com/Saint-Petersburg-Python-Meetup/).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Demo app with Django Channels to control Lights over websockets. Made for PyStPete meetup(https://www.meetup.com/Saint-Petersburg-Python-Meetup/).

License:Other


Languages

Language:Python 58.0%Language:CSS 22.5%Language:HTML 17.2%Language:JavaScript 2.3%