Skip to content

Commit 2419af5

Browse files
committed
fix: update put handler example to use bool
1 parent ff9ecec commit 2419af5

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

examples/put-handler.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"id": "219b9c95.4e0d5c",
44
"type": "inject",
5-
"z": "db137791.d0f408",
5+
"z": "1a65e795a2e4022a",
66
"name": "",
77
"props": [
88
{
@@ -20,8 +20,8 @@
2020
"topic": "red.autoLights.state",
2121
"payload": "autoLights",
2222
"payloadType": "global",
23-
"x": 110,
24-
"y": 740,
23+
"x": 210,
24+
"y": 680,
2525
"wires": [
2626
[
2727
"d863107a.7222a"
@@ -31,18 +31,19 @@
3131
{
3232
"id": "d863107a.7222a",
3333
"type": "signalk-send-pathvalue",
34-
"z": "db137791.d0f408",
34+
"z": "1a65e795a2e4022a",
3535
"name": "send autoLights",
36+
"path": "",
3637
"source": "",
37-
"meta": "",
38-
"x": 560,
39-
"y": 740,
38+
"meta": "{\"units\": \"bool\"}",
39+
"x": 660,
40+
"y": 680,
4041
"wires": []
4142
},
4243
{
4344
"id": "c1701506.ea4a48",
4445
"type": "inject",
45-
"z": "db137791.d0f408",
46+
"z": "1a65e795a2e4022a",
4647
"name": "",
4748
"props": [
4849
{
@@ -58,10 +59,10 @@
5859
"once": true,
5960
"onceDelay": 0.1,
6061
"topic": "",
61-
"payload": "1",
62-
"payloadType": "num",
63-
"x": 70,
64-
"y": 780,
62+
"payload": "true",
63+
"payloadType": "bool",
64+
"x": 170,
65+
"y": 720,
6566
"wires": [
6667
[
6768
"abd5ad13.d9ec6"
@@ -71,7 +72,7 @@
7172
{
7273
"id": "abd5ad13.d9ec6",
7374
"type": "change",
74-
"z": "db137791.d0f408",
75+
"z": "1a65e795a2e4022a",
7576
"name": "",
7677
"rules": [
7778
{
@@ -94,8 +95,8 @@
9495
"from": "",
9596
"to": "",
9697
"reg": false,
97-
"x": 280,
98-
"y": 800,
98+
"x": 380,
99+
"y": 740,
99100
"wires": [
100101
[
101102
"d863107a.7222a"
@@ -105,11 +106,11 @@
105106
{
106107
"id": "fdaeb90a.e8809",
107108
"type": "signalk-put-handler",
108-
"z": "db137791.d0f408",
109+
"z": "1a65e795a2e4022a",
109110
"name": "",
110111
"path": "red.autoLights.state",
111-
"x": 90,
112-
"y": 840,
112+
"x": 190,
113+
"y": 780,
113114
"wires": [
114115
[
115116
"abd5ad13.d9ec6"

0 commit comments

Comments
 (0)