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

Springworks/node-scale-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Application that reads value off a scale from a local file stream

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published