Page 1 of 1

is client connected

PostPosted: Thu Jan 19, 2012 7:08 pm
by mattbrowne
Hi,

I've tried searching around the forum but couldn't see anything - but I was wondering if there is a way of an external script to query serviio to see if any clients are connected/active.

I can see in the gui that it knows when a client is active with serviio - but I'd like to be able to find this out from a script (bash/csh/tcl etc) so I can control whether to send the server to sleep, also based on whether other clients are connected to other services my server runs (e.g. squeezebox server).

Thanks
Matt

Re: is client connected

PostPosted: Thu Jan 19, 2012 7:16 pm
by zip
Check Serviio REST API guide in the dev forum, you'll be able to get list of clients in the same way the console does.

Re: is client connected

PostPosted: Thu Jan 19, 2012 9:50 pm
by mattbrowne
Thanks! Server now stays awake and sleeps when it should - saved a few pennies on the power bill :)

RE: is client connected

PostPosted: Wed May 09, 2012 8:58 pm
by spelarn
Hi matt. I would apprechiate i you could share what you did to succeeded. Need thoose pennies :D