@ncd-io/node-red-enterprise-sensors 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/package.json +1 -1
- package/wireless.js +2 -1
package/README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ncd-io/node-red-enterprise-sensors
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
You can install this library through the Palette Manager in Node-Red's UI.
|
|
4
|
+
|
|
5
|
+
To install through the command line navigate inside .node-red directory on a computer with Node-Red already installed. Then run command npm install ncd-red-enerprise-sensors. To update run command npm update ncd-red-enerprise-sensors.
|
|
4
6
|
|
|
5
7
|
Standard install commands:
|
|
6
8
|
* cd ~/.node-red
|
|
7
|
-
* npm install ncd-red-enterprise-sensors
|
|
9
|
+
* npm install @ncd-io/node-red-enterprise-sensors
|
|
8
10
|
|
|
9
11
|
Standard update commands:
|
|
10
12
|
* cd ~/.node-red
|
|
11
|
-
* npm update ncd-red-enterprise-sensors
|
|
13
|
+
* npm update @ncd-io/node-red-enterprise-sensors
|
|
12
14
|
|
|
13
15
|
This library handles communication to, and configuration of, the [NCD Wireless Sensor Line](https://ncd.io/wireless-enterprise-line/). It can be used in [conjunction with Node-RED](https://ncd.io/node-red-wireless-sensors/) to create and manage a Wireless Sensor Network using the Node-RED flow-based development tool on any platform. For specific examples of different sensor types using this package, check out the resources tab of the [appropriate product page](https://store.ncd.io/?fwp_main_facet=enterprise-solutions). If you cannot find an example, or need further assistance, check out the [Node-RED section of our forum](https://community.ncd.io/c/node-red).
|
package/package.json
CHANGED
package/wireless.js
CHANGED
|
@@ -1164,7 +1164,8 @@ module.exports = function(RED) {
|
|
|
1164
1164
|
RED.httpAdmin.get("/ncd/wireless/needs_input/:id", RED.auth.needsPermission('tcp.read'), function(req,res) {
|
|
1165
1165
|
var node = RED.nodes.getNode(req.params.id);
|
|
1166
1166
|
if (node != null) {
|
|
1167
|
-
|
|
1167
|
+
res.json({needs_input: node.raw_input});
|
|
1168
|
+
// return {needs_input: node.raw_input};
|
|
1168
1169
|
} else {
|
|
1169
1170
|
res.json({needs_input: false});
|
|
1170
1171
|
}
|