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.

    Module installing problem

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 3 Posters 1.9k Views 3 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.
    • A Offline
      alpha waringga
      last edited by

      I have a problem to adding a module, i want to add MMM-Prayertime module, but i have a problem where to add it, everytime i try to add the module, the magicmirror wont read the config or show a message that something wrong with the config, please help

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @alpha waringga
        last edited by

        @alpha-waringga

        You’re entry should look like this. Enter your latitude and longitude where you see it in the code posted below. Also, change language: config.language, to your language. See below. And last, you need a comma to close the last curly quote. }, See below. You can copy and paste the code below and make the changes I have shown.

        {
        		module: 'MMM-PrayerTime',
        		position: 'top_left',	// This can be any of the regions. Best result is in the top_left/top_right.
        		config: {
        			apiVersion: '1.0', // please, leave unchanged. reserved for future use.
        			lat: 41.123456, // latitude of your position (city)
        			lon: -71.123456, // longitude of your position (city)
        			timezone: false, // please refer to http://php.net/manual/en/timezones.php
        			timeFormat: 24,
        			method: 5,
        			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
        			notDisplayed: ['midnight', 'sunset'],
        			useUpdateInterval: true,
        			updateInterval: 86400 * 1000, // How often do you want to fetch new praying time? (milliseconds)
        			animationSpeed: 2.5 * 1000, // Speed of the update animation. (milliseconds)
        			language: "en",
        			showAdzanAlert: true,
        			alertTimer: 15000
        		}
        	},
        

        Then take a moment to read this link that explains how to add modules to your config file.

        https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners

        Create a working config
        How to add modules

        A 2 Replies Last reply Reply Quote 1
        • A Offline
          alpha waringga @Mykle1
          last edited by

          @mykle1 thanks for the help

          1 Reply Last reply Reply Quote 0
          • A Offline
            alpha waringga @Mykle1
            last edited by

            @mykle1 it worked but i still dont understand about the timezone, mind giving me an example ?

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @alpha waringga
              last edited by

              @alpha-waringga

              The config entry itself tells you:

              timezone: false, // please refer to http://php.net/manual/en/timezones.php
              

              So, go to that site and find your location, and how it is written. In my case it would be America/New_York. I’m assuming the entry should now be:

              timezone: "America/New_York",
              

              ReadME = https://github.com/slametps/MMM-PrayerTime

              Create a working config
              How to add modules

              A 1 Reply Last reply Reply Quote 2
              • A Offline
                alpha waringga @Mykle1
                last edited by

                @mykle1 i understand now, many thanks for helping me

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @alpha waringga
                  last edited by

                  @alpha-waringga

                  You’re welcome, mate. :thumbsup:

                  Create a working config
                  How to add modules

                  3 1 Reply Last reply Reply Quote 0
                  • 3 Offline
                    3zq3mh @Mykle1
                    last edited by

                    @mykle1 The time different is huge like 40 minutes different. i think the issue is due to the summer/sinter time.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • 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