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-RandomQuranAyah

    Scheduled Pinned Locked Moved Education
    34 Posts 7 Posters 23.9k Views 7 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 Offline
      slametps @zam
      last edited by

      @zam said in MMM-RandomQuranAyah:

      Jazakallah , if you can please try to implement a Module for ADAN it will be very usefull :)

      @zam It is available now, MMM-PrayerTime for displaying praying time with adhan recital.

      regards,

      Slamet PS

      zamZ G 2 Replies Last reply Reply Quote 1
      • zamZ Offline
        zam @slametps
        last edited by

        @slametps Wonderfull Let me try first , Sukran Jaseelan :)

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

          @zam you’re welcome.

          regards,

          Slamet PS

          Z 1 Reply Last reply Reply Quote 0
          • Z Offline
            zzaidi148 @slametps
            last edited by

            @slametps I tried setting up this module put it doesnt allow my magic mirror to work. I downloaded the module, put the config in my config.js and got a failed config. I put it in jshint and found nothing. Below is my config. Please help. Thank You.

            modules: [
            		{
            		module: 'MMM-RandomQuranAyah',
            		position: 'top_bar',	
            		config: {
            			apiVersion: '1.0' /
            			showArabic: true,
            			showTranslation: true,
            			surahArabicName:false,
            			translationLang:'id.indonesian',
            			updateInterval: 3600 * 1000, 
            		}
            		},
            		{
            			module: "alert",
            		},
            
            		{
            			module: "updatenotification",
            			position: "top_bar",
            		},
            
            		{
            			module: "clock",
            			position: "top_left",
            		},
            
            
            slametpsS 1 Reply Last reply Reply Quote 0
            • slametpsS Offline
              slametps @zzaidi148
              last edited by

              @zzaidi148 said in MMM-RandomQuranAyah:

              @slametps I tried setting up this module put it doesnt allow my magic mirror to work. I downloaded the module, put the config in my config.js and got a failed config. I put it in jshint and found nothing. Below is my config. Please help. Thank You.

              modules: [
              		{
              		module: 'MMM-RandomQuranAyah',
              		position: 'top_bar',	
              		config: {
              			apiVersion: '1.0' /
              			showArabic: true,
              			showTranslation: true,
              			surahArabicName:false,
              			translationLang:'id.indonesian',
              			updateInterval: 3600 * 1000, 
              		}
              		},
              		{
              			module: "alert",
              		},
              
              		{
              			module: "updatenotification",
              			position: "top_bar",
              		},
              
              		{
              			module: "clock",
              			position: "top_left",
              		},
              
              

              You should remove update_notification module (or change the location) because it override the same location.

              regards,

              Slamet PS

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                zzaidi148 @slametps
                last edited by

                @slametps Tried that but still didn’t load up magic mirror

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

                  @zzaidi148 said in MMM-RandomQuranAyah:

                  @slametps Tried that but still didn’t load up magic mirror

                  Can you post the pm2 or MM log?

                  regards,

                  Slamet PS

                  Z 1 Reply Last reply Reply Quote 0
                  • Z Offline
                    zzaidi148 @slametps
                    last edited by

                    @slametps I’m a noob at this but this is the log on my terminal:

                    > magicmirror@2.1.3 start /home/pi/MagicMirror
                    > sh run-start.sh
                    
                    Starting MagicMirror: v2.1.3
                    Loading config ...
                    WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
                    Loading module helpers ...
                    Initializing new module helper ...
                    Module helper loaded: updatenotification
                    No helper found for module: helloworld.
                    All module helpers loaded.
                    Starting server on port 8080 ... 
                    Server started ...
                    Connecting socket for: updatenotification
                    Sockets connected & modules started ...
                    Launching application.
                    
                    
                    slametpsS 1 Reply Last reply Reply Quote 0
                    • slametpsS Offline
                      slametps @zzaidi148
                      last edited by

                      @zzaidi148 said in MMM-RandomQuranAyah:

                      @slametps I’m a noob at this but this is the log on my terminal:

                      > magicmirror@2.1.3 start /home/pi/MagicMirror
                      > sh run-start.sh
                      
                      Starting MagicMirror: v2.1.3
                      Loading config ...
                      WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
                      Loading module helpers ...
                      Initializing new module helper ...
                      Module helper loaded: updatenotification
                      No helper found for module: helloworld.
                      All module helpers loaded.
                      Starting server on port 8080 ... 
                      Server started ...
                      Connecting socket for: updatenotification
                      Sockets connected & modules started ...
                      Launching application.
                      
                      

                      What you got on the screen? Pls post the screen capture here.

                      regards,

                      Slamet PS

                      Z 1 Reply Last reply Reply Quote 0
                      • Z Offline
                        zzaidi148 @slametps
                        last edited by

                        @slametps it just said to recheck your config

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

                          @zzaidi148 said in MMM-RandomQuranAyah:

                          @slametps it just said to recheck your config

                          Can you post your whole config? It seems your config is the problem.

                          regards,

                          Slamet PS

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

                            @slametps said in MMM-RandomQuranAyah:

                            @zzaidi148 said in MMM-RandomQuranAyah:

                            @slametps it just said to recheck your config

                            Can you post your whole config? It seems your config is the problem.

                            There is character / after config ApiVersion. Pls remove it.

                            regards,

                            Slamet PS

                            Z 1 Reply Last reply Reply Quote 0
                            • Z Offline
                              zzaidi148 @slametps
                              last edited by

                              @slametps I took the character off but still something wrong

                              /* 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: "en",
                              	timeFormat: 12,
                              	units: "imperial",
                              
                              	modules: [
                              		{
                              		module: 'MMM-RandomQuranAyah',
                              		position: 'top_bar',	
                              		config: {
                              			apiVersion: '1.0' 
                              			showArabic: true,
                              			showTranslation: true,
                              			surahArabicName:false,
                              			translationLang:'id.indonesian',
                              			updateInterval: 3600 * 1000, 
                              		}
                              		},
                              		{
                              			module: "alert",
                              		},
                              
                              		
                              		{
                              			module: "clock",
                              			position: "top_left",
                              		},
                              
                              		{
                              			module: "calendar",
                              			header: "US Holidays",
                              			position: "top_left",
                              			config: {
                              				calendars: [
                              					{
                              					symbol: "calendar-check-o",
                              					url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
                              					}
                              				]
                              			}
                              		},
                              		
                              		{
                              			module: "compliments",
                              			position: "lower_third",
                              		},
                              		
                              		{
                              			module: "currentweather",
                              			position: "top_right",
                              			config: {
                              				location: "Dallas",
                              				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
                              				appid: "private",
                              			}
                              		},
                              		
                              		{
                              			module: "weatherforecast",
                              			position: "top_right",
                              			header: "Weather Forecast",
                              			config: {
                              				location: "Dallas",
                              				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
                              				appid: "",
                              			}
                              		},
                              		{
                              			module: "newsfeed",
                              			position: "bottom_bar",
                              			config: {
                              				feeds: [
                              					{
                              						title: "New York Times",
                              						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                              					},
                              					{
                              						title: "ESPN",
                              						url: "http://www.espnfc.com/english-premier-league/23/rss"
                              					}
                              				],
                              				showSourceTitle: true,
                              				showPublishDate: true
                              			}
                              		},
                              		{
                                          	        module: 'MMM-GoogleMapsTraffic',
                              			position: 'top_left',
                                          		config: {
                                              	   key: '',
                                              	   lat: 33.033184,
                                              	   lng: -96.625225,
                                              	   height: '350px',
                                              	   width: '400px',
                                          	        }
                                      	},
                              		]
                              		};
                              
                              /*************** DO NOT EDIT THE LINE BELOW ***************/
                              if (typeof module !== "undefined") {module.exports = config;}
                              
                              
                              slametpsS 1 Reply Last reply Reply Quote 0
                              • slametpsS Offline
                                slametps @zzaidi148
                                last edited by

                                @zzaidi148 said in MMM-RandomQuranAyah:

                                @slametps I took the character off but still something wrong

                                /* 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: "en",
                                	timeFormat: 12,
                                	units: "imperial",
                                
                                	modules: [
                                		{
                                		module: 'MMM-RandomQuranAyah',
                                		position: 'top_bar',	
                                		config: {
                                			apiVersion: '1.0' 
                                			showArabic: true,
                                			showTranslation: true,
                                			surahArabicName:false,
                                			translationLang:'id.indonesian',
                                			updateInterval: 3600 * 1000, 
                                		}
                                		},
                                		{
                                			module: "alert",
                                		},
                                
                                		
                                		{
                                			module: "clock",
                                			position: "top_left",
                                		},
                                
                                		{
                                			module: "calendar",
                                			header: "US Holidays",
                                			position: "top_left",
                                			config: {
                                				calendars: [
                                					{
                                					symbol: "calendar-check-o",
                                					url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics",
                                					}
                                				]
                                			}
                                		},
                                		
                                		{
                                			module: "compliments",
                                			position: "lower_third",
                                		},
                                		
                                		{
                                			module: "currentweather",
                                			position: "top_right",
                                			config: {
                                				location: "Dallas",
                                				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
                                				appid: "private",
                                			}
                                		},
                                		
                                		{
                                			module: "weatherforecast",
                                			position: "top_right",
                                			header: "Weather Forecast",
                                			config: {
                                				location: "Dallas",
                                				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
                                				appid: "",
                                			}
                                		},
                                		{
                                			module: "newsfeed",
                                			position: "bottom_bar",
                                			config: {
                                				feeds: [
                                					{
                                						title: "New York Times",
                                						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                					},
                                					{
                                						title: "ESPN",
                                						url: "http://www.espnfc.com/english-premier-league/23/rss"
                                					}
                                				],
                                				showSourceTitle: true,
                                				showPublishDate: true
                                			}
                                		},
                                		{
                                            	        module: 'MMM-GoogleMapsTraffic',
                                			position: 'top_left',
                                            		config: {
                                                	   key: '',
                                                	   lat: 33.033184,
                                                	   lng: -96.625225,
                                                	   height: '350px',
                                                	   width: '400px',
                                            	        }
                                        	},
                                		]
                                		};
                                
                                /*************** DO NOT EDIT THE LINE BELOW ***************/
                                if (typeof module !== "undefined") {module.exports = config;}
                                
                                

                                There is missing character comma (,) after apiVersion: '1.0'.

                                regards,

                                Slamet PS

                                Z 1 Reply Last reply Reply Quote 0
                                • Z Offline
                                  zzaidi148 @slametps
                                  last edited by

                                  @slametps Alhumdulillah, actually worked! Is there any way to change the translation beside en.yusufali in english. Also, my arabic font is different from your screenshot. How do I get your arabic font? Thank you so much!

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

                                    @zzaidi148 said in MMM-RandomQuranAyah:

                                    @slametps Alhumdulillah, actually worked! Is there any way to change the translation beside en.yusufali in english. Also, my arabic font is different from your screenshot. How do I get your arabic font? Thank you so much!

                                    Complete translation option can be found at http://api.alquran.cloud/edition. My shot is a browser capture, not actual MM capture and the font is indeed different.
                                    Actual result is like this:
                                    https://www.instagram.com/p/BR43DnDgG_r/.

                                    regards,

                                    Slamet PS

                                    Z G 3 Replies Last reply Reply Quote 0
                                    • Z Offline
                                      zzaidi148 @slametps
                                      last edited by

                                      @slametps Thank You

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gxnfr Ali @slametps
                                        last edited by

                                        @slametps that is my confis.js file…but prayer module does not work…cn u tell me error in config.js file???

                                        /* Magic Mirror Config Sample
                                        *

                                        • By Michael Teeuw http://michaelteeuw.nl
                                        • MIT Licensed.
                                          */

                                        var config = {
                                        port: 8080,
                                        ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses.

                                        language: "en",
                                        timeFormat: 24,
                                        units: "metric",
                                        
                                        modules: [
                                        	{
                                        		module: "alert",
                                        	},
                                        	
                                        	{
                                        		module: "updatenotification",
                                        		position: "top_bar"
                                        	},
                                        	{
                                        	module: 'email',
                                                    position: 'bottom_left',
                                                    header: 'Email',
                                                    config: {
                                                        accounts: [
                                                           {
                                                                user: 'xxxxx@gmail.com',
                                                                password: 'xxxxx',
                                                                host: 'imap.gmail.com',
                                                                port: 993,
                                                                tls: true,
                                                                authTimeout: 10000,
                                                                numberOfEmails: 2,
                                                            },
                                                        ],
                                                        fade: true,
                                                        maxCharacters: 30
                                                    }
                                        	},
                                        	{
                                        		module: "clock",
                                        		position: "top_left"
                                        	},
                                        	{
                                        		module: "calendar",
                                        		header: "PK Holidays",
                                        		position: "top_left",
                                        		config: {
                                        			calendars: [
                                        				{
                                        					symbol: "calendar-check-o ",
                                        					url: "webcal://www.officeholidays.com/ics/ics_country_code.php?iso=PK"
                                        				}
                                        			]
                                        		}
                                        	},
                                        	{
                                        		module: "compliments",
                                        		position: "lower_third"
                                        	},
                                        	{
                                        		module: "currentweather",
                                        		position: "top_right",
                                        		config: {
                                        			location: "Dubai",
                                        			locationID: "1166547",  //ID from http://www.openweathermap.org/help/city_list.txt
                                        			appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
                                        		}
                                        	},
                                        	{
                                        		module: "weatherforecast",
                                        		position: "top_right",
                                        		header: "Weather Forecast",
                                        		config: {
                                        			location: "Dubai",
                                        			locationID: "1166547",  //ID from http://www.openweathermap.org/help/city_list.txt
                                        			appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                                        		}
                                        	},
                                        	{
                                        		module: 'MMM-PrayerTime',
                                        		position: 'top_left',
                                        		config: {
                                        			apiVersion: '1.0',
                                        			lat: '30.6612',
                                        			lon: '73.1086',
                                        			timezone: 'Asia/Karachi',
                                        			method: 4,
                                        			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
                                        			}
                                        	},
                                        	{
                                        		module: "newsfeed",
                                        		position: "bottom_bar",
                                        		config: {
                                        			feeds: [
                                        				{
                                        					title: "Pakistan News",
                                        					url: "https://news.google.com/news/rss/local?ned=en_pk&hl=en&gl=US"
                                        				}
                                        			],
                                        			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 Offline
                                          Gxnfr Ali @slametps
                                          last edited by

                                          @slametps
                                          WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.

                                          during prayer time module

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

                                            @Gxnfr-Ali said in MMM-RandomQuranAyah:

                                            @slametps
                                            WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.

                                            during prayer time module

                                            You can remove config item “language: config.language”. The module, by default using that config. It not working, you should try removing all modules config but PrayerTime.

                                            regards,

                                            Slamet PS

                                            G 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
                                            • 2 / 2
                                            • 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