kopiro / homebridge-playstation

Playstation integration for Homebridge / HOOBS.
Apache License 2.0
97 stars 9 forks source link

No terminal in homebridge UI - Mac #38

Closed jat80 closed 1 year ago

jat80 commented 2 years ago

Describe Your Problem: Not sure how to configure playactor as I don’t have terminal access in homebridge UI as it’s installed on a Mac. How do I configure it in terminal app with homebridge user?

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

kopiro commented 2 years ago

You should have a terminal window in the homebridge UI - otherwise just do su homebridge in any terminal and it should switch to homebridge user.

jat80 commented 2 years ago

You should have a terminal window in the homebridge UI - otherwise just do su homebridge in any terminal and it should switch to homebridge user.

No terminal window in macOS Homebridge UI or a setting to enable it.

Tried su homebridge just says sorry after entering in my pw.

kopiro commented 2 years ago

Go to homebridge, on bottom right press the plus button, and add the Homebridge Terminal widget.

image image

jat80 commented 2 years ago

Go to homebridge, on bottom right press the plus button, and add the Homebridge Terminal widget.

image image

I don't have that option on macOS:

homebridge SS
kopiro commented 2 years ago

Can you type in your terminal: id homebridge ?

jat80 commented 2 years ago

Can you type in your terminal: id homebridge ?

comes up with: no such user

FYI Homebridge is installed obviously on that Mac and is working fine with all my other plugins. I was under the impression this was a Homebridge UI limitation for macOS users accessing the terminal via the web UI

kopiro commented 2 years ago

It looks like then homebridge is not being installed with the homebridge user. Just proceed with the guide using your normal user then.

AmericanNoir commented 1 year ago

You can you use the native MacOS Terminal found in your utilities folder. "Applications > Utilities > Terminal" It took a lot of beating my head against the wall to figure that out, yet I still haven't figured out the proper install for the Playstation to work.

Jason-G-78 commented 1 year ago

Hi, I just discovered this Homebridge Playstation plugin and get exactly the same thing on my iMac running macOS Big Sur (11.6.8). On the latest Node.js (v16.17.0). Thought it was something I was doing wrong but I don't understand what the issue is, other than perhaps something permission related: EACCES: permission denied, mkdir '/Users//.config/playactor' The note on page of the plugin states: "Now you need to configure PlayActor and follow the authentication process provided by the library; to do so, open the terminal in the HomeBridge UI (make sure you don't run these commands as root, you need to run them as homebridge user!) " As far as I'm aware myusername is my 'homebridge user' Any help appreciated. Cheers

LazaroFilm commented 1 year ago

I'm having the same issue. I get after having to use the ps4-waker trick:

Open the PS4 Second Screen app and attempt to connect to the device named:
  PlayActor
EACCES: permission denied, mkdir '/root/.config/playactor'
magnus319 commented 1 year ago

@Jason-G-78 Give that .config folder read write access for the user you’re logged in as. I just installed this plugin and got it working once I did that.

Jason-G-78 commented 1 year ago

@Jason-G-78 Give that .config folder read write access for the user you’re logged in as. I just installed this plugin and got it working once I did that.

Thanks I was hoping that might do it but now I get the following after entering the Link Device PIN:

Registration error: 403: Forbidden: Other Error

Discovering next device...

Did not authenticate to any consoles.

Tried the process again and now get the following despite restarting Homebridge and the PS5:

Connection successful, wait a bit so we can safely close the connection...

Discovering next device...

Please restart Homebridge now!