Skip to content

davidflypei/nodejs-cubiscan

Repository files navigation

nodejs-cubiscan

codecov example workflow

This module allows you to connect and interface to a Cubiscan (https://cubiscan.com/) device over the network. It's still a bit of a work in progress, but the main commands work. Feel free to make/recommend improvements where possible.

Tested Commands:

  • measure
  • setDimUnit
  • setWeightUnit
  • values
  • units
  • test
  • zero

Commands Need Testing:

  • continuousMeasure
  • dimCalibration
  • setFactor
  • setLocation
  • scaleCalibration

Usage

const CubiScan = require("@greathobbies/nodejs-cubiscan");

let cubiscan = new CubiScan({ip_address: '192.168.0.20', port: 49000});

cubiscan.measure().then(data => {
  console.log(data);
  cubiscan.endSocket();
});

Extras

Based on camptocamp's Python library camptocamp/cubiscan.

About

This module allows you to connect and interface to a Cubiscan (https://cubiscan.com/) device over the network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published