Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
/ Tradfri_AR Public archive

PoC - Controlling Ikea TRÅDFRI lights using (web based) Augmented Reality

Notifications You must be signed in to change notification settings

wimvdc/Tradfri_AR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PoC - Controlling Ikea TRÅDFRI lights using (web based) Augmented Reality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published