@Mykle1 - thanks for this guide. I promise I’ve studied it through and read the additional helpful comments that other contributors have made. However, I’ve having trouble adding the MMM-PrayerTime module to config.js. When I add the module and MM restarts, it shows blank and an error telling me to create a config file. Grateful for pointers on where I’m going wrong (please see code below. I’ve hidden any personal information). Thanks.
To note that without the entry to the MMM-PrayerTime module added to config.js Magic Mirror runs fine with the other modules.
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
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: xx.xxxxxxx, // latitude of your position (city)
lon: -x.xxxxxxx, // longitude of your position (city)
timezone: Europe/London, // 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: config.language,
showAdzanAlert: true,
showTomorrow: true,
vertical: true, // set false for horizontal view
alertTimer: 15000
}
},
{
module: "calendar",
header: "UK Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check",
url: "webcal://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics" }
]
}
},
{
module: "currentweather",
position: "top_right",
config: {
location: "London",
locationID: "2643743", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "London",
locationID: "2643743", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
},
{
title: "BBC World News",
url: "http://feeds.bbci.co.uk/news/world/rss.xml"
},
{
title: "Reddit",
url: "https://www.reddit.com/r/worldnews/.rss"
},
{
title: "Buzzfeed",
url: "https://www.buzzfeed.com/world.xml"
},
{
title: "Al Jazeera",
url: "http://www.aljazeera.com/xml/rss/all.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
]
};