• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-PrayerTime

Scheduled Pinned Locked Moved Education
55 Posts 14 Posters 35.0k Views 14 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    slametps
    last edited by slametps Mar 12, 2017, 1:17 PM Mar 12, 2017, 1:04 PM

    Description:

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

    Download:

    [card:slametps/MMM-PrayerTime]

    Screenshot

    0_1489323853205_screenshot.png

    Initial Version

    regards,

    Slamet PS

    A Z 2 Replies Last reply Mar 15, 2017, 11:16 AM Reply Quote 1
    • A Offline
      AAPS @slametps
      last edited by Mar 15, 2017, 11:16 AM

      @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. :grinning:

      S 1 Reply Last reply Mar 15, 2017, 11:47 AM Reply Quote 0
      • S Offline
        slametps @AAPS
        last edited by Mar 15, 2017, 11:47 AM

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

        playAdzan: [],
        

        regards,

        Slamet PS

        A 1 Reply Last reply Mar 15, 2017, 1:00 PM Reply Quote 0
        • A Offline
          AAPS @slametps
          last edited by Mar 15, 2017, 1:00 PM

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

          1 Reply Last reply Reply Quote 0
          • Z Offline
            zzaidi148 @slametps
            last edited by Nov 4, 2017, 2:02 PM

            @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
            				}
            		},
            
            Y 1 Reply Last reply Nov 5, 2017, 7:27 AM Reply Quote 0
            • Y Offline
              yawns Moderator @zzaidi148
              last edited by Nov 5, 2017, 7:27 AM

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

              Z 1 Reply Last reply Nov 5, 2017, 2:14 PM Reply Quote 0
              • Z Offline
                zzaidi148 @yawns
                last edited by Nov 5, 2017, 2:14 PM

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

                S 1 Reply Last reply Nov 5, 2017, 3:47 PM Reply Quote 0
                • S Offline
                  slametps @zzaidi148
                  last edited by Nov 5, 2017, 3:47 PM

                  @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?

                  regards,

                  Slamet PS

                  Z 1 Reply Last reply Nov 6, 2017, 3:12 AM Reply Quote 0
                  • N Offline
                    noorm91
                    last edited by yawns Nov 6, 2017, 9:03 AM Nov 5, 2017, 10:18 PM

                    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?

                    S 1 Reply Last reply Nov 5, 2017, 11:05 PM Reply Quote 0
                    • S Offline
                      slametps @noorm91
                      last edited by yawns Nov 6, 2017, 9:04 AM Nov 5, 2017, 11:05 PM

                      @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'.

                      regards,

                      Slamet PS

                      J 1 Reply Last reply Jan 21, 2020, 6:48 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 1 / 6
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy