Node Red and the R1 Scratchpad

Sort of…

There is no RESTful interface to the scratchpad area on the R1, so Node-RED can not read/write to it directly.
What you need to do is set up a chart that reads and writes the required scratchpad area in and out of variables.
You then use Node-RED to read and write to those variables.

If you have an EPIC in the mix could you might be able to use the api/v1/io/{device} to specify the R1 device… But I suspect the looping chart moving data in and out of the scratchpad would be the most straight forward way.

Lets know if you have any questions, there are a few posts on the forum about doing peer-to-peer with just such a chart…

(Also congrats on the retirement.)

1 Like