Giter Site home page Giter Site logo

tradfri_ar's Introduction

Tradfri AR Project

This is meant as a proof of concept on controlling Ikea TRÅDFRI lights using Augmented Reality. It might not be very practical since controlling your lights with a physical switch (or the Ikea app) is way faster. But nonetheless I found it a nice project for myself started with AR.

Libraries used

  • AR.js - GitHub -> this project includes a custom build which contains a fix for custom markers
  • a-frame - GitHub
  • node-tradfri-argon - NPM

Application architecture

It uses NodeJS to serve a static webpage. Using ExpressJS to expose a simple API to control the TRÅDFRI lights. The node-tradfri-argon package relies on libcoap.

Installation

  • Clone this repo
  • Install libcoap (instructions here)
  • Modify the package.json 'start' script, set your params: COAP_CLIENT_PATH, HUB_IP_ADDRESS and SECURITY_ID (the ID on the bottom of your Ikea Hub)
$ npm install
$ npm start

What works so far

It has 2 entities, each has its own marker (Hiro and custom marker). The custom marker can switch my dining room light on (in 3 'colors').

Todo

  • Make the object clickable using touchscreen instead of the small black circle pointer

Examples

Example light switch Example AR

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.