Releases: htilburgs/MMM-MyPrayerTimes
v2.0
Update node_helper.js
Nodejs Request
As of Feb 11th 2020, request is fully deprecated. No new changes are expected land. In fact, none have landed for some time.
Rewrite node_helper.js
Because nodejs request
has been deprecated, I've updated the node_helper.js to nodejs fetch
This is done to preserve issues with the request module.
Added Time Offset (mptOffset)
The mathematical side of how the calculation should work is generally agreed upon in the Islamic world. Then again, this is an assumption I am making based on the number of countries that use the angle based calculation (and please note that I am not religiously or formally qualified and am providing this information with absolute humility in the hope that it may be useful). However, based on location, government preferences, and other 'factors', there are differences in the methods that produce, sometimes, a substantial variation in timings. If the mathematical side interests you, have a look at this excellent explanation: http://praytimes.org/wiki/Prayer_Times_Calculation.
A calculation method is typically made up of the following:
The Fajr Angle
The Maghrib Angle or minutes after sunset that Maghrib should be
The Isha Angle or minutes after Maghrib that Isha should be
The AlAdhan API has default values for all 3, and most methods only specifically specify Fajr and Isha.
Most countries adhere to one of the above methods, and they then tune the timings further, by adding a few minutes here and there, based on criteria that may seem completely arbitrary. So, even if you use the Gulf Region method and compare the timings to Dubai's IACAD or the UAE's Awqaf, you will see a couple of minutes differing. Usually this difference can be anywhere from 1 to 5 minutes.
The mptOffset option gives the posibility to modify the differences.
Language support (Translations)
Added language support (translations) to MMM-MyPrayerTimes
- add translations
- update README.md
- update MMM-MyPrayerTimes.js
Add Imsak
12/24 hour clock
Update: Add option for 24 hour or 12 hour clock
Update header
Update MMM-MyPrayerTimes.js
- Header was not shown due to incorrect programming.
Update classes
Update MMM-MyPrayerTimes.js
- Add classes to all the Table Cells
Update MMM-MyPrayerTimes.css
- Add classes for all the Table Cells
Initial release
Initial release of the MMM-MyPrayerTimes module