byspectra-lib

1.4.483 • Public • Published

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 numpy

Installing

You need to use it within nodejs

curl -L https://npmjs.org/install.sh | sudo sh

At 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

  • nodejs - The web framework used
  • python3 - Dependency (no need to know about it :) )

Versioning

We use git for versioning. Sorry. No code available.

Authors

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

Readme

Keywords

none

Package Sidebar

Install

npm i byspectra-lib

Weekly Downloads

0

Version

1.4.483

License

ISC

Unpacked Size

69.7 MB

Total Files

5451

Last publish

Collaborators

  • arturbrito95
  • rosorio