Use Node-RED to Log I/O Data to a Text File

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

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

  • @puzzlefactorysoundstudios
    @puzzlefactorysoundstudios Месяц назад

    Great video. How can we output this text file to a Dashboard graph node?

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

    Another good tutorial, thanks.

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

      My pleasure!

  • @هبةمهديصالحالموسوي

    Great video . i need help please can you help me how to do data classification for diagnosis of patients using red nod ?

  • @ThiagoFerreira-jf9im
    @ThiagoFerreira-jf9im 3 года назад +1

    How to get the hour that the temperature change?

    • @Opto22
      @Opto22  3 года назад +1

      A good, flexible way do that is to add a function node right before the file node, and use the date library in JavaScript to get whatever date/time formatted string that you want, then append that string to the payload before it's written to the file node. That way you can also modify the string as need -- for example to make it into CSV format.
      I refer to this page when working with JavaScript dates and timestamps in Node-RED: www.w3schools.com/jsref/jsref_obj_date.asp