Node-Red Toggle Button (Start-Stop)

  Переглядів 11,195

Steve Cope

Steve Cope

Рік тому

video tutorial on how to create a simple start/stop toggle button in node-red. Change button icon,background and label.
Also uses the very useful gate node
Flow used in the video
stevesnoderedguide.com/downlo...
The gate node is the simple Gate
node-red-contrib-simple-gate

КОМЕНТАРІ: 13
@BGazzah
@BGazzah Рік тому
Another excellent vid concentrating on one idea...
@carlosgallego1076
@carlosgallego1076 Рік тому
Thanks for the video
@John-sm4zf
@John-sm4zf 2 місяці тому
Hi, Steve thank you for good sharing this is really good. Could you please share how to do momentary button for application such as jog motor fw or rv that currently I'm stuck on?
@user-bt4ev9fy9i
@user-bt4ev9fy9i Рік тому
Hi, Nice example. Learned a lot. However, you should copy line 30 context.set("state",state); and paste it between line 11 and 12, so the state you set during init is saved. now this is only done when pushing the button.
@howardtriggs5967
@howardtriggs5967 6 місяців тому
Hi Steve, thanks for the tutorial , it's working fine. The only problem I am having is that the icon never changes. If I load a fa icon direct to the button it works fine but sending the {{myicon}} part of the message into the button doesn't have any effect. The {{background}} and {{topic}} elements work perfectly so I am at a loss as to what to try next.
@stevecope
@stevecope 6 місяців тому
Hi I tried it and it works ok for me. I do remember that initially I did have icon problems as the names were incorrect. Have you tried using other icons.
@rolandkamp5307
@rolandkamp5307 Рік тому
Thanks, can you tell wich "gate" you are using, I see multiple when searching the pallette.
@stevecope
@stevecope Рік тому
Hi it is node-red-contrib-simple-gate rgds steve
@rolandkamp5307
@rolandkamp5307 Рік тому
@@stevecope Thanks!
@manuflores4695
@manuflores4695 Рік тому
@@stevecope Hi, great video. I'm getting an Error when trying to install this. I'm working with an ADAM 6717 device that is running linux. Any suggestions?
@stevecope
@stevecope Рік тому
@@manuflores4695 Is that when you install the flow or a particular node? If it is a node then it is usually because of nodejs version numbers and so you may need to upgrade nodejs. Rgds Steve
@dretwav
@dretwav Рік тому
When I downloaded the flow, it did not work. Upon inspection lines 17 and 24 were commented out. Uncommenting those and it works. Also, I was a bit confused because the switch is only controlling the gate. To really be of any use you would have to send some other input to the gate. (like you do with the timestamp) I think it would be more clear if the label was "Press to Open" and "Press to Close" because you are not starting or stopping anything.
@stevecope
@stevecope Рік тому
Hi tks for pointing that out I changed the lines in the video as an illustration but I must have used that flow . I will put up another flow. The gate is there only for illustation as it shows open and closed so you know the button is working. In a working flow you use it to start and stop the process. Rgds Steve
How to Input  Data into a Node-Red Flow
5:21
Steve Cope
Переглядів 4 тис.
Using the Node-Red Gate Node
5:42
Steve Cope
Переглядів 6 тис.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 4,8 млн
когда одна дома // EVA mash
00:51
EVA mash
Переглядів 8 млн
Node Red for Beginners - 2021 Edition (Using Home Assistant)
14:48
The Hook Up
Переглядів 369 тис.
Using the Node-Red Dashboard Switch Node
19:26
Steve Cope
Переглядів 33 тис.
Inject node for Node-Red
0:45
Max Supergiovane
Переглядів 2,4 тис.
Node-RED Lesson 22- Understanding input button and output text
15:23
Rajvir Singh
Переглядів 31 тис.
Control GPIO Pins of Raspberry Pi4 using Node-Red
10:37
BINARYUPDATES
Переглядів 21 тис.
An introduction to running Node Red on the Cerbo GX
22:33
PKYS Inc
Переглядів 7 тис.
How to Store Data In Node Red Variables
12:23
Steve Cope
Переглядів 83 тис.
Зачем коровам рисуют глаза на попе?
0:22
Up Your Brains
Переглядів 4,2 млн
【獨生子的日常】让小奶猫也体验一把鬼打墙#小奶喵 #铲屎官的乐趣
0:12
“獨生子的日常”YouTube官方頻道
Переглядів 81 млн
Пп десерт за три минуты. Который покорил меня
0:39