So I wonder if it is possible for the LMS server to send an http request
to the domotics server whenever the status of a player changes.
Several ways to do this:
- use cometd to subscribe to this kind of events. This requires your
other systems to be able to connect using cometd.
- use polling on those clients. Check status every few seconds. That's
what the web UI does. It doesn't require much on the client side, just
an http request to LMS every few seconds.
- write a LMS plugin which listens to those events and triggers the http
request you want. Requires some Perl knowledge.
I could write a script on the domotics server to poll the status of the
players on LMS but would rather not have to do that.
Good. Polling is evil :-). But in this case I think it wouldn't be too
bad. If that's the easiest for you, then I'd go for it. Just make sure
your system is smart enough not to hammer LMS with run-away polling
requests.
--
Michael
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter