بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ

Build Your Own Your Own Raspberry Pi SmartAzanClock

Step by Step Instructions (PC Version)


1. Get Required Hardware


2. Download Required Software


3. Burn Raspbian to SD Card using Etcher

After Etcher writes & verifies eject the card and insert back in. If your computer asks to format the card again click on Cancel or No.


4. Enter your WiFi information

Add "wpa_supplicant.conf" file to the root folder of Boot Drive. Use your WiFi credentials for ssid and psk.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
    ssid="YOUR_WIFI_NETWORK_NAME"
    psk="YOUR_WIFI_PASSWORD"
    key_mgmt=WPA-PSK
}


5. Enable SSH

Add an empty file named "ssh" to the root folder of Boot Drive.


6. Insert SD Card into RPi & plug it in.

Try connecting to raspberrypi.local. If this doesn't work you'll have to find out RPi's IP address from your router manager.


7. Change default password

RPi's default account is username: pi & password: raspberry. Run passwd command and follow the instructions.
passwd


8. Update all Raspbian Packages to latest

sudo apt-get update
sudo apt-get upgrade
sudo reboot


9. Update Chromium Browser to latest

sudo apt-get install chromium-browser


10. Update to the latest firmware (Kernel Version)

sudo rpi-update
sudo reboot


11. Remove desktop background image

Maybe this will save us some bits here and there.


12. Set up kiosk mode on initial start up

Update ~/.config/lxsession/LXDE-pi/autostart file.
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash
@point-rpi
@xset s off
@xset s noblank
@xset -dpms
@chromium-browser --noerrdialogs --disable-session-crashed-bubble --disable-infobars --kiosk https://smartazanclock.com/


13. Disable Bluetooth

Add this to /boot/config.txt
dtoverlay=pi3-disable-bt


14. Enable VNC

sudo raspi-config
Select "Interfacing Options". Enable VNC and Finish.

If you can hook up your RPi to a monitor via the HDMI port and also attach a mouse and a keyboard you can skip this step and do the rest directly on the RPi itself.


15. Connect via VNC or directly

  • Close warning dialogs.
  • Set Chromium as the default browser.
  • Remove unnecessary browser plugins.
  • Set https://smartazanclock.com/ as home page.
  • Quit VNC.

  • 16. Set Audio Output to 3.5mm headphone jack

    Advanced Options > Audio > Force 3.5mm headphone jack
    sudo raspi-config


    17. Increase RPi Volume so the whole house wakes up for Fajr!

    Set this manually to 81%.


    18. Remove all unnecessary software

    sudo apt-get remove --purge wolfram-engine realvnc-* libreoffice* geany greenfoot triggerhappy python-minecraftpi python3-thonny bluej nodered xpdf nuscratch scratch scratch2 sense-hat sonic-pi claws-mail claws-mail-i18n
    rm -rf ~/python_games
    sudo apt-get clean
    sudo apt-get autoremove


    19. If this is a gift for someone else clear browser cache

    This way it'll detect their location based on their IP on first load.


    20. Final Reboot. Alhamdulillah!

    sudo reboot
    Congratulations! You can now manage your azan settings & custom alarms through your phone (or computer) as long as you're on the same network.

    [email protected] © 2018