Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-25 Thread TheD6Bel

Hello, after few days of test i keep your first script.

Your last script are some bugs, ei: 
-if i put my music on pause and switch power off, the script don't
work.
-if i listen my music and power off, the relay switch off but if i power
on relay don't move, i need play music, power off and clic play music
for it works.

the problem are with my wife, if don't work perfectly, she don't agree
and i can't install it in my house :( 
I need WAF certification :D (Woman Acceptance Factor)

Thank you for your work, if you create a new script share it, its can
help, a big thanks ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-23 Thread TheD6Bel

hello, 

i tried for you on a new install of picoreplayer 1.18b, and i can't run
script!

on picoreplayer you need libraries and is not inclued, you don't have
python, nano, gpio,...

for you the best way, you install squeezeplug, boot time is not same but
it's work ;)

sorry for not can help you



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-23 Thread TheD6Bel

Hello,

when i did /yourpath is your path directory.  My script is in
/home/script/ and i add on rc.local:

python /home/script/relay.py 

;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-22 Thread TheD6Bel

hello, your script like this


Code:

import sys, string, select
  from socket import *
  import RPi.GPIO as GPIO
  
  # Define maximum xPL message size
  buff = 1500
  
  # Define xPL base port
  port = 3865
  
  # Sub routine for sending a heartbeat
  def SendHeartbeat() :
  hbSock = socket(AF_INET,SOCK_DGRAM)
  hbSock.setsockopt(SOL_SOCKET,SO_BROADCAST,1)
  msg = 
xpl-stat\n{\nhop=1\nsource=johnb-monitor.python\ntarget=*\n}\nhbeat.app\n{\ninterval=5\nport=
 + str(port) + \n}\n
  hbSock.sendto(msg,(192.168.1.255,3865))
  
  
  # Initialise the socket
  UDPSock = socket(AF_INET,SOCK_DGRAM)
  addr = (0.0.0.0,port)
  
  # Try and bind to the base port
  try :
  UDPSock.bind(addr)
  except :
  # A hub is running, so bind to a high port
  port = 5
  
  addr = (192.168.1.39,port)
  try :
  UDPSock.bind(addr)
  except :
  port += 1
  
  print xPL Monitor for Python, bound to port  + str(port)
  
  SendHeartbeat()
  
  while 1==1 :
  readable, writeable, errored = select.select([UDPSock],[],[],60)
  
  if len(readable) == 1 :
  data,addr = UDPSock.recvfrom(buff)
  print data
  radioname = Esszimmer
  if radioname in data :
  if POWER=1 in data :
  print radioname +  is on
  GPIO.setmode(GPIO.BCM)
  GPIO.setwarnings(False)
  GPIO.setup(18, GPIO.OUT)
  GPIO.output(18, True)
  elif POWER=0 in data :
  print radioname +  is off
  GPIO.setmode(GPIO.BCM)
  GPIO.setwarnings(False)
  GPIO.setup(18, GPIO.OUT)
  GPIO.output(18, False)
  else :
  print other message for  + radioname
  
  



and exactly the same ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-20 Thread TheD6Bel

Sorry my mistake!

for run script i make ./rxpl.py

i'am on work now, i tried tonight



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-20 Thread TheD6Bel

Hello  RobbeD

your script work perfectly!

i change ip 127.0.0.1 to my nas ip (lms run on my synology) and and
change GPIO.output(18, True) to GPIO.output(18, False) and
GPIO.output(18, False) to GPIO.output(18, True) for work with my relay.

Thanks ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-20 Thread TheD6Bel

palmerx wrote: 
 I'm very sorry for beeing an absolut beginner, can anybody explain me in
 short words how I get this script on my running piCorePlayer and what
 pins its going to switch?
 Do I have to use Putty?
 
 Thank you very much for your time, all out there!!

Hello,

yes you need putty. make ssh connection on rpi ip.  

I use nano for edit text on RPI

if nano isn't install on picoplayer :


Code:

sudo apt-get install nano



for your script you need make modification (name of player and ip of
server)

when you see 127.0.0.1 you put server ip and when you see radioname =
Radio_Living you remplace Radio_Living by player name (and keep )

for make your script :


Code:

nano relay.py



you copy your code (big thanks to RobbeD) and make CTRL+X for exit, y
and enter for finish.

you need give a good permission for execute your script


Code:

chmod 755 relay.py



and for run your script and test it


Code:

python relay.py



now for run your script on boot, (i don't tried yet, only with first
script)


