Hi folks,
I was re-installing one of my Raspberry devices, and I found some custom nodes on it that were about 95% finished. I have such nodes lying around all over the place. It it is a very bad habbit. I should reserve some time to finalize the last 5% instead of starting with something new ...
Anyway I have quickly published one of those nodes on NPM ( ):
This node-red-contrib-jsontohtml node allows you transform a Javascript object to HTML, based on a specified transformation.
On the readme page you can find an example, where I inject an object (containing the statusses of various sensors):
Which is then transformed to HTML.
This allows me to show a popup dialog in my Node-RED dashboard very easily:
Have fun with it!!
Bart