Browse Source

added nodered patches

Federico Bonelli 2 years ago
parent
commit
5f273e23c1
3 changed files with 153 additions and 0 deletions
  1. 1 0
      Nodered/demoflows-BCN/Irc-weather_bot
  2. 151 0
      Nodered/flows/ALLARM
  3. 1 0
      Nodered/flows/Experiment-one

File diff suppressed because it is too large
+ 1 - 0
Nodered/demoflows-BCN/Irc-weather_bot


+ 151 - 0
Nodered/flows/ALLARM

@@ -0,0 +1,151 @@
1
+[
2
+    {
3
+        "id": "47c23e79.82ff8",
4
+        "type": "mqtt in",
5
+        "z": "66081aa.5f0a2e4",
6
+        "name": "MQTTDowse",
7
+        "topic": "#",
8
+        "qos": "2",
9
+        "broker": "504297a7.01406",
10
+        "x": 146.11111068725586,
11
+        "y": 296.6666431427002,
12
+        "wires": [
13
+            [
14
+                "4277699e.6730b8"
15
+            ]
16
+        ]
17
+    },
18
+    {
19
+        "id": "dd3b5071.52f55",
20
+        "type": "debug",
21
+        "z": "66081aa.5f0a2e4",
22
+        "name": "",
23
+        "active": true,
24
+        "console": "false",
25
+        "complete": "false",
26
+        "x": 791.6666259765625,
27
+        "y": 296.6666564941406,
28
+        "wires": []
29
+    },
30
+    {
31
+        "id": "4277699e.6730b8",
32
+        "type": "csv",
33
+        "z": "66081aa.5f0a2e4",
34
+        "name": "",
35
+        "sep": ",",
36
+        "hdrin": "",
37
+        "hdrout": "",
38
+        "multi": "one",
39
+        "ret": "\\n",
40
+        "temp": "",
41
+        "x": 340.55554580688477,
42
+        "y": 296.6666660308838,
43
+        "wires": [
44
+            [
45
+                "ec310569.026c88"
46
+            ]
47
+        ]
48
+    },
49
+    {
50
+        "id": "4555b9b4.7169e",
51
+        "type": "comment",
52
+        "z": "66081aa.5f0a2e4",
53
+        "name": "NB Comment can be styled",
54
+        "info": "# Use Markdown\n* we know you like it\n* when you post a list\n* or a [link|https://dyne.org]\n* \nwhatever",
55
+        "x": 220.55554580688477,
56
+        "y": 187.7777771419949,
57
+        "wires": []
58
+    },
59
+    {
60
+        "id": "2b428073.107068",
61
+        "type": "openweathermap in",
62
+        "z": "66081aa.5f0a2e4",
63
+        "name": "Weather",
64
+        "lon": "",
65
+        "lat": "",
66
+        "city": "Amsterdam",
67
+        "country": "Nederlands",
68
+        "language": "en",
69
+        "x": 143.88888931274414,
70
+        "y": 375.5555667877197,
71
+        "wires": [
72
+            [
73
+                "dd3b5071.52f55",
74
+                "19af32c0.927e05"
75
+            ]
76
+        ]
77
+    },
78
+    {
79
+        "id": "19af32c0.927e05",
80
+        "type": "function",
81
+        "z": "66081aa.5f0a2e4",
82
+        "name": "HowIsTheWeather?",
83
+        "func": "if (msg.payload.weather === \"Clear\") {\n    msg.payload = \"Clear skies ahead today\";\nreturn msg;\n}\nreturn null;",
84
+        "outputs": 1,
85
+        "noerr": 0,
86
+        "x": 406.11110305786127,
87
+        "y": 474.44444274902344,
88
+        "wires": [
89
+            [
90
+                "dd3b5071.52f55",
91
+                "dd01b08d.c6a358"
92
+            ]
93
+        ]
94
+    },
95
+    {
96
+        "id": "dd01b08d.c6a358",
97
+        "type": "twitter out",
98
+        "z": "66081aa.5f0a2e4",
99
+        "twitter": "",
100
+        "name": "TweetLegrandJeu",
101
+        "x": 693.1110191345215,
102
+        "y": 473.6667022705078,
103
+        "wires": []
104
+    },
105
+    {
106
+        "id": "ec310569.026c88",
107
+        "type": "function",
108
+        "z": "66081aa.5f0a2e4",
109
+        "name": "ALLARM?",
110
+        "func": "if (msg.payload.col1 === \"ALLARM\") {\n    msg.payload = \"SPEGNI TUTTO!!!\";\nreturn msg;\n}\nreturn null;",
111
+        "outputs": 1,
112
+        "noerr": 0,
113
+        "x": 514.4444007873535,
114
+        "y": 265.55555152893066,
115
+        "wires": [
116
+            [
117
+                "dd3b5071.52f55"
118
+            ]
119
+        ]
120
+    },
121
+    {
122
+        "id": "4a919cc2.fd72f4",
123
+        "type": "comment",
124
+        "z": "66081aa.5f0a2e4",
125
+        "name": "Allarm Patch",
126
+        "info": "# Allarm\n* if you send a message from REDIS that says in col1 \"Allerm\"\n* \nthis patch will scream\nin the mean times uses the same thing to check if there\nwill be sun or not tomorrow\n\nfredd",
127
+        "x": 443.3332939147949,
128
+        "y": 188.88885021209717,
129
+        "wires": []
130
+    },
131
+    {
132
+        "id": "504297a7.01406",
133
+        "type": "mqtt-broker",
134
+        "z": "",
135
+        "broker": "localhost",
136
+        "port": "1883",
137
+        "clientid": "",
138
+        "usetls": false,
139
+        "compatmode": true,
140
+        "keepalive": "60",
141
+        "cleansession": true,
142
+        "willTopic": "",
143
+        "willQos": "0",
144
+        "willRetain": "false",
145
+        "willPayload": "",
146
+        "birthTopic": "",
147
+        "birthQos": "0",
148
+        "birthRetain": "false",
149
+        "birthPayload": ""
150
+    }
151
+]

File diff suppressed because it is too large
+ 1 - 0
Nodered/flows/Experiment-one