A menubar application for displaying the prayer times from your city.
- Actual times from any location
- Change the calculation method or custom the angles for Fajr and Isha prayers
- Create your own method by changing the times of the different prayers
- Show additional times like Imsak, Sunrise and Midnight
This application use the RESTful Prayer TImes API from Aladhan.
You can enter your location in the settings panel, just enter: CITY, COUNTRY.
You can use the full name of the country or just the alpha-2 code ISO 3166.
When using the geolocation button, a request is made to IPinfo.io API to be able to get the city and country of you location. An internet connection is required.
This app use the Free plan from ipinfo.io, and can access up to 50k request/month.
You can use the following shortcuts:
Ctrl or Cmd + Alt + P Global shortcut to show/hide the app
- You will need a TOKEN form IPinfo.io.
main.js
function geolocation () {
console.log('Fetch geolocation via IPinfo.io.')
// NOTE: Enter your TOKEN from IPinfo.io
const TOKEN = config.TOKEN
fetch(`https://ipinfo.io/json?token=${TOKEN}`)
.then(res => res.json())
.then(json => {
// console.log(json.ip, json.city, json.country)
store.setCityCountry(json.city, json.country)
})
.catch(err => console.log(err))
}
- node-fetch v2.x is used because the ES Modules is not in use in this app.
Contributions are welcomed !
- English