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

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ •

  • @noweare1
    @noweare1 2 роки тому

    Another good tutorial, thanks.

    • @Opto22
      @Opto22  2 роки тому

      My pleasure!

  • @puzzlefactorysoundstudios
    @puzzlefactorysoundstudios 3 місяці тому

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

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

    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