Liver64 / PHP-Sonos-and-Loxone

a PHP Script to integrate Sonos Speakers into Home Automation systems like Loxone
9 stars 6 forks source link

Slow response to actions #10

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi!

Is there anything I can do to improve the response time? Currently it takes about 2 seconds to get the HTTP response. Thus, things like starting/stopping the player s relatively slow.

I knkow that there are other sonos control solutions which have some background code running all the time. Those solutions provide much quicker responses to action requests. (e.g. new OpenHAB2 or node-sonos-http-api)

The script is running on a Celeron G3900@2.8GHz and not a Raspberry Pi.. Should not be the issue though.

Liver64 commented 7 years ago

hmm.... im not aware off any performance issues from other User. I tested it myself again on a Pi and Synology and both doesn't have any performance problems. The HTTP request take less then 1 second before starting functions.