avraham / hass_radarr_sonarr_search_by_voice

Add movies to radarr by voice
GNU General Public License v3.0
47 stars 8 forks source link

Run it from Docker #10

Closed colethegamer123 closed 4 years ago

colethegamer123 commented 4 years ago

Hello,

Im using Docker supervised Home Assistant installation like a lot of people.

I installed everything as at was written, but of course when im running the download.sh script, I need to do this with ssh command from docker to the host machine.

download_movie: /usr/bin/ssh -i /config/ssh/id_rsa -o UserKnownHostsFile=/config/ssh/known_hosts root@192.168.0.20 /bin/bash /usr/share/hassio/homeassistant/media/download.sh {{movie}} 0

This shell command should ssh to my host, and run the download.sh file with the attributes movie name and the type. Im using this method a lot of times, and many shell script is running like this, but not this one.

If I run the same command from terminal from docker HA, its working correctly, but as soon I want to automatize it with the movie name getting from IFTTT, its giving back "ReturnCode 1".

Maybe the quoting is the bad one, but I tried about 50 type variations, none of them working.

Docker & SSH cannot pass the arguments ( movie, 1 ), to the host. Can you somehow solve this please, would be great to make it work for anybody who using Docker based Home Assistant.

Thank you very much,

colethegamer123 commented 4 years ago

Thank you, I made it working. Was not so easy, but working. I'll do some guide, so you can refresh the installing wiki.