I've created a simple plugin to enable playing a FM station using rtl_fm
through LMS.

Your RTL SDR USB stick should be supported by your Debian system. 
Install rtl_sdr packages (https://packages.debian.org/jessie/rtl-sdr )
and rtl_fm is part of this package.

You can check the USB stick by the rtl_test command.

You should check that USB stick plays an FM station OK without LMS in
case of problem such as poor reception due to antenna.

Code:
--------------------
    
  rtl_fm -f 89.9M -s 200000 -r 44100 | aplay -r 44100 -f S16_LE
  
--------------------


This plays the station at 89.9MHz.  - the parameter to "-f" is numerical
frequency so you can use 89.9M or 89.9e6 or 89900k.
When testing the plugin on LMS you need to have a good test station that
plays well with the above command.

To install the plugin  Use LMS WebUI Setting/Plugins and add the
following repo.
HTTP://DOWNLOADS.SOURCEFORGE.NET/PROJECT/BPAPLUGINS/REPO-RTLFMPLAY.XML

Sourceforge can be unreliable so after "Restart" check plugin has been
installed - this means  RTLFMPlay is in "Active Plugins"  list and the
"RTLFMPlay" file type in WebUI Settings/Advanced/FileTypes

Once plugin is installed - to play a station create a favorite with the
pseudo URL "rtlfm:"

so to play 96.4MHz - create a Favorite with url *rtlfm:96.4M*
so to play 106.0MHz - create a Favorite with url *rtlfm:106M*


The plugin is just a customisation of the WaveInput plugin.  In case you
want a simpler solution - WaveInput allows for input from audio line-in
to be played on LMS players.  So you could connected a FM/AM radio via
headphones to a Line-in on an LMS host (e.g microphone socket on PC or
USB ADC)  but tuning would on the FM/AM radio.  Using the SDR approach
tuning can be done via a Favorite.


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=82391

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to