Skip to content
This repository was archived by the owner on Jul 2, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (28 loc) · 834 Bytes

File metadata and controls

38 lines (28 loc) · 834 Bytes

Scale Reader

Node application that reads a file stream, parses its input as a weight measurement and sends it somewhere.

Probably only useful in combination with:

Usage

Install NPM module:

npm install -g scale-reader

Read data from a file and transmit stable values to a server endpoint:

scale-reader --help

  Usage: scale-reader [options]

  Options:

    -h, --help                                output usage information
    -F, --filename <path to file>             Path to file to read weight from
    -T, --target-url <url to PATCH endpoint>  Target URL

Data transmission is a PATCH to --target-url with body:

{
  "grams": 1025,
  "timestamp": "2015-12-08T12:35:43.771Z"
}

License

MIT