helgemor
(Helge)
October 27, 2020, 4:01pm
1
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
# Home Assistant Community Add-on: Node-RED
Node-RED is a programming tool for wiring together hardware devices,
APIs and online services in new and interesting ways.
It provides a browser-based editor that makes it easy to wire together flows
using the wide range of nodes in the palette that can be deployed to its
runtime in a single click.
## Installation
The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Home Assistant add-on.
1. Search for the "Node-RED" add-on in the Home Assistant add-on store and
install it.
1. Set a `credential_secret`, which is used to encrypt sensitive data.
This is just a "password", which you should save in a secondary location.
1. Start the "Node-RED" add-on.
1. Check the logs of "Node-RED" to see if everything went well.
This file has been truncated. show original
2 Likes
fberbert
(Fábio)
December 27, 2022, 8:08pm
4
I have been looking for this system_packages option for some time now. Thank you very much, my friend!