Browse Source

added nodered examples

Hue light example
Federico Bonelli 2 years ago
parent
commit
38c2ceb8c5

+ 30 - 0
Nodered/DotComlamp.md

@@ -0,0 +1,30 @@
1
+# DotCom Lamp
2
+
3
+The following is a small example. A counter samples the amount of hits the .com domain has in a minute and updates a gouge on the web interfaace. At the same time the intensity of a HUE lamp is scaled accordingly to give a sort of qualitative feedback to the type and amount of interenet use.
4
+
5
+## What we use
6
+- Dowse box on a local wifi network (dowse.it)
7
+- nodered on dev/admin machine
8
+- Philips HUE light
9
+
10
+
11
+## step 1 get your dowse events in the patch via MQTT
12
+Add your dowse to the server list and configure the "topic" to # to have your patch to listen to  anything that is on the MQTT network.
13
+
14
+![fig 1](img/fig1.png)
15
+
16
+Add a message.debug object to check that the flow is working.
17
+Remember to hit on "deploy" button top right
18
+
19
+![fig 2](img/fig2.png)
20
+
21
+Add on the chain a [csv] node and a splitter node. Rename the splitter as you like. I renamed it "Gouge Splitter".
22
+
23
+![fig 3](img/fig3.png)
24
+
25
+The splitter object takes care of making basic decisions on your signal according to its content. Let's see how I configured it:
26
+
27
+
28
+![fig 4](img/fig4.png)
29
+
30
+the first exit will be baged when the message contains ".com" the second when is == .org you will see that both approaches work. The thrd exit is going to be taken by all other messages.

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


BIN
Nodered/img/Screen Shot 2017-11-18 at 11.06.20.png


BIN
Nodered/img/fig1.png


BIN
Nodered/img/fig2.png


BIN
Nodered/img/fig3.png


BIN
Nodered/img/fig4.png