Closed jsiegenthaler closed 3 years ago
Unless you have plenty of players that are all playing different music, you shouldn't see anything near those numbers unless you are hammering the API.
How are you using the api?
Hi @jishi The api is used occasionally (1 or 2x per day) for text-to-speech via a command from my Apple HomeKit Otherwise it sits there idle, never plays music
I'm wondering if the installation is mucked up. I might de-installl and reinstall it. The trouble is, there are no installation instructions ... I have to hunt through the web to find some...
Hmmm... pm2 ls reports NPM uptime 4D, sonosserver uptime 1s... !!
I think there still is a bug if your players are turned off/changes IP while the API is running
https://github.com/jishi/node-sonos-http-api/issues/605
Could that be the cause? It would be evident in the output of the process if that were the case though.
Hmmm... pm2 ls reports NPM uptime 4D, sonosserver uptime 1s... !!
Sounds like it's constantly crashing. Some log output would be useful.
Where is the right place to install it? I had it installed in /node_modules/sonos-http-api , but I'm moving it to /node-sonos-http-api-master of my pi user "pi"
where does it write logs?
It outputs it in the terminal, if you run it with pm2 then pm2 will forward it to a file and you can view it with
pm2 logs
On Fri, 4 Jun 2021, 17:46 jsiegenthaler, @.***> wrote:
where does it write logs?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/804#issuecomment-854827245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I2NTJQ5U32CAEQYX4LTRDYNNANCNFSM46DARG6A .
Solution:
pm2 stop all
pm2 delete 0
where 0 is the idnpm audit
npm install --production
pm2 start npm --name "sonosserver" -- start
pm2 save
pm2 ls
shows sonosserver has restarted and is running on id 0 at 0% CPUbother, still happening
I need logs, and info on what rpi hardware you are running.
On Fri, 4 Jun 2021, 19:51 jsiegenthaler, @.***> wrote:
bother, still happening
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/804#issuecomment-854902658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I23OCWTFEI4P2MTQG3TREHBDANCNFSM46DARG6A .
I need logs. And which rpi revision you are runnin.
On Fri, 4 Jun 2021, 20:12 Jimmy Shimizu, @.***> wrote:
I need logs, and info on what rpi hardware you are running.
On Fri, 4 Jun 2021, 19:51 jsiegenthaler, @.***> wrote:
bother, still happening
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/804#issuecomment-854902658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I23OCWTFEI4P2MTQG3TREHBDANCNFSM46DARG6A .
I use the sonos http api server on my raspberry pi
The CPU sits stead at 30% with the server running. If I stop the sonosserver, the CPU goes to idle (0% to 1%)
Anyone know why the sonosserver has such a high CPU load?