Re: [SlimDevices: Unix] piCorePlayer with cava and tmux (so far)

2018-12-05 Thread sodface


Thanks to Roland0 and Paul,  I've been testing with sexpect and JSON.awk
and it's working fairly well for detecting a "newsong" event and
retrieving json playlist info.  The operation of sexpect is pretty
confusing.  Seems like there should be a way to clear the buffer after a
match and a way to keep spawned processes from spewing all over stdout
but it's probably operator error.


Code:


  #!/bin/sh
  sexpect -s 9090.sock spawn telnet 192.168.1.201 9090 &
  sleep .5
  sexpect -s 9090.sock send -enter "b8%3A27%3Aeb%3A94%3Aae%3A63 subscribe 
playlist"
  
  while :
  do
  sexpect -s 9090.sock expect -re "newsong"
  sexpect -s 9090.sock expect -re ".*"
  
  sexpect -s 9000.sock spawn nc 192.168.1.201 9000 &
  sleep .1
  sexpect -s 9000.sock send -f test
  sexpect -s 9000.sock expect -timeout 10 -glob '{"params":*'
  title=$(sexpect -s 9000.sock expect_out -index 0 | awk -f 
/usr/local/bin/JSON.awk - | grep -m 1 '0,"title"' | cut -f2 | cut -d '"' -f2)
  artist=$(sexpect -s 9000.sock expect_out -index 0 | awk -f 
/usr/local/bin/JSON.awk - | grep -m 1 '"artist"' | cut -f2 | cut -d '"' -f2)
  album=$(sexpect -s 9000.sock expect_out -index 0 | awk -f 
/usr/local/bin/JSON.awk - | grep -m 1 '"album"' | cut -f2 | cut -d '"' -f2)
  station=$(sexpect -s 9000.sock expect_out -index 0 | awk -f 
/usr/local/bin/JSON.awk - | grep -m 1 '"remote_title"' | cut -f2 | cut -d '"' 
-f2)
  sexpect -s 9000.sock close
  pid=$(sexpect -s 9000.sock get -ppid)
  kill $pid
  
  echo "$title"
  echo "$artist"
  echo "$album"
  echo "$station"
  done
  
  kill $pid
  pid=$(sexpect -s 9090.sock get -ppid)
  kill $pid
  rm 9090.sock 9000.sock
  




sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=109694

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.5.0

2018-12-05 Thread Man in a van


@ mjock3

If you want to use an rpi with JRiver you need to go here

'https://yabb.jriver.com/interact/index.php?topic=111505.0
' (https://yabb.jriver.com/interact/index.php?topic=111505.0)

I gave this a try-out earlier this year and have to say I found it very
flaky.

I'm not enamoured with JRiver (never have been) but I know some people
seem to like it :confused:



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=108852

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.5.0

2018-12-05 Thread huxmut


Try making sure everything is working on ethernet cable before going to
wifi. It might be poor signal ??
Also try using pCP with LMS as the server and see if that makes a
difference.



rPi 3 + rasPi 7" LCD + HiFiBerry DiGi+ | rPi 2 + IQaudio DAC+ |rPi 2 +
HiFiBerry DAC+ | Squeeze Box Touch | LMS + XPenology on HP Gen 8 |

huxmut's Profile: http://forums.slimdevices.com/member.php?userid=65108
View this thread: http://forums.slimdevices.com/showthread.php?t=108852

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.5.0

2018-12-05 Thread Greg Erskine


Hi Mark,

I wasn't aware that piCorePlayer works with JRiver Media server
:confused:

regards
Greg



Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=108852

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


Re: [SlimDevices: Unix] Announce: piCorePlayer 3.5.0

2018-12-05 Thread mjock3


Hi, been using Raspberry PI for music for many years and have had only a
few hicups along the way. Every time I setup up a PI it connects and
communicates on my network without any issues. Last year I offered to
help a friend set one up in his home and it has been one thing after
another. I believe the bulk of the problem is network related. He just
recently switched to JRiver Media server. PI is loaded with PICorePlayer
3.5. Had issues hooking up to internet first time, but after rebooting
it hooked up with Media Server. Playing music sounding good, he loaded
more music on the computer and rebooted to have it show up, yes I know
he didn't have to. At that point he lost communication with pi, and was
unable to find it with Fing. So we pulled the plug to reboot. After
rebooting it showed up again on Fing, but still was not seen on JRemote
or JRiver. So tried to reboot computer and still no sign of PI.

Could anyone offer some advice on how to sort through this once and for
all??

Thanks in Advance,

Mark



mjock3's Profile: http://forums.slimdevices.com/member.php?userid=49183
View this thread: http://forums.slimdevices.com/showthread.php?t=108852

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 4.0.0

2018-12-05 Thread paul-


Spaces in the Squeezelite name is expected to work...I just messed
up :(



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=109404

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 4.0.0

2018-12-05 Thread IanHaynes


> Could you take the space out of the name and try it. I added a space on
> my end and broke it.


Interestingly the boot time has dropped from 65 secs to 45 seconds
having changed the name.



IAN

*Library*: Netgear NAS Duo
*Main System*: RPi2 / iQAudio DAC+ / PiCorePlayer with LMS
*Second System*: RPiZero / iQAudio DAC Zero / PiCorePlayer
*PC:* Squeezelite-X

IanHaynes's Profile: http://forums.slimdevices.com/member.php?userid=68595
View this thread: http://forums.slimdevices.com/showthread.php?t=109404

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 4.0.0

2018-12-05 Thread IanHaynes


paul- wrote: 
> Could you take the space out of the name and try it.   I added a space
> on my end and broke it.
> 
> MainSystem or Main_System should suffice.


Well, I had no expectation that this would work but it has done! 
It works with a BBC iPlayer 'Listen Live' station as the favourite too.

Great to have this working again.


Many, many thanks for your help.



IAN

*Library*: Netgear NAS Duo
*Main System*: RPi2 / iQAudio DAC+ / PiCorePlayer with LMS
*Second System*: RPiZero / iQAudio DAC Zero / PiCorePlayer
*PC:* Squeezelite-X

IanHaynes's Profile: http://forums.slimdevices.com/member.php?userid=68595
View this thread: http://forums.slimdevices.com/showthread.php?t=109404

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