Code:

nano /etc/rc.local



before exit 0

you put 
Code:

/yourpath/relay.py 



CTRL+X, y and entre, for finish you need reboot your RPI

I do not think I forgot something but requests if you need



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-19 Thread TheD6Bel

Hello  RobbeD, 

don't work for me :


Code:

root@squeezeplug:/home/pi/script# ./rxpl.py
  ./rxpl.py: line 1: import: command not found
  from: can't read /var/mail/socket
  ./rxpl.py: line 3: import: command not found
  ./rxpl.py: line 6: buff: command not found
  ./rxpl.py: line 9: port: command not found
  ./rxpl.py: line 12: syntax error near unexpected token `('
  ./rxpl.py: line 12: `def SendHeartbeat() :'
  



i need install only xpl plugin?



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-18 Thread TheD6Bel

palmerx wrote: 
 This looks amazing, would that work on the PiCorePlayer also to turn on
 my Amp??
 
 https://sites.google.com/site/picoreplayer/home

Hello, 

normally yes.  You need only setup script with ip of server and mac from
picoreplayer.


I had to change the script for run every 2 sec 300 is to much, and my
relay don't work normally, when i turn off LMS the relay is on ON and
when i turn ON LMS relay is on OFF. just change end of script and work
perfectly.

If you need ask ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-18 Thread TheD6Bel

RobbeD wrote: 
 Hey guys,
 
 I recently changed the script so it now works with the XPL plugin.. This
 makes the script more smooth and lightweight! It also now reacts
 instant! :-)
 To make the script run you'll need to install the xPL plugin in LMS. 
 
 After that you just change the name of  the player in the script and it
 should work! :-)
 
 16697

Your are a boss! thanks

i try tomorrow ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Control vol with script on RPI squeezeslave, need help

2014-03-09 Thread TheD6Bel

Hello,

i make 3 script

volplus10.sh
 
 #!/bin/bash
 echo b8:27:eb:53:6f:47 mixer volume +10 | nc -i 1 127.0.0.1 9090 
 

volmoins10.sh
 
 #!/bin/bash
 echo b8:27:eb:53:6f:47 mixer volume -10 | nc -i 1 127.0.0.1 9090 
 

and mute.sh
 
 #!/bin/bash
 echo b8:27:eb:53:6f:47 mixer volume -100 | nc -i 1 127.0.0.1 9090
 

after, script to read my 3 button:

boutons.sh
 #!/usr/bin/env python
 from time import sleep
 import os
 import RPi.GPIO as GPIO
 GPIO.setmode(GPIO.BCM)
 GPIO.setup(17, GPIO.IN)
 GPIO.setup(22, GPIO.IN)
 GPIO.setup(23, GPIO.IN)
 
 while True:
 if ( GPIO.input(17) == False ):
 os.system('bash /home/pi/script/volplus10.sh')
 inputval = GPIO.input(17)
 sleep(0.1);
 if ( GPIO.input(22) == False ):
 os.system('bash /home/pi/script/volmoins10.sh')
 inputval = GPIO.input(22)
 sleep(0.1);
 if ( GPIO.input(23) == False ):
 os.system('bash /home/pi/script/mute.sh')
 inputval = GPIO.input(23)
 sleep(0.1);
 sleep(0.1);

now i need start automaticly this script on boot AND TRY :D
i don't have now button and no have idea for resistors, I continue my
research



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=101096

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


Re: [slim] Control vol with script on RPI squeezeslave, need help

2014-03-07 Thread TheD6Bel

thanks for reply ;)

but when a star putty telnet on my squezeeplug ip, putty stop and close,
i go make a new install of squezeeplug and try again for telnet
connection

i try the keyboard on picoreplayer and is same problem don't work :(



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=101096

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


Re: [slim] Control vol with script on RPI squeezeslave, need help

2014-03-07 Thread TheD6Bel

for picoreplayer, je pensais, I thought, as it is a special distribution
that was not running in the background

squezeeplug don't have telnet fonction, i install and try command to
night or tomorow ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=101096

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


Re: [slim] Control vol with script on RPI squeezeslave, need help

2014-03-07 Thread TheD6Bel

now is working

telnet 127.0.0.1 9090
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
b8:27:eb:53:6f:47 mixer volume +10

now i need make 3 script for 3 buttons +5 -5 -100(for mute) and find how
run script when i touch button ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=101096

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


Re: [slim] Control vol with script on RPI squeezeslave, need help

