Open kimukao1 opened 1 year ago
Hello.
I may be wrong but I don't think the virtual environment is going to work with Homebridge. Somehow, Homebridge should activate the virtual environment before calling the function and I've never seen it do such things.
If somebody knows how to make it work, please send details.
Thanks.
First thanks for working hard to make this great idea happen. Trying to make it work on my system (RPi 4) I have installed pyatv via pip3 install in the venv like described here: https://pyatv.dev/documentation/#installing-pyatv. Afterwards I was able to run "atvremote scan" in this (pyatv_venv) environment. After having created and modyfied the "appletv_control.sh" in the mentioned directory (/var/lib/homebridge) with the correct credential I referred it in the homebridge plugin. Unfortunately I receive lots of homebridge log-messages that there's no file "/home/pi/.local/bin/atvremote" in my system. I assume another path due to the venv where it is installed, but I don't know how to find this out. May I ask for help here?