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 55.9k 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.
    • slametpsS
      slametps @danialothman
      last edited by

      @danialothman said in MMM-PrayerTime:

      @zzaidi148 @slametps

      does the MMM-PrayerTime still work??

      I am trying to set it up but fail to get anything.

      yeah, of course. mine is running. if you got trouble running this module, try install async module.

      npm install async
      

      regards,

      Slamet PS

      D 1 Reply Last reply
      Reply Quote 0
      • D
        danialothman @slametps
        last edited by

        @slametps my apologies,

        yes it does work. Thank you for building this.

        there were some missing commas in your module page, which I overlooked.

        In case anyone from Brunei, you can use the below:

        {
        		module: "MMM-PrayerTime",
        		position: "top_left",
        		config: {
        			apiVersion: "1.0",
        			lat: 4.5353, 
        			lon: 114.7277,
        			timezone: "Asia/Brunei", 
        			timeFormat: 24,
        			method: 3,
        			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
        			notDisplayed: ['midnight', 'sunset'],
        			useUpdateInterval: true,
        			updateInterval: 86400 * 1000,
        			animationSpeed: 2.5 * 1000,
        			language: "en",
        			showAdzanAlert: true,
        			alertTimer: 15000
        		}
        	}
        
        slametpsS 1 Reply Last reply
        Reply Quote 0
        • slametpsS
          slametps @danialothman
          last edited by slametps

          @danialothman thx for correction. I fixed the info in the github.

          @zzaidi148 said in MMM-PrayerTime:

          @slametps Thank you so much! How do I do that?

          go to MMM-PrayerTime folder and run:

          git pull
          

          regards,

          Slamet PS

          1 Reply Last reply
          Reply Quote 0
          • A
            aishaamila @noorm91
            last edited by

            @noorm91 Hello, do you know why during prayer time, azan is not playing? Is there anything i need to add ?

            A 1 Reply Last reply
            Reply Quote 0
            • A
              aishaamila @aishaamila
              last edited by

              @aishaamila Or anyone who knows it?

              slametpsS 1 Reply Last reply
              Reply Quote 0
              • slametpsS
                slametps @aishaamila
                last edited by

                @aishaamila said in MMM-PrayerTime:

                @aishaamila Or anyone who knows it?

                What is your MM hardware and config?

                regards,

                Slamet PS

                slametpsS 1 Reply Last reply
                Reply Quote 0
                • slametpsS
                  slametps @slametps
                  last edited by

                  Adzan is played at server side (rpi) by omxplayer. You have to install omxplayer.

                  regards,

                  Slamet PS

                  A 1 Reply Last reply
                  Reply Quote 0
                  • A
                    aishaamila @slametps
                    last edited by

                    @slametps I try to play the adzan using /usr/bin/omxplayer -o hdmi modules/MMM-PrayerTime/res/adzan.mp3 and it played… Do i still need to install the omxplayer?

                    slametpsS 1 Reply Last reply
                    Reply Quote 0
                    • slametpsS
                      slametps @aishaamila
                      last edited by

                      @aishaamila can you post your config?

                      regards,

                      Slamet PS

                      A 2 Replies Last reply
                      Reply Quote 0
                      • A
                        aishaamila @slametps
                        last edited by

                        @aishaamila But i need to change hdmi to local, i wil send it when i get home… Thank you so much

                        slametpsS 1 Reply Last reply
                        Reply Quote 0
                        • A
                          aishaamila @slametps
                          last edited by yawns

                          @slametps do i need to change something?

                           {
                          		module: "MMM-PrayerTime",
                          		position: "top_left",
                          		config: {
                          			apiVersion: "1.0",
                          			lat: 2.1484105, 
                          			lon: 102.7285677,
                          			timezone: "Asia/Kuala Lumpur", 
                          			timeFormat: 24,
                          			method: 4,
                          			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                          			notDisplayed: ['midnight', 'sunset'],
                          			useUpdateInterval: true,
                          			updateInterval: 86400 * 1000,
                          			animationSpeed: 2.5 * 1000,
                          			showAdzanAlert: true,
                          			alertTimer: 15000
                          		}
                          	}
                          
                          slametpsS 1 Reply Last reply
                          Reply Quote 0
                          • slametpsS
                            slametps @aishaamila
                            last edited by

                            @aishaamila

                            timezone: "Asia/Kuala_Lumpur", 
                            

                            regards,

                            Slamet PS

                            slametpsS 1 Reply Last reply
                            Reply Quote 0
                            • slametpsS
                              slametps @aishaamila
                              last edited by

                              @aishaamila said in MMM-PrayerTime:

                              @aishaamila But i need to change hdmi to local, i wil send it when i get home… Thank you so much

                              What do you mean by “need to change hdmi to local”? Audio output using “-o hdmi” option by omxplayer is output to monitor/TV via HDMI line.

                              regards,

                              Slamet PS

                              A 1 Reply Last reply
                              Reply Quote 0
                              • slametpsS
                                slametps @slametps
                                last edited by

                                @slametps said in MMM-PrayerTime:

                                @aishaamila

                                timezone: "Asia/Kuala_Lumpur", 
                                

                                As described in http://php.net/manual/en/timezones.asia.php.

                                regards,

                                Slamet PS

                                A 2 Replies Last reply
                                Reply Quote 0
                                • A
                                  aishaamila @slametps
                                  last edited by

                                  @slametps /usr/bin/omxplayer -o local modules/MMM-PrayerTime/res/adzan.mp3

                                  I use this command to play the adzan and it worked, but during the time it didnt played. That’s why I am confused.

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • A
                                    aishaamila @slametps
                                    last edited by

                                    @slametps okay I will try this first thankyou so much

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • A
                                      aishaamila @slametps
                                      last edited by

                                      @slametps it still not working?is there any problem with time interval?

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • G
                                        govabm
                                        last edited by yawns

                                        Salam Aleykum,

                                        i need help for the config.

                                        thats my File:

                                        /* Magic Mirror Config Sample
                                         *
                                         * By Michael Teeuw http://michaelteeuw.nl
                                         * MIT Licensed.
                                         *
                                         * For more information how you can configurate this file
                                         * See https://github.com/MichMich/MagicMirror#configuration
                                         *
                                         */
                                        
                                        var config = {
                                        	address: "localhost", // Address to listen on, can be:
                                        	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                        	                      // - another specific IPv4/6 to listen on a specific interface
                                        	                      // - "", "0.0.0.0", "::" to listen on any interface
                                        	                      // Default, when address config is left out, is "localhost"
                                        	port: 8080,
                                        	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                        	                                                       // or add a specific IPv4 of 192.168.1.5 :
                                        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                        	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                                        
                                        	language: "de",
                                        	timeFormat: 24,
                                        	units: "metric",
                                        
                                        	modules: [
                                        		{
                                        		module:'MMM-PrayerTime',
                                        		position: 'top_right',
                                        		config: {
                                        			apiVersion: "1.0",
                                        			lat: 55.841727, 
                                        			lon: 13.303381,
                                        			timezone: 'Europe/Berlin', 
                                        			timeFormat: 24,
                                        			method: 3,
                                        			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                        			notDisplayed: ['midnight', 'sunset'],
                                        			useUpdateInterval: true,
                                        			updateInterval: 86400 * 1000,
                                        			animationSpeed: 2.5 * 1000,
                                        			language: "en",
                                        			showAdzanAlert: true,
                                        			alertTimer: 15000
                                        			}
                                        		},
                                        ]
                                        [
                                        		{
                                        			module: "alert",
                                        		},
                                        		{
                                        			module: "updatenotification",
                                        			position: "top_bar"
                                        		},
                                        		{
                                        			module: "clock",
                                        			position: "top_right"
                                        		},
                                        		{
                                        			module: "calendar",
                                        			header: "Ferien Deutschland",
                                        			position: "top_left",
                                        			config: {
                                        				calendars: [
                                        					{
                                        						symbol: "calendar-check-o ",
                                        						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                                        					}
                                        				]
                                        			}
                                        		},
                                        		{
                                        			module: "compliments",
                                        			position: "bottom_bar"
                                        		},
                                        		{
                                        			module: "currentweather",
                                        			position: "top_right",
                                        			config: {
                                        				location: "New York",
                                        				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
                                        				appid: "YOUR_OPENWEATHER_API_KEY"
                                        			}
                                        		},
                                        		{
                                        			module: "weatherforecast",
                                        			position: "top_right",
                                        			header: "Weather Forecast",
                                        			config: {
                                        				location: "New York",
                                        				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
                                        				appid: "YOUR_OPENWEATHER_API_KEY"
                                        			}
                                        		},
                                        		{
                                        			module: "newsfeed",
                                        			position: "bottom_bar",
                                        			config: {
                                        				feeds: [
                                        					{
                                        						title: "New York Times",
                                        						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                        					}
                                        				],
                                        				showSourceTitle: true,
                                        				showPublishDate: true
                                        			}
                                        		},
                                        	]
                                        
                                        };
                                        
                                        /*************** DO NOT EDIT THE LINE BELOW ***************/
                                        if (typeof module !== "undefined") {module.exports = config;}
                                        
                                        1 Reply Last reply
                                        Reply Quote 0
                                        • G
                                          govabm
                                          last edited by yawns

                                          sorry have a foult this is the file:

                                          /* Magic Mirror Config Sample
                                           *
                                           * By Michael Teeuw http://michaelteeuw.nl
                                           * MIT Licensed.
                                           *
                                           * For more information how you can configurate this file
                                           * See https://github.com/MichMich/MagicMirror#configuration
                                           *
                                           */
                                          
                                          var config = {
                                          	address: "localhost", // Address to listen on, can be:
                                          	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                          	                      // - another specific IPv4/6 to listen on a specific interface
                                          	                      // - "", "0.0.0.0", "::" to listen on any interface
                                          	                      // Default, when address config is left out, is "localhost"
                                          	port: 8080,
                                          	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                          	                                                       // or add a specific IPv4 of 192.168.1.5 :
                                          	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                          	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                          	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                                          
                                          	language: "de",
                                          	timeFormat: 24,
                                          	units: "metric",
                                          
                                          	modules: [
                                          		{
                                          		module:'MMM-PrayerTime',
                                          		position: 'top_right',
                                          		config: {
                                          			apiVersion: "1.0",
                                          			lat: 55.841727, 
                                          			lon: 13.303381,
                                          			timezone: 'Europe/Berlin', 
                                          			timeFormat: 24,
                                          			method: 3,
                                          			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
                                          			notDisplayed: ['midnight', 'sunset'],
                                          			useUpdateInterval: true,
                                          			updateInterval: 86400 * 1000,
                                          			animationSpeed: 2.5 * 1000,
                                          			language: "en",
                                          			showAdzanAlert: true,
                                          			alertTimer: 15000
                                          			}
                                          		},
                                          
                                          		{
                                          			module: "alert",
                                          		},
                                          		{
                                          			module: "updatenotification",
                                          			position: "top_bar"
                                          		},
                                          		{
                                          			module: "clock",
                                          			position: "top_right"
                                          		},
                                          		{
                                          			module: "calendar",
                                          			header: "Ferien Deutschland",
                                          			position: "top_left",
                                          			config: {
                                          				calendars: [
                                          					{
                                          						symbol: "calendar-check-o ",
                                          						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                                          					}
                                          				]
                                          			}
                                          		},
                                          		{
                                          			module: "compliments",
                                          			position: "bottom_bar"
                                          		},
                                          		{
                                          			module: "currentweather",
                                          			position: "top_right",
                                          			config: {
                                          				location: "New York",
                                          				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
                                          				appid: "YOUR_OPENWEATHER_API_KEY"
                                          			}
                                          		},
                                          		{
                                          			module: "weatherforecast",
                                          			position: "top_right",
                                          			header: "Weather Forecast",
                                          			config: {
                                          				location: "New York",
                                          				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
                                          				appid: "YOUR_OPENWEATHER_API_KEY"
                                          			}
                                          		},
                                          		{
                                          			module: "newsfeed",
                                          			position: "bottom_bar",
                                          			config: {
                                          				feeds: [
                                          					{
                                          						title: "New York Times",
                                          						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                          					}
                                          				],
                                          				showSourceTitle: true,
                                          				showPublishDate: true
                                          			}
                                          		},
                                          	]
                                          
                                          };
                                          
                                          /*************** DO NOT EDIT THE LINE BELOW ***************/
                                          if (typeof module !== "undefined") {module.exports = config;}
                                          

                                          the mirror works but i dont see the Modul

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • G
                                            govabm
                                            last edited by

                                            it works ! i think i have a Problem with the mm.sh data i have install complet new smart mirror to an SD now it Works

                                            Barakallhufeek

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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