Skip to content

Its a terminal music player addon, for use with pifm(FM-Transmitter) on a raspberry pi mini computer.

Notifications You must be signed in to change notification settings

agonbar/PiFMPlay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PiFMPlay

Its an addon for pifm(a program to transmit FM-Radio) for the raspberry pi mini computer.

PiFMPlay makes it easier to play music and control your FM-Broadcast.

PiFM is written by Icrobotics

PiFMPlay is written by Mikael Jakhelln. "It's not pretty, but i works."

This is a forked version of Mikaels PiFMPlay with solved bugs and a .deb to make it more noob friendly.

##How to install it: Manual install:

Step 1: Put pifmplay on your pi (e.g /home/pi).

Step 2: Allow it to be run as a program:

sudo chmod +x pifmplay

sudo chmod +x pifm

Step 3: Install sox and ffmpeg with:

sudo apt-get install sox libsox-fmt-all libav-tools

Deb install: Download pifmplay.deb and run

sudo dpkg -i pifmplay.deb

##How to use it:

Attach an antenna to GPIO4 on your raspberry pi.

###Test it:

sudo pifmplay . 91.3

(88.0 is the default frequency, change it to whatever frequency you want to broadcast on.)

###Play a file with:

sudo pifmplay "/path/to/file.mp3"

sudo pifmplay "/path/to/file.m4a"

sudo pifmplay "/path/to/file.wav"

this will play a file with pifm.

###Play a folder with:

sudo pifmplay "/path/to/folder" 101.5

(this will play all files in the specified directory with pifm on frequency 101.5)

###How to Pause/Stop broadcast and skip songs: Open another terminal.

sudo pifmplay pause

sudo pifmplay resume

sudo pifmplay stop

sudo pifmplay next

To control pifmplay from the same terminal, run pifm in the background:

sudo pifmplay "/path/to/folder" & (tho you might want to remove the text output)

####If you get in troube using this, IT'S ON YOU: The raspberry pi can be made into a powerful fm-transmitter, if you filter and amplify the signal. But using a powerful fm-transmitter without a proper licence is illegal in most countries. So if you break any laws and get fined for it, it's YOUR OWN FAULT!! But it should be fine as long as you don't attach a big antenna to it.

About

Its a terminal music player addon, for use with pifm(FM-Transmitter) on a raspberry pi mini computer.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.5%
  • Python 0.5%