byspectra-lib
v1.4.483
Published
Core Library to support BySpectra Framework
Downloads
2,245
Readme
Project Title
BySpectra Library
Getting Started
This library allows to support the built of the aquisition device.
Prerequisites
It is specific to a certain hardware, so makes no sense to use it on different configuration. The software requirements are:
apt-get -y python3 libusb-dev
pip3 install numpyInstalling
You need to use it within nodejs
curl -L https://npmjs.org/install.sh | sudo shAt some point in the code, you will need to start the service by doing:
var byspectra = require("byspectra-lib");
byspectra.startService()
.then(res => {
...
})
.catch(err => {
console.log("ERROR: " + JSON.parse(err.stdout).error);
...
})
It supports several functions as the examples suggest
Examples
var byspectra = require("byspectra-lib");
byspectra.startService()
.then(res => {
console.log(res);
byspectra.isShutdown()
.then(res => {
console.log(res);
})
.catch(err => {
console.log("ERROR: " + JSON.parse(err.stdout).error);
})
})
.catch(err => {
console.log("ERROR: " + JSON.parse(err.stdout).error);
})
Deployment
Pack the library allong with the nodejs code.
Built With
Versioning
We use git for versioning. Sorry. No code available.
Authors
- Ricardo Osorio - Initial work - [email protected]
See also the list of contributors who participated in this project.
License
This project is licensed under the BySpectra License
Acknowledgments
- All the BySpectra Team
- Let's change the world for better
