# sensorlab-commands **Repository Path**: mirrors_Orange-OpenSource/sensorlab-commands ## Basic Information - **Project Name**: sensorlab-commands - **Description**: This NodeJS module builds a set of commands to control a SensorLab observer given its REST API port and host. - **Primary Language**: Unknown - **License**: MPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sensorlab-nexus SensorLab2 commands module ## Brief This node module builds a set of commands to control a SensorLab observer given its REST API port and host. ## Installation sensorlab-commands is available via NPM: ```bash npm install sensorlab-commands --save ``` ## Usage ### Using callbacks ```javascript var commands; commands = require('sensorlab-commands')('observer-X.local', 5555, false); function onSuccess(status){ console.log('status: ', status); } function onError(error, response, body){ console.log('error: ', error, ' response: ', response, ' body: ', body); } commands.node.status(onSuccess, onError); ``` ### Using **Q** promises ```javascript var commands, promise; commands = require('sensorlab-commands')('observer-X.local', 5555, true); promise = commands.node.status(); promise.then( function(status){ console.log('status: ', status) }); ``` ## License & Copyrights Mozilla Public License Version 2.0 (MPL-2.0). Copyright 2016 Orange