You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+19-19
Original file line number
Diff line number
Diff line change
@@ -12,30 +12,23 @@ This projects uses a python script which automatically calculates [adhan](https:
12
12
1. Install git: Go to raspberry pi terminal (command line interface) and install `git`
13
13
*`$ sudo apt-get install git`
14
14
2. Clone repo: Clone this repository on your raspberry pi in your `home` directory. (Tip: run `$ cd ~` to go to your home directory)
15
-
*`$ git clone git@github.com:achaudhry/adhan.git`
15
+
*`$ git clone <get repo clone url from github and put it here>`
16
16
* After doing that you should see an `adhan` direcotry in your `home` directory.
17
-
3. Go into `adhan` directory: `$cd adhan`
18
-
4. Open `updateAzaanTimers.py` in your favorite editor. For instance, `nano` is a simple one: `$ nano updateAzaanTimers.py`
19
17
20
-
## Configuration
21
-
The original python script is super configurable. Please see the [manual](http://praytimes.org/manual) for advanced instructions. However, below are the three basic things you'll need to change to get it up and running.
18
+
## Run it for the first time
19
+
Run this command:
22
20
23
-
* Set the latitude and longitude so it can calculate accurate prayer times for that location. Modify the following lines:
24
-
```
25
-
#Set latitude and longitude here
26
-
#--------------------
27
-
lat = 42.3601
28
-
long = -71.0589
29
-
```
30
-
* Set adhan time [calculation method](http://praytimes.org/manual#Set_Calculation_Method). Modify the following line:
If you look at the last few lines, you'll see that 5 adhan times have been scheduled. Then there is another line at the end which makes sure that at 1am every day the same script will run and calculate adhan times for that day. And lastly, there is a line to clear logs on a monthly basis so that your log file doesn't grow too big.
55
48
49
+
Note that for later runs you do not have to supply any arguments as they are saved in `/home/pi/adhan/.settings`.
50
+
56
51
VOILA! You're done!! Plug in your speakers and enjoy!
57
52
53
+
Please see the [manual](http://praytimes.org/manual) for advanced configuration instructions.
54
+
55
+
There are 2 additional arguments that are optional, you can set them in the first run or
56
+
further runs: `--fajr-azaan-volume` and `azaan-volume`. You can control the volume of the Azaan
57
+
by supplying numbers in millibels. To get more information on how to select the values, run the command with `-h`.
58
+
58
59
## Tips:
59
60
1. You can see your currently scheduled jobs by running `crontab -l`
60
61
2. The output of the job that runs at 1am every night is being captured in `/home/pi/adhan/adhan.log`. This way you can keep track of all successful runs and any potential issues. This file will be truncated at midnight on the forst day of each month. To view the output type `$ cat /home/pi/adhan/adhan.log`
@@ -64,4 +65,3 @@ I have made modifications / bug fixes but I've used the following as starting po
64
65
* Python code to calculate adhan times: http://praytimes.org/code/
65
66
* Basic code to turn the above into an adhan clock: http://randomconsultant.blogspot.co.uk/2013/07/turn-your-raspberry-pi-into-azaanprayer.html
0 commit comments