[SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread beejayf
Hello y'all, first off - SORRY! This is the the second time I post the same question - I posted the 1st one in the Media Server section and there was no reply - hence I figured that it might be off topic and better suited here - If I did not adhere to a specific forum rule I apologize and

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread Roland0
beejayf wrote: Is there a plugin for the media server (or any other way using whatever runs on a linux system) to detect an active squeezebox client (or a client being switched on) and then execute a shell command on the media-server machine? You could use the LMS CLI interface. The query

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread dyohn
Triode, can you tell me the correct file name for the squeezelite config file? I am still trying to find it in my VAMP installation to add a -a startup parameter and I cannot locate the file. Thank you! David dyohn's

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread beejayf
Roland0 wrote: You could use the LMS CLI interface. The query player count ? will return the number of connected players, which you could use in a script to decide if a command to the amp should be sent. That sounds very promising!! But player count did only return the number of the

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread DJanGo
beejayf wrote: I tried: Code: telnet mymediaserver port MAC adress power ? exit and this returns a 1 or a 0 for the status - thanks for putting me on the right track! Any quick solution for doing this automatically?

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread Roland0
Code: #!/bin/bash OLDPS=0 while true; do PS=0 for i in MAC1 MAC2 MACN; do echo $i power ?|nc6 -q 1 nas 9090 2/dev/null|grep -q power 1 PS=1 break done if [ $PS -ne $OLDPS ]; then OLDPS=$PS if [ $PS -eq 1 ]; then echo power on else echo

Re: [SlimDevices: Unix] username of squeezebox

2013-10-01 Thread weirdinin
Got that working now. Used getfacl --access | setfacl -R -d -M user:username:permission dir. And username I used was squeezeboxserver. Don't know why it didn't work earlier. Perhaps ubuntu set the permission of the audio dir by defaults and they needed to be set differently by acl.. well anyway

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread Triode
dyohn wrote: Triode, can you tell me the correct file name for the squeezelite config file? I am still trying to find it in my VAMP installation to add a -a startup parameter and I cannot locate the file. Thank you! David seem post #1609 - I've not looked but suggests this is the config

Re: [SlimDevices: Unix] Squeezelite losing connection to LMS

2013-10-01 Thread Triode
GJS123 wrote: The connection is wireless so that's quite possible, I'll look into it. Should Squeezelite not reconnect after a network outage? Thanks. It does - and the log shows it doing so multiple times.

Re: [SlimDevices: Unix] Community Squeeze OS F19 Release 1

2013-10-01 Thread atrocity
(I asked this question elsewhere but was directed here.) Has anyone tried using the Wandboard with DTS or AC-3 material? I'm talking about the wrap-it-in-FLAC trick some of us have successfully used with Squeezeboxes for years. Just wondering if the HDMI or S/PDIF is bit-perfect enough to

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread dyohn
Triode wrote: seem post #1609 - I've not looked but suggests this is the config file (note this is VAMP not squeezelite specific) Duh, thank you. yes, that is the file. dyohn's Profile:

Re: [SlimDevices: Unix] Squeezelite losing connection to LMS

2013-10-01 Thread GJS123
The license terms output says it's version 0.9beta8. GJS123's Profile: http://forums.slimdevices.com/member.php?userid=13798 View this thread: http://forums.slimdevices.com/showthread.php?t=99917

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread Gerrelt
CommanderROR wrote: Thanks, but Squeezelite is included in Squeezeplug. I'm looking for a way to get 192khz playback to work on Squeezeplug. So far it's only working on raspify and PiCorePlayer... Ah, yeah, sorry, I've misread your post. What you could do is install the latest 'Raspbian

Re: [SlimDevices: Unix] Squeezelite losing connection to LMS

2013-10-01 Thread Triode
GJS123 wrote: The license terms output says it's version 0.9beta8. Thats a bit old then! Latest release is 1.2 and latest development is 1.3-dev. Could you try a newer version? (download link on first post) Triode's

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread Triode
I don't have any more features to add at present so I've raised the status of the git branch to 1.3beta1 and build some binaries for people to try (linux i386/x64, windows, osx) Please test and feedback here. If no problems are found after several days I'll make the arm and mips binaries and

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread beejayf
Thank y'all! I decided to go for the script triggered by crontab solution: Code: #!/bin/bash server=127.0.0.1 port=9090 playerID=MACOFMYPLAYERATTACHEDTOAMP power=$(printf $playerID power ?\nexit\n | nc $server $port | cut -d ' ' -f 3 ) echo $power

Re: [SlimDevices: Unix] Squeezelite losing connection to LMS

2013-10-01 Thread GJS123
OK, I've installed the new version (1.2). I'll report back. Thanks. GJS123's Profile: http://forums.slimdevices.com/member.php?userid=13798 View this thread: http://forums.slimdevices.com/showthread.php?t=99917

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread aussieW
aussieW wrote: Hi I have a DLink DIR-632 router running dd-wrt. The router has a usb port and I would like to connect a USB DAC and run squeezlite on it. Does this sound possible and if so how do I get a version of squeezelite that is compiled to run on the atheros ar7241 chip? Regards

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread gharris999
Peter Watkins PowerCenter plugin will do what you want. See: http://www.tux.org/~peterw/slim/slim7/PowerCenter/ PowerCenter is all about controlling X10 devices. But all you really need to do is create a custom script named '/usr/local/sbin/heyu', incorporate your code and then parse the cmd

Re: [SlimDevices: Unix] Execute Shell Command on Media Server if a Player Starts Playing

2013-10-01 Thread gharris999
PS: Here's the heyu script that I use with PowerCenter: Code: #!/bin/sh Script to emulate heyu utility. Called by Peter Watkin's LMS PowerCenter plugin. # Uses netcat to send X10 commands via mochad controlling a CM19A USB transciever. # Make sure

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2013-10-01 Thread leafygreens
Triode wrote: I don't have any more features to add at present so I've raised the status of the git branch to 1.3beta1 and build some binaries for people to try (linux i386/x64, windows, osx) Please test and feedback here. If no problems are found after several days I'll make the arm and