Code Monkey home page Code Monkey logo

openhab-adapter-ikealight's Introduction

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

openhab-adapter-ikealight's People

Contributors

chlenix avatar

Watchers

James Cloos avatar Viktor Oravec avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.