2014-03-07 Thread TheD6Bel

Big thanks for your helps it's work perfectly, a little bit slow but
works ;)

echo b8:27:eb:53:6f:47 mixer volume +5 | nc -i 1 127.0.0.1 9090



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=101096

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


[slim] Control vol with script on RPI squeezeslave, need help

2014-03-06 Thread TheD6Bel

hello,

I want to control the volume with buttons, I bought this 'keyboard'
(http://www.audiophonics.fr/audiophonics-clavier-controle-xbmc-raspyfi-htpc-p-8435.html)
to test but it does not work on squeezeplug only on xbmc (and work very
well on xbmc)

So I thought connected to the GPIO buttons and launch scripts. On the
'WIKI' (http://wiki.slimdevices.com/index.php/SqueezeSlave), there are
commands to control the volume but I can not do it when i send command i
have errors.

Does someone can help me to create scripts to control the volume + / -
and power if possible (not for the command on the wiki)

Big thanks for your helps ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=101096

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-08 Thread TheD6Bel

hello, 

your file is the same script :) 

but thanks for you work ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-03 Thread TheD6Bel

it works !!! thanks

I just have a problem is when LMS is off the relay is on ans when LMS is
turn on relay switch off.

i need change your script but it WORKS ! BIG THANKS



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-02 Thread TheD6Bel

i resolve my first problem :)

i change 

#!/usr/bin/env python
to
#!/usr/bin/env python3

but i have a error in line 82 :

root@squeezeplug:/home# ./gpio.sh
File ./gpio.sh, line 82
playerdetected = playerId
^



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-02 Thread TheD6Bel

I fixed the second error

if (playerId == playermac):
playerdetected = playerId
not
if (playerId == playermac):
playerdetected = playerId

but I have another error

root@squeezeplug:/home# ./gpio.sh
File ./gpio.sh, line 84
if playerdetected  :
^
SyntaxError: invalid syntax

I I'm not good in script, so I do not know fix it



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-01 Thread TheD6Bel

i tried but don't work :(

i put the script in /hom/gpio.sh with chmod 777

i put before yout script

#!/usr/bin/env python
# -*- coding: utf-8 -*-

i put ip of RPi : 192.168.1.9
and mac adress of squeezeslave (in web interface, setting, player, ) :
b8:27:eb:e4:2a:af

I edit /etc/rc.local

and put before exit0 
/home/gpio.sh 

I plugged my relay 
vcc in pin 2 of RPi (5V)
ground in pin 6 of RPi (ground)
ctrl in pin 12 of RPi (gpio18)

i reboot but don't work, what I did wrong?

thanks



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-01 Thread TheD6Bel

if i execute gpio.sh i have error:

root@squeezeplug:/home# ./gpio.sh
Traceback (most recent call last):
File ./gpio.sh, line 52, in module
responce = json.loads(data)
File /usr/lib/python2.7/json/__init__.py, line 326, in loads
return _default_decoder.decode(s)
File /usr/lib/python2.7/json/decoder.py, line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File /usr/lib/python2.7/json/decoder.py, line 383, in raw_decode
raise ValueError(No JSON object could be decoded)
ValueError: No JSON object could be decoded



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-04-30 Thread TheD6Bel

Thanks, i test now ;)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-29 Thread TheD6Bel

epoch1970 wrote: 
 did you see this one :
 http://forums.slimdevices.com/showthread.php?88269-Sample-code-JSON-API-in-your-languagep=636134viewfull=1#post636134

i see, but isn't for manage GPIO, is for have inforamtions over
serveurs/player

but thanks :)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-20 Thread TheD6Bel

epoch1970 wrote: 
 Wha??
 
 Have you tried gpio raspberry pi python on google ?


On google! I searched on the forum, on RPi forum i open un post and i
have a python script for manage GPIO but is only with MPD not LMS.  I
try change this script for LMS

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=65t=17048sid=b081c7bdc97882d2bca4bc66807eda87start=25

If MPD playing music, GPIO is opens, if in pause/stop GPIO closes.


