Back to Browse

How to use the Context storage in Node-Red

5.3K views
Mar 24, 2023
40:19

In any programming languages and processing logic you need to store information and retrieve them. In Node-Red we are processing data in messages separately and somehow data needs to be stored in between these messages. This is what the context stores are used for. In this video we learn how to use the context in Node-Red through some home automation examples. Also learn the different context stores, persistent storage option, get tips and trick by going through examples and talk about don't dos. Chapters: 0:00 Intro 1:03 Agenda 2:49 The basics 5:18 Store and read data to/from context 8:27 Compare data to last value 10:14 Min/Max calculation 13:28 Message counter 15:04 Time activated motion sensor 17:45 Thermostat example 21:03 Delete context data 22:06 Storage options/Persistent storage 25:52 Context in function node 36:23 Don't dos 39:31 Outro

Download

1 formats

Video Formats

360pmp464.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to use the Context storage in Node-Red | NatokHD