Node-Red Toggle Button (Start-Stop)

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии •

  • @jean-pauldrolet1462
    @jean-pauldrolet1462 2 месяца назад

    Tnx for this video . I wanted to use a SR flip Flop for the start and stop button instead i saw your video that solved my issue.

  • @BGazzah
    @BGazzah Год назад +2

    Another excellent vid concentrating on one idea...

  • @John-sm4zf
    @John-sm4zf 10 месяцев назад

    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?

  • @carlosgallego1076
    @carlosgallego1076 Год назад +1

    Thanks for the video

  • @howardtriggs5967
    @howardtriggs5967 Год назад

    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  Год назад

      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  Год назад +1

      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

  • @JanMangelinckx
    @JanMangelinckx Год назад

    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.

  • @dretwav
    @dretwav Год назад +1

    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  Год назад +1

      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