Is there a way to trigger a Linux shell command? I assume Hubitat runs on Linux under the hood, but could be wrong. This could be via SSH to an external Linux box on the same network, or Hubitat could maybe make a call to curl or another typically standard Linux command if it does run on Linux.
The only way I can think of is writing a tiny little NodeJS app with Express web server to call a shell command, and having Hubitat make a web call to that. But that seems more complicated.
I'm interested to hear if anyone has accomplished this!
I haven’t heard of anyone doing this. The OS layer is very tightly controlled, as I would expect. That how how they maintain some level of sanity in the hubs.
What is your use case? It could a capability that is exposed in a different way.
I'm trying to make a rule that can cast an rtsp camera (probably via a webpage hosted on Blue Iris) to a Google Home Hub. I was thinking of using catt (Cast All The Things).
This is how I do it for RTSP streams which display as a web page via a motioneye server
You probably don't need node red if you just want to cast a web page with the video feed, RM can send the cast command to the CATT server. I use node red to do this as I'm doing other things with the feed as well.
Would be kind of nice if there was an ssh connection option, wouldn’t think it would introduce additional security risk for either the underlying hub OS or jvm sandbox to be able to establish an outbound ssh tunnel. As long as there isn’t capability to enable any sort of port forwarding, local or remote.
Would be nice to be able to shut off a handful of Linux VMs in the event of a power outage, to conserve the UPS battery. I don’t typically have telnet enabled on these systems and I’ve been too lazy to write some python or something to act as an intermediary to accept the incoming connection.