Curl on hassio

From here https://www.home-assistant.io/hassio/installation/ I dl and installed hassio for raspberry pi 3 (https://github.com/home-assistant/hassos/releases/download/2.11/hassos_rpi3-2.11.img.gz) and dispite a few missing features it works famously - but I am trying to use “shell_command” to run a curl command to text me when my pump overheats… Problem is ‘curl’ is not found ‘apt’ is not found and ‘find’ to name the few I have tried to get curl installed but no such luck -> how do I install ‘curl’ or find how to execute it.

Thanks in advance…

That installation is using HAssOs, a pared down Linux. IT is possible to install Hassio on Raspian lite on the RPi or, if you are more comfortable with Home Assistant, you can install Hassbian.

If you try either of those with your existing SD card, I recommend formatting it with SD Formatter first, as recommended by Raspberry Pi themselves. NOOBS Lite is the easiest way to get Raspian Lite, if you choose that route.

Hassbian
https://www.home-assistant.io/docs/installation/hassbian/installation/

More to the point, Hass.io uses Docker. The container that Home Assistant runs in is cut down. When you SSH to the SSH add-on, you’re in a different container - effectively a different computer. Things that work in the SSH add-on may not work when run from Home Assistant.

1 Like

True.

I have successfully installed Hassio on Raspian but did not document the journey. I am a former Unix admin so I was able to figure things out.

If people think instructions to install Hassio on a Raspberry Pi 3B+ might be useful I may be able to find a spare SD Card and document the steps. It is a little different than the Linux install of Hassbian.

It’s pretty well documented.

Hassio on Raspian? Where?
All I see is the HassOs image for Hassio.

… if memory serves - I could not add the documented repo on stretch, so I discounted the entire process/method of installing with that option. Good thanks to you all for chiming in - I have moved on from trying to curl a text message command to Twilio and notify the text message. Thoughts are welcome failed results are being interpreted to form a intelligent question… I just know it does not work

You could try using a rest notification or rest command if all you want to do is a simple GET/POST and don’t need to save the response. Otherwise, there’s switch, sensor, and binary sensor as well.

You could also try a python script and using requests.

Finally, the last option is to write a custom component for the notify platform. That will give you the most access to libraries and such as you can essentially get whatever you may need.

My point, that got lost, is that I do not think you can put curl on HassOs.

That seems a remarkable omission.

CURL works for me, I’m running HASSOS on a RPI3:

# docker container exec homeassistant curl -V
curl 7.64.0 (armv7-alpine-linux-musleabihf) libcurl/7.64.0 OpenSSL/1.1.1b zlib/1.2.11 libssh2/1.8.0 nghttp2/1.35.1
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy 
# 

who offered a how to for raspbian

nope did not get lost really - I was thinkign it went without saying after learning it was an OS masacre to get the automation system working and trifles were not considered… kinda makes the whole shell_command pretty useless.

If you are referring to curl, I already see it on my Raspian Lite. Otherwise apt-get install curl would install it just like any other Debian based system.

Thank you for the info - I have started down the path with twilio and notify, wish me luck currently looking for sample code as I have commited to my first guess at it but am missing something in the HA docs.

curl scp touch find quite a few shell commands actually and of course apt and apt-get were not there either… I think you are the wiser for installing on full OS. I believe you offered to document the shortest path to raspbian hosting home assistant system. I will be getting a arm/debian SBC with not bluetooth to hamper zwave that I would like to put home assistant on. So you did a install with a curl command on a raspbian install I would like to know what you did - I can send you a sd card if need be

I just booted my HassOs. From the console, I see scp is there apt & apt-get are only used on deb based Linux systems. Red Hat & Arch, for instance, do not have them because they use different systems.

HassOs is meant to be limited so I do not believe it has a packaging system installed. When I ran HassOs in a VM I personally had stability issues that led me to other install options.

No it doesnt have a package manager. But @Codec303 hss shown that curl exists on hassos.

I can execute a curl command from HA?