Skip to content

vicinityh2020/openhab-adapter-ikealight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VICINITY OpenHAB Adapter IKEA Light

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.

Prerequisites

Before running this adapter, ensure that you have the following in place:

  • Python 3.6.5+

    Ubuntu 14.04 and 16.04:

    $ sudo add-apt-repository ppa:deadsnakes/ppa
    $ sudo apt-get update
    $ sudo apt-get install python3.6

    Ubuntu 17.10

    comes with a pre-installed 3.6, use python3 to invoke it

    Windows 10

    Download binary from: https://www.python.org/downloads/
    Make sure to update your Environment Variables

  • PostgreSQL 9.6+

    Ubuntu 17.04 - 17.10

    $ sudo apt-get install postgresql-9.6

Installation

  1. Clone this repository using git clone

  2. 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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages