achaudhry / adhan

Raspberry Pi Adhan Clock
39 stars 25 forks source link

Support configuration as script arguments #7

Closed hammady closed 4 years ago

hammady commented 4 years ago
hammady commented 4 years ago

Jazak Allah these are great enhancements. Thank you for taking the time to add these.

I left a few suggestions. One is a bug fix and the rest are minor updates. If you can make those updates that would be great. I'll merge once done.

Thanks again!

Jazana Wa'eyakom, I have addressed all of your comments. Please let me know if anything more is needed to merge this.

Zamy97 commented 4 years ago

I don't know if this would be the right spot to ask but let me know if not I'll remove this!

I am just playing with the praytimes.py and updateazantimer.py and instead of playing the audio on a pi, I am trying to run this in my local mac with the help of crontab but what is confusing me is how could I work around this command that is used for omxplayer to run the audio. omxplayer -o local /home/pi/adhan/Adhan-fajr.mp3 > /dev/null 2>&1 How could I work around that in order to be able to able to play the Adhan on my local machine?

Also, it seems as my jobs gets created on my local machine but the audio file never really plays.

Any tips or suggestions would be appreciated.

hammady commented 4 years ago

I don't know if this would be the right spot to ask but let me know if not I'll remove this!

I am just playing with the praytimes.py and updateazantimer.py and instead of playing the audio on a pi, I am trying to run this in my local mac with the help of crontab but what is confusing me is how could I work around this command that is used for omxplayer to run the audio. omxplayer -o local /home/pi/adhan/Adhan-fajr.mp3 > /dev/null 2>&1 How could I work around that in order to be able to able to play the Adhan on my local machine?

Also, it seems as my jobs gets created on my local machine but the audio file never really plays.

Any tips or suggestions would be appreciated.

@Zamy97 that's off topic, but my answer is that for macOS the preferred way to run timed jobs is launchd. Although cron is still supported, but it is not recommended, and I couldn't get it to run on my Mac.

achaudhry commented 4 years ago

Agreed with @hammady. @Zamy97 see my response on the issue you've created.

@hammady I'll look at the changes and merge them in tomorrow InshaAllah! Been busy with Eid and all :) Thanks for making the updates!

hammady commented 4 years ago

Agreed with @hammady. @Zamy97 see my response on the issue you've created.

@hammady I'll look at the changes and merge them in tomorrow InshaAllah! Been busy with Eid and all :) Thanks for making the updates!

@achaudhry let me know if you have questions so far to be able to merge.

achaudhry commented 4 years ago

@hammady sorry man, been extremely busy over the last few days but I haven't forgotten about this I promise :) Will look shortly. Thanks

hammady commented 4 years ago

@hammady sorry man, been extremely busy over the last few days but I haven't forgotten about this I promise :) Will look shortly. Thanks

Thanks @achaudhry, now #10 :)