Code RPI-NR -act 101

Texte pour importer le flow

1
[
2
    {
3
        "id": "8cc4ba1d342e2e95",
4
        "type": "tab",
5
        "label": "Flow 2",
6
        "disabled": false,
7
        "info": ""
8
    },
9
    {
10
        "id": "4947a37ead4f2446",
11
        "type": "inject",
12
        "z": "8cc4ba1d342e2e95",
13
        "name": "",
14
        "props": [
15
            {
16
                "p": "payload"
17
            },
18
            {
19
                "p": "topic",
20
                "vt": "str"
21
            }
22
        ],
23
        "repeat": "2",
24
        "crontab": "",
25
        "once": true,
26
        "onceDelay": 0.1,
27
        "topic": "",
28
        "payload": "0",
29
        "payloadType": "num",
30
        "x": 210,
31
        "y": 60,
32
        "wires": [
33
            [
34
                "438617b8b5702556"
35
            ]
36
        ]
37
    },
38
    {
39
        "id": "438617b8b5702556",
40
        "type": "rpi-gpio out",
41
        "z": "8cc4ba1d342e2e95",
42
        "name": "LED GPIO17-11",
43
        "pin": "11",
44
        "set": true,
45
        "level": "0",
46
        "freq": "",
47
        "out": "out",
48
        "x": 430,
49
        "y": 80,
50
        "wires": [],
51
        "inputLabels": [
52
            "ON/OFF (1/0)"
53
        ]
54
    },
55
    {
56
        "id": "2bc92277862c8f5c",
57
        "type": "inject",
58
        "z": "8cc4ba1d342e2e95",
59
        "name": "",
60
        "props": [
61
            {
62
                "p": "payload"
63
            },
64
            {
65
                "p": "topic",
66
                "vt": "str"
67
            }
68
        ],
69
        "repeat": "2",
70
        "crontab": "",
71
        "once": true,
72
        "onceDelay": "1,1",
73
        "topic": "",
74
        "payload": "1",
75
        "payloadType": "num",
76
        "x": 210,
77
        "y": 120,
78
        "wires": [
79
            [
80
                "438617b8b5702556"
81
            ]
82
        ]
83
    }
84
]