Closed hammady closed 3 years ago
@achaudhry any chance to review this? I'm using it since then with no problems.
Yes I'm so sorry to sit on this for so long. Been extremely busy so never got around to it. I'll review/test this in the next couple of days tops.
This completely fell off my radar. Just merged it!
lol better late than never 😅 Eid Mubarak!
Sometimes it is needed to run custom commands either before, after or before and after playing adhan. For example, if you have Quran playing continuously, you would want to pause and resume the playback. Another example, is to set your status on a social network, or a calendar, to block/unblock the Internet using pi.hole rules, ... etc.
You can easily do this by adding scripts in the following directories:
before-hooks.d
: Scripts to run before adhan playbackafter-hooks.d
: Scripts to run after adhan playbackExample:
To pause/resume Quran playback if using the RPi_QuranSpeaker project, place the following in a new file (e.g.
01-pause-quran-speaker.sh
) under the above 2 directories:Do not forget to make the scripts executable: