The following are the instructions to set up a Raspberry Pi Smart Azan Clock with wired speakers in kiosk mode without attaching a monitor, keyboard or mouse to it ("headless setup").
- Get Required Hardware
- Raspberry Pi Kit
Download Software & Tools
Burn Raspberry Pi OS to SD Card using Etcher
After Etcher writes & verifies the card it'll eject it. Remove the card reader from your computer and insert it back in.
If your computer asks to format the card again click on Cancel/No. You'll now see a new drive on your computer named "Boot".
Connect to your WiFi
Add a new file named "wpa_supplicant.conf"
to the root folder of Boot Drive with the following content. (Use your WiFi credentials for ssid and psk.)
Add an empty file named "ssh"
to the root folder of Boot Drive.
Insert SD Card into RPi & power it on.
Connect using PuTTY
as the host name. If these don't work you'll have to find out RPi's IP address from your router manager.
Change default password
RPi's default username: pi
Run passwd command and follow the instructions.
Update all Raspberry Pi OS Packages to latest
sudo apt-get update
sudo apt-get upgrade
Update Chromium Browser to latest
sudo apt-get install chromium-browser
Set up kiosk mode on initial start up
sudo mkdir -p lxsession/LXDE-pi
sudo nano autostart
Copy & paste the following content to autostart file
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xset s off
@xset s noblank
@chromium-browser --noerrdialogs --disable-session-crashed-bubble --disable-infobars --kiosk https://smartazanclock.com/
Enable VNC and remote desktop to RPi (optional)
Select "Interfacing Options". Enable VNC and Finish.
You can connect to your RPi using RealVNC and see Smart Azan Clock in action.
You can add a bluetooth speaker, adjust device volume and change app settings directly on the device.
You can now go to smartazanclock.com
on any smartphone or computer that's on the same WiFi network
and update your Smart Azan Clock settings (location, azans & alarms).
You can also add smartazanclock.com
as an app to your smartphone home screen using your OS default browser; Chrome on Android phones, Safari on iPhones.
Alhamdulillah wa Shukrulillah!
Your Smart Azan Clock is ready.