Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing #878

Open
MarkP63 opened this issue Oct 24, 2023 · 5 comments
Open

Installing #878

MarkP63 opened this issue Oct 24, 2023 · 5 comments

Comments

@MarkP63
Copy link

MarkP63 commented Oct 24, 2023

Still can't find adequate or easy instructions to set this api up. Clone doesn't work directory doesn't exist etc. I'm not a coder but have a successful HB set working with many plugins but Sonos has me beaten. Any assistance appreciated. Have greyed out icons in Home App but they don't seem to control anything. The ZP plugin I can see works in HB terminal window in that it sees tracks from Sonos radio stations but nothing in Home App.
image

Was also getting this from log re api plugin "[24/10/2023, 11:38:04] [Sonos] fail Error: connect ECONNREFUSED ‡1:5005
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1
port: 5005"

@jsiegenthaler
Copy link
Contributor

What is your Homebridge running on? I have an install script for a Raspberry Pi.

@MarkP63
Copy link
Author

MarkP63 commented Oct 24, 2023 via email

@jsiegenthaler
Copy link
Contributor

jsiegenthaler commented Oct 24, 2023

OK, your setup is same as mine. Here's my install script, nicely documented:
Install script for sonos-http-api.txt

You need to install it from an admin user, not as the homebridge user. So don't use the Homebridge Console to install (as the Console runs under the Homebridge user). Standard admin user is "pi" (prompt shows pi@raspberrypi:)

@MarkP63
Copy link
Author

MarkP63 commented Oct 24, 2023 via email

@jsiegenthaler
Copy link
Contributor

The sonos http api is completely separate to Homebridge and does not need Homebridge. Homebridge is not relevant. The sonos http api is a separate program (a server program) that installs on the raspberry pi.
Logon to your pi as the pi user. This is the main user of the pi. Then run the script. Use only the commands relevant to your installation. If you don't have or want pm2, leave those steps out.
PM2 is ProcessMonitor2 (https://pm2.keymetrics.io/). You don't need this but it helps a lot as keeps the sonos http api server running and restarting after pi reboots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants