Shell commands from node red

I’d like to perform some shell commands from Node RED (or automation).
I want to run some gdal commands on some captured images.
I know gdal is available in docker. How can I use that to work on files in HA /config?

Not sure about all the specifics, but this might lead you down a workable path.

I have addon-ssh (SSH & Web Terminal) installed. From there you can call the hassio.addon_stdin service.

For example, I use catt to cast to my google hub in my kitchen

{
  "addon": "a0d7b954_ssh", 
  "input": "catt -d 'Kitchen display' cast_site http://my-ha.site/lovelace/common"
}

exec node can run shell commands inside docker but that package should be installed in docker first. this allows you to do that in the configuration

2 Likes

I have been looking for this system_packages option for some time now. Thank you very much, my friend!