Adapter used to connect the IKEA light to the adapter and expose it to the VICINITY neighborhood. This adapter is currently a quick fix for HITS use case and is not planned to have a continuous development. The adapter does however give a good starting point for developing support for multiple light bulbs.
Before running this adapter, ensure that you have the following in place:
-
Python 3.6.5+
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.6
comes with a pre-installed 3.6, use
python3
to invoke itDownload binary from: https://www.python.org/downloads/
Make sure to update your Environment Variables -
PostgreSQL 9.6+
$ sudo apt-get install postgresql-9.6
-
Clone this repository using
git clone
-
Inside the project directory run
pip install -r requirements.txt
to install the necessary requirements
Inside the project directory run
$ python manage.py makemigrations
$ python manage.py migrate
Run the adapter on a port of your choice
$ python manage.py runserver <your_host>:<your_port>
Example:
$ python manage.py runserver 127.0.0.1:9000