Home of the Squeezebox™ & Transporter® network music players.
Page 247 of 439 FirstFirst ... 147197237245246247248249257297347 ... LastLast
Results 2,461 to 2,470 of 4381
  1. #2461
    Senior Member
    Join Date
    Apr 2009
    Location
    New Bedford, MA USA
    Posts
    454
    Quote Originally Posted by kolossos4730 View Post
    Squeezed_Rotel,

    You could also add a hardware switch to P9 and unmute the Pi-AMP with this switch after power-up.

    If you have an IQaudIO Pi-DAC an Pi-AMP combination you can take this a step further by having the volume slider in the LMS web interface controlling the hardware volume mixer of the Pi-DAC.

    This requires Squeezelite 1.8 and the easiest way to update to this version is to use the web interface of piCorePlayer. On the Main Page update to the Ralphys newest version (Triode does not yet provide a compiled 1.8 version). After this you should see Squeezelite v1.8 on the statusbar at the bottom of the webpage.

    Next enter the following parameters in the Various input box on the Squeezelite Settings page : -V PCM (case sensitive!)

    To be sure reboot your piCorePlayer. SSH into piCorePlayer and enter alsamixer -c 1 (or use F6 to choose the Pi-DAC). Now you should see the PCM bar move up and down when you adjust the volume slider on the LMS webinterface. This should also work when controlling LMS via SqueezePad or iPeng.

    For all of this to work Volume Control for the player should be configured as 'Volume controls adjust outputs' in the LMS Audio settings pages for this player.
    Thanks once again kolossos. I just adopted the above changes, and I'm changing the volume with iPeng, and watching the PCM bar react!
    Now, concerning the switch on P9; momentary or non momentary?
    TIA,
    John
    John

  2. #2462
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,834
    Quote Originally Posted by Squeezed_Rotel View Post
    Thanks once again kolossos. I just adopted the above changes, and I'm changing the volume with iPeng, and watching the PCM bar react!
    Now, concerning the switch on P9; momentary or non momentary?
    TIA,
    John
    Hi John,

    In this Pink Fish Media thread, Bemused wanted a automatic script that turned his amp on and off (after a delay) depending on whether Squeezelite was playing or not.

    http://www.pinkfishmedia.net/forum/s...d.php?t=165465

    Challenge: I think this could be modified to unmute/mute the IQaudIO amp.

    regards
    Greg

  3. #2463
    Senior Member
    Join Date
    Dec 2006
    Posts
    672
    Quote Originally Posted by sbp View Post
    Hi SamS

    Unfortunately I see no problems in your config file - so no obvious solution.

    Do you have the same problem that piCorePlayer is not recognized in LMS if you remove your USB DAC and for a period use analog as the output?
    It could be a power problem.

    Steen
    Steen, you were right. Changing output back to analog allows LMS to see the pCP.

  4. #2464
    Senior Member
    Join Date
    Feb 2015
    Posts
    196
    Quote Originally Posted by Squeezed_Rotel View Post
    Thanks once again kolossos. I just adopted the above changes, and I'm changing the volume with iPeng, and watching the PCM bar react!
    Now, concerning the switch on P9; momentary or non momentary?
    TIA,
    John
    John,

    A simple toggle switch should be OK.

    https://www.sparkfun.com/products/9276
    https://www.sparkfun.com/products/8837

    I did not try this myself, but I asked Gordon from IQaudIO the following question :

    - When powered on can I use a simple switch connected to jumper P9 on the Pi-AMP to control the mute state?

    And he replied with :

    Yes, that's possible, the AMP doesn't pull much power when idle in any case.

  5. #2465
    Senior Member
    Join Date
    Mar 2013
    Posts
    653
    @Steen

    Any idea when we'll see a new, Pi2 compatible PiCorePlayer build?
    Thanks!

  6. #2466
    Senior Member
    Join Date
    Feb 2010
    Posts
    342

    Alternative download?

    Hi does anyone know of a mirror or alternative download location? Sourceforge is down AGAIN!

  7. #2467
    Senior Member Pascal Hibon's Avatar
    Join Date
    Oct 2006
    Location
    Belgium
    Posts
    1,565
    Quick question: how does the "autostart LMS" (found under tweaks) feature work? And does it poll the LMS server first to check if its ready before sending the command?

    I tried to use it start a random track mix but it didn't do anything. I now solved it by creating a custom bach script which is called by the bootlocal.sh script but I'm interested to know how the autostart LMS feature works. Is there any documentation available on the various features in the configuration pages?
    Cambridge Audio 851D-S -> Focal MP1200 -> Focal Electra 1028 Be
    1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
    1 x SB3 and 1 x SB Touch in storage
    ReadyNAS NVX for storage
    RPI 2B running LMS 7.9.2.
    iPeng on iPhone, SqueezePad & iPeng on iPad.
    http://www.last.fm/user/phibon

  8. #2468
    Senior Member
    Join Date
    Feb 2015
    Posts
    196
    Quote Originally Posted by Greg Erskine View Post
    Hi John,

    In this Pink Fish Media thread, Bemused wanted a automatic script that turned his amp on and off (after a delay) depending on whether Squeezelite was playing or not.

    http://www.pinkfishmedia.net/forum/s...d.php?t=165465

    Challenge: I think this could be modified to unmute/mute the IQaudIO amp.

    regards
    Greg
    Greg,

    I modified your script to allow unmuting/muting of the Pi-AMP and extended it with one extra variable : FOLLOW_PLAYBACK_STATE.

    If FOLLOW_PLAYBACK_STATE<>0 then the script will mute/unmute the amp according to the playback state. If FOLLOW_PLAYBACK_STATE=0 then the script will just unmute the amp and exit.

    I tested this without any speakers attached but the mute status light on the amp does reflect the playback state.

    Code:
    #!/bin/sh
    
    # Version: 0.01 2014-11-28 GE
    #               2015-02-18 Adapted for Pi-AMP
    #
    #===========================================================================
    # This script polls LMS at a regular interval to determine the current
    # status of the Squeezelite process on piCorePlayer. i.e. play or stop.
    #
    # GPIO 22 is then set/reset depending on the result of this status check.
    # This will unmute/mute the Pi-AMP accordingly.
    #
    # There is an adjustable mute delay that can be used as an inactivity
    # timing.
    #---------------------------------------------------------------------------
    
    #===========================================================================
    # Possible issues
    #---------------------------------------------------------------------------
    # 1. If setting MAC address manually, pay close attention to the physical,
    #    wireless and fake MAC addresses.
    # 2. This script hasn't been tested on synced players.
    #---------------------------------------------------------------------------
    
    #===========================================================================
    # Save script to /home/tc/piamp.sh
    # Make script executable
    #
    ## 	chmod +x /home/tc/piamp.sh
    #
    # Edit /opt/bootlocal.sh and add this script
    #
    ##	#!/bin/sh
    ## 	#put other system startup commands here
    ##	#amixer cset numid=3 2
    ##
    ##	#run Pi-AMP script
    ##	sleep 5
    ##	sudo /home/tc/piamp.sh > /dev/null &
    ##
    ## 	#mnt/mmcblk0p2/tce/OliWeb-master/ivySox/myweb/do_rebootstuff.sh
    ##	/home/tc/www/cgi-bin/do_rebootstuff.sh
    #
    # Save changes to piCorePlayer
    #
    ##	sudo filetool.sh -b
    #---------------------------------------------------------------------------
    
    #===========================================================================
    # Set the following according to your setup
    #---------------------------------------------------------------------------
    GPIO=22					# Set GPIO 22 for Pi-AMP
    PI_MAC_ADDRESS=b8:27:eb:1c:62:19	# Raspberry Pi MAC address
    LMS_IP_ADDRESS=192.168.0.200		# LMS IP address
    LMS_CLI_PORT_NUMBER=9090		# LMS CLI port number
    COMMAND="status 0 0"			# LMS player status command
    INTERVAL=0.5				# Set Poll interval
    DELAY_OFF=10				# Delay in no. of intervals
    FOLLOW_PLAYBACK_STATE=1			# If set to 0 this script will just unmute and exit
    COUNT=0
    DEBUG=0
    #---------------------------------------------------------------------------
    
    if [ $DEBUG = 1 ]; then
    	echo
    	echo "GPIO                  : "$GPIO
    	echo "PI_MAC_ADDRESS        : "$PI_MAC_ADDRESS
    	echo "LMS_IP_ADDRESS        : "$LMS_IP_ADDRESS
    	echo "LMS_CLI_PORT_NUMBER   : "$LMS_CLI_PORT_NUMBER
    	echo "COMMAND               : "$COMMAND
    	echo "INTERVAL              : "$INTERVAL
    	echo "DELAY_OFF             : "$DELAY_OFF
    	echo "FOLLOW_PLAYBACK_STATE : "$FOLLOW_PLAYBACK_STATE
    	echo
    fi
    
    get_mode() {
    	RESULT=`( echo "$PI_MAC_ADDRESS $COMMAND"; echo exit ) | nc $LMS_IP_ADDRESS $LMS_CLI_PORT_NUMBER`
    	echo $RESULT | grep "mode%3Aplay" > /dev/null 2>&1
    	if [ $? == 0 ]; then
    		COUNT=0
    		# unmute Pi-AMP
    		echo "1" > /sys/class/gpio/gpio$GPIO/value
    		echo "Playing. Count: $COUNT"
    	else
    		if [ $COUNT -ge $DELAY_OFF ]; then
    			# mute Pi-AMP
    			echo "0" > /sys/class/gpio/gpio$GPIO/value
    			COUNT=0
    		else
    			COUNT=$(($COUNT + 1))
    			echo "Stopped. Count: $COUNT"
    		fi
    	fi
    }
    
    #===========================================================================
    # Initial GPIO setup
    #---------------------------------------------------------------------------
    sudo sh -c 'echo '"$GPIO"' > /sys/class/gpio/export'
    sudo sh -c 'echo "out" > /sys/class/gpio/gpio'"$GPIO"'/direction'
    #---------------------------------------------------------------------------
    
    #===========================================================================
    # main()
    #---------------------------------------------------------------------------
    if [ $FOLLOW_PLAYBACK_STATE = 0 ]; then
    	# unmute Pi-AMP,  cleanup and exit
    	echo "1" > /sys/class/gpio/gpio$GPIO/value
    	sudo sh -c 'echo '"$GPIO"' > /sys/class/gpio/unexport'
    	exit
    else
    	# Loop forever. This uses less then 1% CPU, so it should be OK.
    	while true
    	do
    		get_mode
    		sleep $INTERVAL
    	done
    fi
    #---------------------------------------------------------------------------

  9. #2469
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,834
    Quote Originally Posted by CommanderROR View Post
    @Steen

    Any idea when we'll see a new, Pi2 compatible PiCorePlayer build?
    Thanks!
    Hi CommanderROR,

    The process has started but it is a significant update.

    regards
    Greg

  10. #2470
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,834
    Quote Originally Posted by Giza2020 View Post
    Hi does anyone know of a mirror or alternative download location? Sourceforge is down AGAIN!
    Hi Giza2020,

    There is no alternative download location.

    I've also been caught a few times in the last couple of months.

    regards
    Greg

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •