Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bergos/ut61e
Stream interface for the UNI-T UT61E multimeter
https://github.com/bergos/ut61e
Last synced: about 2 months ago
JSON representation
Stream interface for the UNI-T UT61E multimeter
- Host: GitHub
- URL: https://github.com/bergos/ut61e
- Owner: bergos
- Created: 2016-10-16T17:14:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-16T17:14:47.000Z (over 8 years ago)
- Last Synced: 2024-04-14T18:21:40.801Z (10 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ut61e
Stream interface for the UNI-T UT61E multimeter.
Requires the `he2325u` and `es51922` command line applications.
You can find a fork that fixes a Linux USB reset problem [here](https://github.com/bergos/ut61e_cpp).## Usage
The module returns the UT61E class.
A measurement stream can be created by creating a new instance of the class.
The path to the `he2325u` and `es51922` must be provided in the options.var UT61E = require('ut61e')
// creates a new instance
var ut64e = new UT61E({
he2335u: {
// path to the command line application
path: '/home/bergi/Projects/c/ut61e_cpp/he2325u/he2325u'
},
es51922: {
// path to the command line application
path: '/home/bergi/Projects/c/ut61e_cpp/es51922/es51922'
}
})ut64e.on('data', function (chunk) {
// writes the measurement objects to the console
console.log(chunk)
})
## Measurement objectThe measurement object contains the following properties:
- `timestamp`: The number of milliseconds since 1 January 1970 00:00:00 UTC
- `sequence`: A sequence number that starts at 1 after connecting to the device or parameter changes on the device
- `value`: The measured value
- `unit`: The unit of the measured value