chrissy wrote:
> Hi,
>
>
> squeezelite - | pifm -
>
> should do it, at least that's what the projectpage of pifm says. Maybe
> you would like to use some more optios to squeezelite. squeezelite -h
> will do the job.
>
> Best regards
>
> Christian
Hi Christian- thanks for your reply. I can't believe i have gotten this
working, but I still need help.
First, my "server" is a fedora chroot on my android phone. It was
extremely difficult to get the LMS server working, but it uses very
little power/resources and is the only way to get LMS server on android.
I am using the android data tether capability to send 3G internet to the
raspberry pi, such that it is a closed network.
The point of this is to have music in my car playing off of the radio.
The pi is now setup with Arch Linux and the bare minimum packages: a
bunch of libraries, squeezelite, sox, and pifm.
The script that I am running is this (your suggestion with tweaks
added):
#written in an executable file /home/carpi/pifm/pifmradio.sh
Code:
--------------------
#!/bin/bash
sudo modprobe snd-aloop pcm_substreams=2 | sudo /usr/bin/squeezelite-armv6hf
-o hw:Loopback,0,0 -z -s 192.168.0.20 | sudo sox -v 14 -t alsa hw:Loopback,1,0
-t wav -b 16 -c 1 -r 22050 - | sudo /home/carpi/pifm/pifm - 107.9
--------------------
So, if I am logged into the pi as root and I execute this script I get
GREAT sound from the radio.
Here are the two issues:
First, I am getting skipping about every 1.5-2 minutes. Should I
increase the buffer size of the squeezelite player, and if so- how?
Second, I can't get this to work on startup in Arch Linux (systemd). I
suspect that the issue is that the squeezelite player wants the internet
to be up and running in order to load, but I am not sure.
This is all going to be happening in my car, and the pi will be dead
until I start the car.
How can I optimally set this up?
Thanks folks.
Peter
------------------------------------------------------------------------
monkmandolins's Profile: http://forums.slimdevices.com/member.php?userid=63152
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix