Skip to content

Friday surah baqarah#12

Open
rehanhaider wants to merge 11 commits intoachaudhry:masterfrom
rehanhaider:fridaySurahBaqarah
Open

Friday surah baqarah#12
rehanhaider wants to merge 11 commits intoachaudhry:masterfrom
rehanhaider:fridaySurahBaqarah

Conversation

@rehanhaider
Copy link

  1. Arranged the app in a more modular fashion
  2. Changed the config management to the python standard ConfigParser library
  3. Added an option through "settings.ini" to play Surah Baqarah on Fridays

…guration instead of the custom method being used currently

2. Replaced the mergeArgs() with getConfig() method to
	a. First check if mandatory arguments, lat, lon, method are stored in settings.ini
	b. If not, look at the args provided during startup
	c. Set the args and return it
3. Changed job commands to make it fully compatible with python3
4. Improved the formatting of output to be more descriptive
5. Added a method to play surah baqarah on fridays as 8 am
6. Updated README
@achaudhry
Copy link
Owner

I just merged a PR that was created prior to yours which has created some conflicts. Could you please resolve conflicts and re-submit the PR? Thanks!

@rehanhaider
Copy link
Author

Have resolved the conflicts now.

@@ -0,0 +1,21 @@
# MIT License

**Copyright (c) 2021 justgoodin**
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's is justgoodin? and why are we copyrighting this to it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated it using GitHub's license generator to make it fully permissive. Somehow they added this, I didn't notice.

parser.add_argument('--lat', type=float, dest='lat',
help='Latitude of the location, for example 30.345621')
parser.add_argument('--lng', type=float, dest='lng',
parser.add_argument('--lon', type=float, dest='lon',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we call it long? I believe lat/long is the usually the standard.

Also, could you update run it for the first time section in README to match this? I think it still says lng

}


# Setup Surah Baqarah on Fridays
Copy link
Owner

@achaudhry achaudhry Jul 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Playing Surah Barqah at 8am on Friday seems like a super specific requirement. I'm not sure how many people, esp the ones in Western countries, would benefit from this feature.

I would like to keep this project simple and only make it an Azaan player. I would suggest creating a separate script for playing surahs? People who wish to play surahs can install it separately and run both scripts on their raspberry pis. Thoughts?

Copy link
Author

@rehanhaider rehanhaider Jul 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is disabled by default, but makes sense. It will unnecessarily increase the size of the download as well.

@achaudhry
Copy link
Owner

Happy to merge most of your changes but not convinced that we should add the Surah Baqrah feature. See my comments inline. Thanks!

@rehanhaider
Copy link
Author

rehanhaider commented Jul 15, 2021 via email

@achaudhry
Copy link
Owner

Are you sure brother? You did a lot of work and I'd hate to not incorporate it. If you want to take out the Surah Baqrah part, I'm more than happy to merge the rest of it.

@rehanhaider
Copy link
Author

Nah it's OK, my OCD made me organise this a bit better, but I didn't change any functionality so continue working seamlessly for everyone.

I'll continue using my own fork with customisations I made as per my need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants