Read the statement by Michael Teeuw here.
Module installing problem
-
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
-
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
-
@mykle1 thanks for the help
-
@mykle1 it worked but i still dont understand about the timezone, mind giving me an example ?
-
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",
-
@mykle1 i understand now, many thanks for helping me
-
You’re welcome, mate. :thumbsup:
-
@mykle1 The time different is huge like 40 minutes different. i think the issue is due to the summer/sinter time.