npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

deskbluez

v2.5.1

Published

CLI tool to control lower energy actuator systems (office desks) via bluetooth.

Downloads

28

Readme

DESKBLUEZ

THIS IS A REWRITE OF BLUEDESK PYTHON IMPLEMENTATION AS NODEJS MODULE

Connects to a low energy actuator system via bluetooth and allows remote control via command line or internal managed interface.

Supported and Tested Desks

Other devices may also work.

FEATURES

  • move to specific position
  • move Up / Down
  • multiple profiles
  • safety resistance detection and handling
  • unsupported device reporting / debug debug

DEMO

DEMO

Requirements

  • Linux
  • libglib2.0-dev
  • libdbus-1-dev
  • dbus-python OR dbus-python-devel (fedora)
npm install -g deskbluez

CLI Usage

HELP

Usage: deskbluez [options] [command]

Options:
  -V, --version        output the version number
  --profile <profile>  select configuration profile (default: "default")
  --adapter <adapter>  bluetooth adapter selection (default: "hci0")
  --debug              enable more details logs (default: false)
  -h, --help           display help for command

Commands:
  connect              connect and pair a supported device
  disconnect           disconnect and remove connected device
  status               get information about the current connect device
  report               start a report process for unsupported device and get all information for support
  up                   perform a single UP action
  down                 perform a single DOWN action
  to <position>        move desk to a specific position (absolute height), supported units: centimeter/inches, example: '65cm' OR '40inch'
  help [command]       display help for command

CONNECT

hostname@user:~/$ deskbluez connect
? Choose device › - Use arrow-keys. Return to submit.
❯   My Desk [E4:D1:A7:7E:XX:XX]
    Redmi [20:34:FB:BA:XX:XX]

...

✔ Choose device › My Desk [E4:D1:A7:7E:XX:XX]
Device connected successfully.

Move to a position

hostname@user:~/$ deskbluez to 66cm

Move UP

hostname@user:~/$ deskbluez up

Move DOWN

hostname@user:~/$ deskbluez down

Troubleshooting / FAQ

How to disconnect my desk ?

You can disconnect and remove the device using the bluetoothctl cli tool, just execute the following:

$ bluetoothctl

[bluetoothctl] disconnect XX:XX:XX:XX:XX:XX
[bluetoothctl] remove XX:XX:XX:XX:XX:XX

Pairing / Connection ISSUES: Authentication Failed

This error occurs in some distros, we managed to fix this by running the bluetoothctl shell open in the background, this could be related to security API restriction of the specific distro.