Re: [SlimDevices: SqueezeCenter] Prevent shutdown of server while clients connected

2017-01-09 Thread Roland0

jonnybignote wrote: 
> Does anyone know of commands or code that would appear in running
> proccesses that I can use for a script to watch for? 
You can 'use the CLI'
(http://forums.slimdevices.com/showthread.php?106605-Play-Album-XY-via-Command-line-on-Raspi=870480=1#post870480)
to query LMS for such information.



[ extGUI4LMS - an alternative web interface: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (https://www.nexus0.net/pub/sw/extgui4lms/) | 'music
visualizer'
(http://forums.slimdevices.com/showthread.php?103073-Announce-music-visualizer-for-squeezelite)
for squeezelite | 'Howto'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS):
build a self-contained LMS ]

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106757

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Prevent shutdown of server while clients connected

2017-01-07 Thread jonnybignote

Wirrunna wrote: 
> The Server Power Control plugin for LMS has a System Idle Monitor
> section that allows an activity threshold for disk, CPU and network that
> prevents shutdown.
> 
> The plugin is currently unsupported, however if you read from
> http://forums.slimdevices.com/showthread.php?48521-Announce-Beta-version-of-SvrPowerControl=833328=1#post833328
> you should be able to get it going, post queries in the thread.

Thanks!



jonnybignote's Profile: http://forums.slimdevices.com/member.php?userid=66484
View this thread: http://forums.slimdevices.com/showthread.php?t=106757

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Prevent shutdown of server while clients connected

2017-01-07 Thread Wirrunna

The Server Power Control plugin for LMS has a System Idle Monitor
section that allows an activity threshold for disk, CPU and network that
prevents shutdown.

The plugin is currently unsupported, however if you read from
http://forums.slimdevices.com/showthread.php?48521-Announce-Beta-version-of-SvrPowerControl=833328=1#post833328
you should be able to get it going, post queries in the thread.



A camel is a racehorse designed by a committee.

Seen sprayed on the outside wall of the local library -
Three things I hate in life :
1. Vandalism
2. Irony
3. Lists

Wirrunna's Profile: http://forums.slimdevices.com/member.php?userid=3225
View this thread: http://forums.slimdevices.com/showthread.php?t=106757

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


[SlimDevices: SqueezeCenter] Prevent shutdown of server while clients connected

2017-01-07 Thread jonnybignote

Hello all.  I'm new to this forum and was hoping to get some advice
regarding shell script code to check if LMS is 'serving' content and to
prevent shutdown if that's the case.

I have a mediapc running mythtv and xbmc etc on an unbuntu machine. 
It's a bit of a hog, so I have it set to standby when not in use by
recordings or streaming to front end for living room tv etc.  I have no
logitech hardware, but am using various software players on wireless
hardware throughout my house.  I'm currently having to ssh into the
server as I have a condition in mythfrontend script that waits for ssh
sessions to finish before allowing standby.  THen when done streaming
audio, I have to remember to stop that so that the machine can go to
sleep.

I'd really like to avoid all that (especially as without the ssh session
from the computer, there's no way of keeping the server on if I want to
stream remotely to my phone etc - it will time out after a few
minutes.)

Does anyone know of commands or code that would appear in running
proccesses that I can use for a script to watch for?  I've looked myself
and the various processes that show up are related to preference file
and plugins - nothing that seems to change or suggest a difference when
a player is connected and streaming audio.

Thanks in advance for any help!



jonnybignote's Profile: http://forums.slimdevices.com/member.php?userid=66484
View this thread: http://forums.slimdevices.com/showthread.php?t=106757

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter