MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MMM-PrayerTime



  • Description:

    A MM-module to display moslem praying time from https://aladhan.com.

    Download:

    Screenshot

    0_1489323853205_screenshot.png

    Initial Version



  • @slametps While looking at this on GitHub, it seems like it plays Adhan as well. Is this correct? If so, could I make it not play Adhan, or does it come standard with the module?
    I’ve been looking for a module like this since I started. Thank you. 😀



  • @AAPS you can set config playAdzan as following to tell module NOT to play adzan:

    playAdzan: [],
    


  • @slametps Thanks! This’ll work much better than the calendar method.



  • @slametps Thank you for making this module. I just wanted to ask you why my config wouldn’t validate. I am in central north america. This is my config:

    {
    			module: 'MMM-PrayerTime',
    			position: 'bottom_right',	
    			config: {
    			apiVersion: '1.0' 
    			lat: 38.033184, 
    			lon: -86.625225, 
    			timezone: true, 
    			method: 5,
    			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
    			notDisplayed: ['midnight', 'sunset'],
    			useUpdateInterval: true,
    			updateInterval: 86400 * 1000, 
    			animationSpeed: 2.5 * 1000, 
    			language: config.language,
    			showAdzanAlert: true,
    			alertTimer: 15000
    				}
    		},
    

  • Moderator

    @zzaidi148
    There is a comma missing after apiVersion: '1.0'



  • @yawns tried that but didn’t work. I think it has to be something with the timezone.



  • @zzaidi148 said in MMM-PrayerTime:

    @yawns tried that but didn’t work. I think it has to be something with the timezone.

    There is a missing comma after apiVersion: '1.0'. What does not work? What you get on your mirror? Or in pm/mm log?



  • I am having trouble with my module…

    {
                            module: 'MMM-PrayerTime',
                            position: 'bottom_right',
                            config: {
                                    apiVersion: '1.0',
                                    lat: 55.841727,
                                    lon: 13.303381,
                                    timezone: Europe/Stockholm,
                                    method: 3,
                                    playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                    notDisplayed: ['midnight', 'sunset'],
                                    useUpdateInterval: true,
                                    updateInterval: 86400 * 1000,
                                    animationSpeed: 2.5 * 1000,
                                    language: config.language,
                                    showAdzanAlert: true,
                                    alertTimer: 15000
                                    }
                    },
    

    can you see anything wrong?



  • @noorm91 said in MMM-PrayerTime:

    I am having trouble with my module…

    {
                           module: 'MMM-PrayerTime',
                           position: 'bottom_right',
                           config: {
                                   apiVersion: '1.0',
                                   lat: 55.841727,
                                   lon: 13.303381,
                                   timezone: Europe/Stockholm,
                                   method: 3,
                                   playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                   notDisplayed: ['midnight', 'sunset'],
                                   useUpdateInterval: true,
                                   updateInterval: 86400 * 1000,
                                   animationSpeed: 2.5 * 1000,
                                   language: config.language,
                                   showAdzanAlert: true,
                                   alertTimer: 15000
                                   }
                   },
    

    can you see anything wrong?

    It should be timezone: 'Europe/Stockholm'.