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.6k 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.
    • 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
            • G Offline
              Gxnfr Ali @slametps
              last edited by

              @slametps
              hi

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

                @slametps i want add prayer module in our project…magicmirror

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

                  @Gxnfr-Ali said in MMM-RandomQuranAyah:

                  @slametps i want add prayer module in our project…magicmirror

                  What I ment earlier is disable all modules config except PrayerTime config to start debugging what made wrong if you’re sure that Prayer Time is the cause for your MM error. That is the only way to locate the error.

                  regards,

                  Slamet PS

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    hrjmsh
                    last edited by

                    Hi Slamet
                    I am having the following error on start up
                    Error: Cannot find module ‘async’
                    This makes the magic mirror go blank and disables keyboard commands. I disabled all other modules and corrected syntax errors in PrayerTime config lines as you described in previous posts.

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

                      @hrjmsh :
                      try install nodejs async module first:

                      npm install --save async
                      

                      regards,

                      Slamet PS

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        hrjmsh
                        last edited by

                        Working great. Jazak Allah. You are a star!

                        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