
Automation · 2021 · intermediate · Personal IoT automation
Smart Azan Player
A Python automation that fetches local prayer times from the AlAdhan API and plays the Azan through a Google Home / Chromecast speaker on schedule.
A practical IoT automation that turns prayer-time APIs and Chromecast playback into a reliable daily routine.
Highlights
- AlAdhan API prayer-time retrieval
- Scheduled Google Home / Chromecast playback
- Temporary volume adjust and restore
The story
I built this because I wanted the daily Azan to play automatically through a smart speaker according to the correct local prayer times.
The application retrieves fresh prayer-time information from the AlAdhan API, schedules each event and communicates with a Google Home/Chromecast device.
It can temporarily adjust the device volume for playback and then restore it afterwards.
This is a comparatively small project, but it is a good example of software solving a specific real-life problem by combining an external API, scheduling and physical-device integration.
What this demonstrates
Python automation, external API integration, scheduling and IoT/device control with pychromecast.