{"repo":"cdzombak/pi-fm-player","free":true,"listed":false,"github":"https://github.com/cdzombak/pi-fm-player","clone":"git clone https://github.com/cdzombak/pi-fm-player.git","description":"Raspberry Pi FM transmitter that plays music forever from the local filesystem.","language":"C++","stars":56,"topics":["raspberry-pi","radio","fm-transmitter","mp3","music-player"],"license":"Unlicense","category":"self-hosted-apps","readme_excerpt":"pi-fm-player A Raspberry Pi-based music player + FM transmitter, originally created for my home alarm clock. pi-fm-player continuously transmits MP3s stored locally, in a random order, on the FM frequency of your choice. Hardware Setup Connect a 20cm/8in single-conductor wire to GPIO 4 (which is pin 7 on header P1) to act as an antenna. Install & Configure On the Raspberry Pi: - Place the pifm directory from this repo at a location of your choosing. - I placed it in /opt on my Raspberry Pi. - You may wish to adjust file permissions if installing it in /opt or similar. I did this by running sudo chown -R root:root /opt/pifm . - Put MP3 files in a directory of your choice. - I'm using Syncthing to sync music to /Music on my Pi. - Setup pifm-player.service , the systemd service which runs the transmitter. - First, customize pifm-player.service . - Set the environment variables MUSIC DIR and PIFM BIN to point to the music directory and the pifm binary on your system. - Set the variable PIFM FREQ to change to a different FM frequency. - sudo mv pifm-player.service /etc/systemd/system/ - sudo chmod 0644 /etc/systemd/system/pifm-player.service - Finally, enable and run the transmitter service: - sudo systemctl enable pifm-player.service - sudo systemctl start pifm-player.service Logs Is it working? What was playing at some point in the past? Monitoring You can use runner and an Uptime Kuma push monitor to get alerted if/when the pi-fm service fails. After installing runner , put the","default_branch":null,"files":null,"tree":[],"storefront":"/r/cdzombak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cdzombak/pi-fm-player/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}