Hey,
I need a Python script which gets over Al Adhan API the prayer times annually saved as a JSON file. The script could run with a cronjob which check if the JSON file is available, if not it will download. If the file date year does not equal to the current year, it has to download the newest one. I can forward the URL for the JSON file.
From this JSON file it should parse the current date of the day and find the daily 5 prayer times. If one of the prayer time has been reached, it should play the Adhan audio file over command line and play other audio file(s) after X seconds/minutes.
There are 2 audio files for prayer times. 1. Fajr has his own audio file, all other 4 prayer times have same audio file. The audio file called „Dua“, which is played after X seconds after Adhan audio, is the same for all prayer times. After Dua audio has stopped, X minutes later a third audio has to play randomly from a folder 1 audio file.
Also a reminder audio has to play X minutes before it reach the prayer time too.
In the JSON file is also the hijri calendar available which has holiday entries. I need to list the important ones and an audio file has to be played X minutes before the date of holiday is reached.
I want to set some playing time for some audio files, lets say between 18:00-20:00, to play randomly or by list audio files. None of them should play twice before all of them from the folder has been played. This folder could have hundreds of audio files. Creating a list need to be automatically.
I will use LogitechMediaServer and the playing the audio over command line has to be friendly for it. I can forward the syntax in combination with vlc to play the audio files.
if you have any questions, feel free to ask.