Here is what we are trying to do:
- running Node Red on a Raspberry Pi
2.) stored 2 pictures on the PI called, picture1.png or picture2.png
3.) Desired action: output picture1.png or picture2.png to the hdmi output of the Pi
Here is what we have done so far and verified:
We installed "fbi" . Then SSH into the PI and ran the command:
pi@raspberrypi:~ $ sudo fbi -T 1 Pictures/picture2.png
using "Liberation Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/liberation2/LiberationMono-Regular.ttf
Result = the picture1. png displays on the hdmi output of the PI ok.
All good so far.
We then created a "EXEC" node in Node RED and sent the same command.
However the picture1.png does not display.
We can clearly see on the display that the EXEC node has triggered an action , but we get error on bottom of the HDMI screen " Pictures/picture1.png" failed to load.
If anyone has any experience or suggestion, we really appreciate it.
[{"id":"dcaac25a.d6d15","type":"tab","label":"Entry Control","disabled":false,"info":""},{"id":"f0cb7f30.46e4a","type":"inject","z":"dcaac25a.d6d15","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":".1","x":420,"y":160,"wires":[["d69b5efc.1a32c"]]},{"id":"35bef9c4.e6a0a6","type":"inject","z":"dcaac25a.d6d15","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":".1","x":420,"y":240,"wires":[["191b7945.5c8767"]]},{"id":"8e55eeac.ee7b4","type":"debug","z":"dcaac25a.d6d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1170,"y":140,"wires":[]},{"id":"d69b5efc.1a32c","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi -T 1 Pictures/picture1.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":720,"y":160,"wires":[["8e55eeac.ee7b4"],["261676f.4b8588a"],["f848148e.349068"]]},{"id":"261676f.4b8588a","type":"debug","z":"dcaac25a.d6d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1170,"y":180,"wires":[]},{"id":"f848148e.349068","type":"debug","z":"dcaac25a.d6d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1170,"y":220,"wires":[]},{"id":"c2bdc385.a2226","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi --autozoom --noverbose --vt 1 Pictures/picture1.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":340,"y":460,"wires":[[],[],[]]},{"id":"746794a8.4feb0c","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi --autozoom --noverbose --vt 1 Pictures/picture2.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":340,"y":560,"wires":[[],[],[]]},{"id":"191b7945.5c8767","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi -T 1 Pictures/picture2.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":720,"y":240,"wires":[[],[],[]]}]