script wrote: 
 
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 from mpd import MPDClient
 import RPi.GPIO as GPIO
 import time
 
 RELAIS_ACTIF=False
 PIN_RELAIS=12
 
 def relai(etat):
 GPIO.output(PIN_RELAIS, etat)# Bascule le pin du relai à
 l'état voulu
 RELAIS_ACTIF=etat
 
 def main():
 # Test de lecture audio
 client = MPDClient()
 while(1):
 try:
 # Connection au client mpd et lecture du status
 client.connect(host='localhost', port='6600')
 client.password('password')
 status=client.status()
 
 if status['state']=='play' and RELAIS_ACTIF is False:
 relai(True)
 elif status['state']=='stop' or
 status['state']=='pause':
 relai(False)
 client.disconnect()
 except:
 print 'Erreur connection'
 raise
 time.sleep(1) # On fait dodo pendant une seconde, et on
 recommence !
 
 if __name__ == __main__:
 GPIO.setup(PIN_RELAIS, GPIO.OUT)  # paramétrage du pin en
 sortie
 relai(False)
 main()




TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-19 Thread TheD6Bel

hello,

I did a search but I have not found a script to manage GPIO over RPi



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-18 Thread TheD6Bel

Hello i instal a python for LMS and is very easy to have status of
server

PYLMS https://github.com/jingleman/PyLMS



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-11 Thread TheD6Bel

Hello,

I also looking for a solution to control an amp with GPIO ports RPi.

For the moment there is a script that works with MPD, must modify it to
work under squeezebox. This script based on the status of mpd.



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-11 Thread TheD6Bel

I do not even answer

root@squeezeplug:~# echo serverstatus |netcat -w1 127.0.0.1 9090
root@squeezeplug:~# echo players list|netcat -w1 127.0.0.1 9090

:(



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-11 Thread TheD6Bel

hello, for me netcat is instaled:

root@squeezeplug:~# netcat
usage: nc [-46bCDdhjklnrStUuvZz] [-I length] [-i interval] [-O length]
[-P proxy_username] [-p source_port] [-q seconds] [-s source]
[-T toskeyword] [-V rtable] [-w timeout] [-X proxy_protocol]
[-x proxy_address[:port]] [destination] [port]

if i type telnet localhost 9090:

root@squeezeplug:~# telnet localhost 9090
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

and if i type serverstatus or serverstatus

serverstatus
serverstatus   lastscan%3A1352124017 version%3A7.7.2
uuid%3A40adacd5-c19a-4c10-bea4-fe1b4481dbce info%20total%20albums%3A4
info%20total%20artists%3A3 info%20total%20genres%3A3
info%20total%20songs%3A67 player%20count%3A1 sn%20player%20count%3A0
other%20player%20count%3A0
players list
players list  count%3A1 playerindex%3Alist
playerid%3A00%3A00%3A00%3A00%3A00%3A01 uuid%3A ip%3A127.0.0.1%3A49493
name%3AMusique%20Salon model%3Asqueezeslave isplayer%3A1
displaytype%3Asqueezeslave canpoweroff%3A1 connected%3A1


with lsof -n |grep squeeze|grep LISTEN:

root@squeezeplug:~# lsof -n |grep squeeze|grep LISTEN
squeezebo 2239  squeezeboxserver9u IPv4   3878  0t0 
TCP *:3483 (LISTEN)
squeezebo 2239  squeezeboxserver   23u IPv4   3888  0t0 
TCP *:9090 (LISTEN)
squeezebo 2239  squeezeboxserver   29u IPv4   3898  0t0 
TCP *:59743 (LISTEN)
squeezebo 2239  squeezeboxserver   30u IPv4   3902  0t0 
TCP *:9000 (LISTEN)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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


Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-11-11 Thread TheD6Bel

root@squeezeplug:~# echo -e serverstatus\nexit\n | netcat localhost
9090
serverstatus   lastscan%3A1352124017 version%3A7.7.2
uuid%3A40adacd5-c19a-4c10-bea4-fe1b4481dbce info%20total%20albums%3A4
info%20total%20artists%3A3 info%20total%20genres%3A3
info%20total%20songs%3A67 player%20count%3A1 sn%20player%20count%3A0
other%20player%20count%3A0

root@squeezeplug:~# echo -e players list\nexit\n | netcat localhost
9090
players list  count%3A1 playerindex%3Alist
playerid%3A00%3A00%3A00%3A00%3A00%3A01 uuid%3A ip%3A127.0.0.1%3A49493
name%3AMusique%20Salon model%3Asqueezeslave isplayer%3A1
displaytype%3Asqueezeslave canpoweroff%3A1 connected%3A1


YOU ARE A KILLER :)



TheD6Bel's Profile: http://forums.slimdevices.com/member.php?userid=58077
View this thread: http://forums.slimdevices.com/showthread.php?t=71077

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