Socket
Book a DemoInstallSign in
Socket

@hangtime/motherboard

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@hangtime/motherboard

A Web Bluetooth API for the Griptonite Motherboard + Beastmaker used by climbers to improve finger strength https://griptonite.io/motherboard/

0.0.4
unpublished
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Force-Sensing Climbing Training

The objective of this project is to create a client that can establish connections with various Force-Sensing Hangboards/Plates used by climbers for strength measurement. Examples of such hangboards include the Moterboard, Climbro, SmartBoard, Entralpi or Tindeq Progressor

Roadmap

  • ➡️ Connect with devices
    • ✅ Griptonte Motherboard
    • ✅ Tindeq Progressor
    • ✅ Entralpi
    • ➡️ Climbro
    • ➡️ SmartBoard
  • ✅ Read / Write / Notify using Bluetooth
  • ➡️ Calibrate Devices
  • ➡️ Output weight/force stream

Development

git clone https://github.com/Stevie-Ray/motherboard
cd motherboard
npm install

Install

$ npm install @hangtime/motherboard

Example usage (Motherboard)

Simply importing the utilities you need from @hangtime/motherboard

<button id="motherboard" type="button">Connect Motherboard</button>
import { Motherboard, connect, disconnect, read, write, notify } from "@hangtime/motherboard"

const motherboardButton = document.querySelector("#motherboard")

motherboardButton.addEventListener("click", () => {
    connect(Motherboard, async () => {
        // Listen for notifications
        notify((data) => {
            console.log(data)
        })

        // read battery + device info
        await read(Motherboard, "battery", "level")
        await read(Motherboard, "device", "manufacturer")
        await read(Motherboard, "device", "hardware")
        await read(Motherboard, "device", "firmware")

        // Calibrate?
        await write(Motherboard, "uart", "tx", "C", 5000)

        // Read stream?
        await write(Motherboard, "unknown", "01", "1", 2500)
        await write(Motherboard, "unknown", "02", "0", 2500)
        await write(Motherboard, "uart", "tx", "S30", 5000)

        // Read stream (2x)?
        await write(Motherboard, "unknown", "01", "0", 2500)
        await write(Motherboard, "unknown", "02", "1", 2500)
        await write(Motherboard, "uart", "tx", "S30", 5000)

        // disconnect from device after we are done
        disconnect(Motherboard)
    })
})

License

MIT © Stevie-Ray Hartog

Keywords

climbing

FAQs

Package last updated on 03 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.