@sdetweil
config.js, minus private data.
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var config = {
port: 8080,
address:"0.0.0.0",
ipWhitelist: [],
//ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.1/120",],
language: 'en',
timeFormat: 24,
units: 'metric',
modules: [
{
module: 'alert',
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: 'clock',
position: 'top_left'
},
{
module: 'calendar',
header: 'Calendar',
position: 'top_left',
config: {
maximumEntries: 6, // Total Maximum Entries
maximumNumberOfDays: 365,
displaySymbol: true,
defaultSymbol: "calendar", // Fontawesome Symbol see http://fontawesome.io/cheatsheet/
displayRepeatingCountTitle: false,
defaultRepeatingCountTitle: "",
maxTitleLength: 30,
fetchInterval: 5 * 60 * 1000, // Update every 5 minutes.
animationSpeed: 2000,
fade: true,
showEnd: false,
urgency: 0,
timeFormat: "absolute",
dateFormat: "ddd Do MMMM",
getRelative: 0,
fadePoint: 0.50, // Start on 1/4th of the list.
hidePrivate: false,
calendars: [
{
symbol: 'calendar-check-o ',
url: 'https:/nnnnnnnnnnnnnnnnnnnnn/basic.ics'
}
],
}
},
{
module: 'calendar',
header: 'Binday',
position: 'bottom_left',
config: {
maximumEntries: 4, // Total Maximum Entries
maximumNumberOfDays: 365,
displaySymbol: true,
defaultSymbol: "calendar", // Fontawesome Symbol see http://fontawesome.io/cheatsheet/
displayRepeatingCountTitle: false,
defaultRepeatingCountTitle: "",
maxTitleLength: 30,
fetchInterval: 5 * 60 * 1000, // Update every 5 minutes.
animationSpeed: 2000,
fade: true,
showEnd: false,
urgency: 0,
timeFormat: "absolute",
dateFormat: "ddd Do MMMM",
getRelative: 0,
fadePoint: 0.50, // Start on 1/4th of the list.
hidePrivate: false,
calendars: [
{
symbol: 'trash-o ',
url: 'https:/nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn/basic.ics'
}
],
titleReplace: {
// "'s birthday": "",
// "Recycling": "Bins",
"Red Bin": "Red & Black Bins",
"Green Bin": "Green & Black Bins"
},
// Override start method.
start: function () {
Log.log("Starting module: " + this.name);
/* This code changed times to 24hr clock until April 17 system update.
** Set locale.
** if (config.language === 'en' && config.timeFormat == 24) {
** config.language = 'en-gb';
** }
** moment.locale(config.language);
*/
for (var c in this.config.calendars) {
var calendar = this.config.calendars[c];
calendar.url = calendar.url.replace("webcal://", "http://");
this.addCalendar(calendar.url, calendar.user, calendar.pass);
}
this.calendarData = {};
this.loaded = false;
},
}
},
{
module: 'compliments',
position: 'lower_third',
config: {
anytime: [
"A1",
"A2",
"A3"
],
morning: [
"M1",
"M2",
"M3"
],
afternoon: [
"N1",
"N2",
"N3"
],
evening: [
"E1",
"E2",
"E3"
]
},
updateInterval: 30000,
remoteFile: null,
fadeSpeed: 4000
/*config: {
remoteFile: 'compliments.json'
}*/
},
{
module: 'MMM-doomsDay',
position: 'top_center', // This can be any of the regions, best results in center regions
config: {
doomsDay: "2022-01-06 24:00:00", // YYYY-MM-DD HH:MM:SS, Do not alter the time, just the date
/* doomsDay: "2020-12-21 24:00:00", // YYYY-MM-DD HH:MM:SS, Do not alter the time, just the date */
toWhat: "today",
// See 'Configuration options' for more information.
}
},
{
module: 'currentweather',
header: 'Current weather for: ',
position: 'top_right',
config: {
location: 'nnnnnnnnnnnnnnnn,GB',
locationID: 'nnnn', //ID from http://www.openweathermap.org
appid: 'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn'
}
},
{
module: 'weatherforecast',
position: 'top_right',
header: 'Weather Forecast',
config: {
location: 'nnnnnn,GB',
locationID: 'nnnnnnn', //ID from http://www.openweathermap.org
appid: 'aaannnnnnnnnn'
}
},
{
module: 'MMM-MysqlQuery',
position: 'bottom_right',
header: 'Greenhouse Status',
config: {
connection: {
host: "192.168.1.23",
port: 3306,
user: "nnnnnnnnnnnnnnnn",
password: "nnnnnnnnnnnnnnnn",
database: "garage"
},
/* query: `select Temp-2
from readings
order by ID desc
limit 1`,
*/
query: "select Added, \
Temp, \
Pressure, \
Humidity \
from gh_readings \
order by ID \
desc limit 3",
intervalSeconds: 1 * 60,
emptyMessage: "No data!",
columns: [
{ name: "Added", title: "At", cssClass: "left", dateFormat: "time", dateLocale: "en-GB" },
{ name: "Temp", title: "Temp", cssClass: "left", suffix: "Β°C", nullValue: "???" },
{ name: "Pressure", title: "Pressure", cssClass: "left", suffix: " hPa", nullValue: "???" },
{ name: "Humidity", title: "Humidity", cssClass: "left", suffix: " %" },
]
}
},
*/
{
module: 'newsfeed',
position: 'bottom_bar',
config: {
feeds: [
{
title: "BBC World",
url: "http://feeds.bbci.co.uk/news/world/rss.xml"
},
{
title: "Al Jazeera",
url: "https://www.aljazeera.com/xml/rss/all.xml"
},
{
title: "Sky news",
url: "http://feeds.skynews.com/feeds/rss/world.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
reloadInterval: 2 * 60 * 1000, // every 5 minutes
updateInterval: 2 * 5000
}
}
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {module.exports = config;}