@mschaeffler/node-red-logic 0.0.2 → 0.0.3
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 +64 -0
- package/examples/logic.json +1 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @mschaeffler/node-red-logic
|
|
2
|
+
|
|
3
|
+
Two nodes to control dual (CCT) LEDs.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ npm install @mschaeffler/node-red-logic
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
.
|
|
16
|
+
|
|
17
|
+
### or
|
|
18
|
+
|
|
19
|
+
.
|
|
20
|
+
|
|
21
|
+
#### Input
|
|
22
|
+
|
|
23
|
+
.
|
|
24
|
+
|
|
25
|
+
|msg. | type | description |
|
|
26
|
+
|:-------|:-------|:----------------------------------|
|
|
27
|
+
|topic | string | .|
|
|
28
|
+
|payload | boolean| input value for `topic`. |
|
|
29
|
+
|
|
30
|
+
#### Output
|
|
31
|
+
|
|
32
|
+
.
|
|
33
|
+
|
|
34
|
+
|msg. | type | description |
|
|
35
|
+
|:-------|:-------|:----------------------------------|
|
|
36
|
+
|payload | boolean | result of `or` of all input topics.|
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
|config| type | description |
|
|
41
|
+
|:-----|:-------|:----------------------------------|
|
|
42
|
+
| | string | . |
|
|
43
|
+
|
|
44
|
+
### and
|
|
45
|
+
|
|
46
|
+
.
|
|
47
|
+
|
|
48
|
+
#### Input
|
|
49
|
+
|
|
50
|
+
#### Output
|
|
51
|
+
|
|
52
|
+
#### Parameters
|
|
53
|
+
|
|
54
|
+
## Example Flow
|
|
55
|
+
|
|
56
|
+
[example flow](https://github.com/m-schaeffler/node-red-my-nodes/raw/main/node-red-logic/examples/logic.json)
|
|
57
|
+
|
|
58
|
+
## Author
|
|
59
|
+
|
|
60
|
+
[Mathias Schäffler](https://github.com/m-schaeffler)
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
LGPL-2.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED