This project turns a Raspberry Pi into an alternative to Radio Bilal. Once setup, it will play your selected live audio streams from livemasjid.com.
Moving the primary repo to Github
Latest: 26 Jan 2022 Release notes:
- Merged API into main code
- Added web interface
- Other bug fixes
Revision: 1.0 19th April 2021 Release notes:
- Added release notes
- Added API
- Added support for alternative ALSA audio devices in settings (still testing)
- Download setup.sh from the link above
bash setup.sh
- Install latest Raspbian Lite
- Setup Wifi and SSH
- Boot and SSH
sudo apt update && sudo apt install git python3 python3-pip ffmpeg ssh-client build-essential libsystemd-dev libasound-dev nginx
cd /opt/
sudo git clone [email protected]:Muslims-in-IT/ebilal.git
sudo chown -R pi:pi ebilal
cd ebilal
pip3 install -r requirements.txt
cp /opt/ebilal/settings_example.toml /opt/ebilal/settings.toml
sudo cp /opt/ebilal/other/*.service /lib/systemd/system/
sudo chmod 644 /lib/systemd/system/ebilal*
sudo systemctl daemon-reload
sudo systemctl enable ebilal.service
cd /var/www/html/
sudo ln -s /opt/ebilal/ebilal_web .
sudo cp /opt/ebilal/other/ebilal_site_nginx /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/ebilal_site_nginx /etc/nginx/sites-enabled/ebilal_site_nginx
sudo systemctl enable nginx
sudo systemctl start nginx
sudo systemctl start ebilal.service
- Visit http://ebilal.local on your browser
- Listen for audio, if none,
sudo systemctl status ebilal.service
- Modify settings.toml and update
MOUNTS=["activestream"]
to set streams to listen to (pick from livemasjid.com using the last word in the stream URL). e.g.MOUNTS=["greensidemasjid"]
- Audio device
audio_device=""
can be set to the value of the device name when runningsudo amixer
Default is "", other options to try: "PCM" or "Master"
sudo systemctl status ebilal.service
journalctl -u ebilal.service -f
cd /opt/ebilal
git reset --hard origin/master
(Note: this will override your settings.toml, so make a copy 1st)git pull
pip3 install -r requirements.txt
sudo systemctl restart ebilal.service
Try the new API here: http://ebilal.local:8000/docs (if hostname is ebilal)
Visit the alpha web interface by using your browser to visit the IP address of your Raspberry pi: http:///
If you're using the pimoroni:
curl https://get.pimoroni.com/phatbeat | bash
A docker image has been setup, usage: docker run -ti --rm -v /dev/snd:/dev/snd --privileged mitpeople/ebilal_pi0
Licensed under AGPL-3.0-or-later (or AGPL-3.0-only