Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitsuhiko/idasen-control
Lets you control IKEA IDÅSEN desks from the command line.
https://github.com/mitsuhiko/idasen-control
Last synced: 3 days ago
JSON representation
Lets you control IKEA IDÅSEN desks from the command line.
- Host: GitHub
- URL: https://github.com/mitsuhiko/idasen-control
- Owner: mitsuhiko
- License: mit
- Created: 2020-05-24T12:55:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T01:10:16.000Z (over 2 years ago)
- Last Synced: 2024-12-23T16:14:04.259Z (11 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/idasen-control
- Size: 296 KB
- Stars: 428
- Watchers: 16
- Forks: 24
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# idasen-control
[![npm version](https://img.shields.io/npm/v/idasen-control.svg)](https://www.npmjs.com/package/idasen-control)
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](https://volta.sh/) 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](./LICENSE)