Skip to content

A simple Sartorius Scale web interface using the SBI protocol

License

Notifications You must be signed in to change notification settings

ericlowry/sartorius-sbi-httpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sartorius-sbi-httpd

A simple Sartorius Scale web interface using the SBI protocol

Description

This is an example application that shows how to use the sartorius-sbi module in an actual application. It uses bootstrap for the UI and socket.io for communication between the scale and the web application.

Screen Shots

Desktop View

desktop

Mobile View

mobile

Installation

git clone https://github.com/ericlowry/sartorius-sbi-httpd.git
cd sartorius-sbi-httpd
npm install
node sbi-httpd.js --help

Usage

$ node sbi-httpd.js --help

  Usage: sbi-httpd [options]

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -d --ttyDevice <dev>    device name [/dev/tty.USB0]
    -b --baudRate <baud>    1200, [9600] or 38400
    --dataBits <bits>       7 or [8]
    --stopBits <bits>       0 or [1]
    --parity <parity>       odd, even or [none]
    --rtscts                ready-to-send, clear-to-send
    --xon                   xon handshake
    --xoff                  xoff handshake
    --xany                  xany handshake
    --responseTimeout <ms>  response timeout [200] milliseconds
    --precision <places>    weight precision [1] or 2 decimal places

About

A simple Sartorius Scale web interface using the SBI protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published