Possible to display image in groov View retrieved via Node-RED?

Happy Friday!

With the latest groov EPIC firmware update, I have installed the MSSQL-Plus node that allows me to query a MSSQL database that has images. These are easy to display in Node-RED dashboard and I am hoping to do the same in groov View. But I read another post that indicates the image must be hosted in order to be viewable in groov View. We have 10,000+ images in the MSSQL database that I was hoping to display (one at a time, of course) in groov View.

Flow in Node-RED
(enter the work order number, get back the part number and part image)

groov View in build mode:

groov View while running:

Off the top off my head, to pull that off you’d need to use Node-RED to write the image out to a known location on the EPIC that can be served up via the built-in web browser, probably somewhere in the Unsecured Files area. Then in groov View configure a Video gadget (not an Image, confusingly) to use the URL to that file. It’d only really work for one user at a time though: anyone changing the work order number would overwrite that one image.

2 Likes

You might be able to have Node-Red make the image available via the HTTP response node, then use the video gadget to get it via localhost - then no need to write the image to storage.

1 Like

Yeah, that’s a better idea, duh. Someone here in the office just pointed that out to me too. I’m not well versed in Node-RED at all. :crazy_face:

Very helpful. I need to take this one back to the Batcave and play around with it. Will post back once I work through it.

You will need a “get node” (instead of the inject) to start off the flow request and end with the http node.

Yep, that did it. Also had to redo my function node a bit to make sure the image was correctly interpreted by the browser.

Works beautifully!

4 Likes