cristian5th / homebridge-appletv

Configuration of pyatv and cmd4 for reading the Apple TV status in Homebridge
GNU General Public License v3.0
25 stars 2 forks source link

atvremote in venv - please help #12

Open kimukao1 opened 1 year ago

kimukao1 commented 1 year ago

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?

cristian5th commented 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.