vectronic / homebridge-jvc-projector

A Homebridge plugin providing standby control for JVC projectors over IP
MIT License
2 stars 2 forks source link

I'm able to install the plugin but it does not control my projector in Home app #13

Open docgould3 opened 1 year ago

docgould3 commented 1 year ago

Hello,

I’ve been trying to set up the jvc home bridge plugin you helped design.I’ve tried to follow the instructions but it doesn’t seem to be working. In home app, the device is installed but it does not detect the correct state of the projector, nor can it turn it on or off. I don’t see any error messages in the log section of HOOBS. I’ve got a couple of questions I was hoping you can answer.

  1. I think I was able to successfully installl the JVC package remote package via the HOOBS terminal.

  2. Python. I’m a coding novice and had not even hear about python until I looked it up for this plugin. I’ve downloaded python (v 3.9) onto my laptop. How do I figure out the python path that I need to for the plugin? As of right now, the application is installed in my application folder. I’ve tried a path to that and also "/.local/lib/python3.9” and "/usr/local/bin/python3”.

  3. Is there a way to designate which port on the JVC it communicates with. While also trying to get another IP remote app (Roomie remote) to control the projector, my research discovered that I needed to use port 20554. Once I set that in the Roomie Remote app, I was able to control the projector.

  4. Any other suggestions of what I can try to get your plugin to control my projector?

I appreciate any advice you can offer. Jason

vectronic commented 1 year ago

You need to determine the path to the python executable and use this for python_path configuration property.

On the terminal, does this give you anything:

which python3

if so, use that.

What is the path where Python is installed? Do you see any executable files in there?

What about if you just type:

python3

?

The port is not configurable currently, but the underlying python module uses 20554 by default so that should be fine.

docgould3 commented 1 year ago

Please see below for responses.

On the terminal, does this give you anything:

which python3

Yes. I get the following response: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 You need to determine the path to the python executable and use this for python_path configuration property.

if so, use that.

I put copied that into HOOBS but still unable to see correct state of projector, or control it.

What is the path where Python is installed?

Python is installed in my applications folder Do you see any executable files in there?

There is IDLE and Python Launcher applcations in the folder. I opened IDLE and put in the command:

import sys; print(sys.executable)

I got back the same path as above.

What about if you just type:

python3

When I put this into Terminal, it starts python I also tried putting this into HOOBS and it was also unsuccessful.

Any other suggestions? I appreciate you trying to help me out.

jg

On Apr 16, 2023, at 1:38 PM, vectronic @.***> wrote:

?

The port is not configurable currently, but the underlying python module uses 20554 by default so that should be fine.

— Reply to this email directly, view it on GitHub https://github.com/vectronic/homebridge-jvc-projector/issues/13#issuecomment-1510439780, or unsubscribe https://github.com/notifications/unsubscribe-auth/A237Q3UDDA4ONEKBM253TYTXBQVC7ANCNFSM6AAAAAAW7A3YYU. You are receiving this because you authored the thread.

vectronic commented 1 year ago

So/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 is the executable and is the value you should use for python_path.

But try running the python file just from the command line without Homebridge first e.g.

Assuming the homebridge plugin is installed in /homebridge/node_modules/homebridge-jvc-projector and replacing <projector_ip> with the correct value something like this:

/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /homebridge/node_modules/homebridge-jvc-projector/dist/get_power_state.py <projector_ip>

Should be what the plugin invokes to check the power state.

docgould3 commented 1 year ago

Do I run that in macOS terminal or the hoobs terminal?jgOn Apr 17, 2023, at 3:56 AM, vectronic @.***> wrote: So/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 is the executable and is the value you should use for python_path. But try running the python file just from the command line without Homebridge first e.g. Assuming the homebridge plugin is installed in /homebridge/node_modules/homebridge-jvc-projector and replacing with the correct value something like this: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /homebridge/node_modules/homebridge-jvc-projector/dist/get_power_state.py Should be what the plugin invokes to check the power state.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

vectronic commented 1 year ago

Wherever you have installed hombridge, the plugin and python...

docgould3 commented 1 year ago

I have homebridge installed on a raspberry pi. Is python supposed to be installed on the same machine (right now python is installed on my mac)?  If python needs to be installed on my pi, can you point me to some instructions on how to do that?Thanks. jgOn Apr 17, 2023, at 6:29 AM, vectronic @.***> wrote: Wherever you have installed hombridge, the plugin and python...

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

vectronic commented 1 year ago

yes - python needs to be installed with the homebridge plugin and homebridge.

I can't really step you through installing python on a raspberry pi. It should be fairly straightforward to find some instructions on google though.

docgould3 commented 1 year ago

Ok. I did some more reading. And I learned the python is already installed on my raspberry pi (v 3.9.2). I use the which python3 command to get the path and put it into the plugin. Again, I couldn’t connect to the projector. I tried running your installation command

npm install -g homebridge-jvc-projector

In HOOBS terminal and and it returned an error message (see attached screenshot). Any suggestions?

Thanks. jg

On Apr 17, 2023, at 6:50 AM, vectronic @.***> wrote:

yes - python needs to be installed with the homebridge plugin and homebridge.

I can't really step you through installing python on a raspberry pi. It should be fairly straightforward to find some instructions on google though.

— Reply to this email directly, view it on GitHub https://github.com/vectronic/homebridge-jvc-projector/issues/13#issuecomment-1511116836, or unsubscribe https://github.com/notifications/unsubscribe-auth/A237Q3RMHKX23EJ473DBCB3XBUN6XANCNFSM6AAAAAAW7A3YYU. You are receiving this because you authored the thread.

vectronic commented 1 year ago

No screenshot provided.

If you’re configuring the plug-in surely it is already installed. Why are you trying to install it again?!

docgould3 commented 1 year ago

I’ve attached it again. I tried running it because I did not know what else to try to get the plugin to connect to the projector. I’m open to any suggestions. jgOn Apr 18, 2023, at 4:40 AM, vectronic @.***> wrote: No screenshot provided. If you’re configuring the plug-in surely it is already installed. Why are you trying to install it again?!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

vectronic commented 1 year ago

No screenshot again... use the web UI instead of attaching to an email response!

docgould3 commented 1 year ago
Screenshot 2023-04-18 at 7 50 04 PM

I uninstalled the plugin and then tried installing with your command line. I received the same error messages.

vectronic commented 1 year ago

I don't know anything about hoobs. How do you usually install homebridge plugins?

That looks like you you are logged in as user hoobs which doesn't have permission to write to /usr/lib.

Usually you would install as root user in this case by doing:

sudo npm install -g homebridge-jvc-projector