Coder Social home page Coder Social logo

robertcoopercode / idasen-control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mitsuhiko/idasen-control

0.0 1.0 0.0 139 KB

Lets you control IKEA IDÅSEN desks from the command line.

Home Page: https://www.npmjs.com/package/idasen-control

License: MIT License

JavaScript 100.00%

idasen-control's Introduction

idasen-control

npm version

This utility lets one control an IKEA IDÅSEN desk via command line utility. It spawns a small server to keep the connection to the desk alive on first use and reuses that later. This could be improved but is good enough for my purposes.

This lets you move to your preferred heights without having to keep the button pressed.

It stores its configuration in a file called ~/.idasen-control.json.

The connection with the table is established via bluetooth, so a bluetooth module on the connecting computer is required.

Installation

If you have volta then you can install it like this:

volta install idasen-control

Otherwise you can use npm:

npm install -g idasen-control

Scanning

To find desks available you need to bring the tool into scanning mode after setting your desk to pairing mode (keep bluetooth button pressed). It will do an initial scan for 10 seconds and wait for 2 more seconds after each discovered device.

idasen-control --scan

Connecting

After you know the address of the desk to connect to it:

idasen-control --connect-to ADDRESS

This will store the address in the config file.

Check Desk Status

To check the status of the desk run:

idasen-control --status

Move Desk

To move the desk to a position run this command:

idasen-control --move-to POSITION

For instance 10 is a typical sitting position, 50 is a typical standing position. If you want to block the shell until the desk is in its final position pass --wait.

This is best used with shell aliases.

License

It's based on Steven Roebert's desk-control MQTT script.

MIT

idasen-control's People

Contributors

dependabot[bot] avatar mitsuhiko avatar robertcoopercode avatar

Watchers

 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.