How asmaklad/mmm-prayertime works
MMM-PrayerTime is a MagicMirror module that fetches prayer times, presents today’s and optionally tomorrow’s schedule, and can announce selected prayer times. Its main flow runs from the MagicMirror module through a Node helper to the prayer-times API and back; the module then prepares schedules and triggers display alerts or audio playback. Configuration also covers calculation methods, time formats, and display choices. Telegram-related code is visible in the frontend excerpt, but its backend behavior is not shown, so that integration is represented as unverified.
Main entry points: MMM-PrayerTime.js PrayerTime module · node_helper.js Node helper · res Adhan audio files
Components 10
Prayer schedules
- PrayerTime module
MMM-PrayerTime.js - Node helper
node_helper.js - Prayer schedules
MMM-PrayerTime.js
Display and alerts
- Schedule display
MMM-PrayerTime.js - Adhan alert trigger
MMM-PrayerTime.js - Telegram alert
MMM-PrayerTime.js
Audio announcements
- Audio playback
node_helper.js - Adhan audio files
res
Other components
- MagicMirror host
- Prayer-time API
Connections 11
- MagicMirror host → PrayerTime module: hosts module
README.md - PrayerTime module → Node helper: requests fetch
MMM-PrayerTime.js - Node helper → Prayer-time API: fetches timings
node_helper.js - Node helper → PrayerTime module: returns timings
node_helper.js - PrayerTime module → Prayer schedules: processes timings
MMM-PrayerTime.js - PrayerTime module → Schedule display: renders schedule
MMM-PrayerTime.js - PrayerTime module → Adhan alert trigger: sends alert
MMM-PrayerTime.js - PrayerTime module → Node helper: requests playback
MMM-PrayerTime.js - Node helper → Audio playback: runs player
node_helper.js - Audio playback → Adhan audio files: plays audio
node_helper.js - PrayerTime module → Telegram alert: requests notification
MMM-PrayerTime.js