Dear @Veldrovive,
I have reduced my config file to very few modules but my MagicMirror keeps restarting every few seconds. That does not happen, if I stick with the “old” style of configuring Pages within MagicMirror. It seems, I make a general mistake with the way, the second Page setup should be done.
Would you mind having a look, why this slimmed down version does not work?
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: '0.0.0.0', // Address to listen on, can be:
// - 'localhost', '127.0.0.1', '::1' to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - '', '0.0.0.0', '::' to listen on any interface
// Default, when address config is left out, is 'localhost'
port: 8080,
ipWhitelist: [
'127.0.0.1',
'::ffff:127.0.0.1',
'::1',
['192.0.0.60', '192.0.0.189']
], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ['127.0.0.1', '::ffff:127.0.0.1', '::1', '::ffff:192.168.1.5'],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ['127.0.0.1', '::ffff:127.0.0.1', '::1', '::ffff:192.168.3.0/28'],
language: 'de',
timeFormat: 24,
units: 'metric',
customCss: 'css/custom.css',
modules: [
{
module: 'MMM-Page-Selector',
position: 'top_bar',
config: {
defaultPage: 'tag', // Tag
displayTitle: true, // disable in production mode
persistentPages: true,
selectPageNotif: ['SELECT_PAGE'],
incrementPageNotif: ['PAGE_UP'],
decrementPageNotif: ['PAGE_DOWN']
}
},
{
module: 'alert',
disabled: false,
config: {}
},
{
module: 'MMM-WatchDog',
disabled: false,
config: {
// See 'Configuration options' for more information.
}
},
{
module: 'MMM-Remote-Control',
disabled: false
},
{
module: 'MMM-Remote-Control-Repository',
disabled: false
},
{
module: 'updatenotification',
disabled: false
},
{
module: 'MMM-Snow',
disabled: true, // final: set to false, hide in Remote Control & Save
config: {
// See 'Configuration options' for more information.
flakeCount: 111,
theme: 'winter' // Possible values are winter, love, and water
}
},
{
module: 'MMM-Love',
disabled: true, // final: set to false, hide in Remote Control & Save
config: {
// See 'Configuration options' for more information.
flakeCount: 111,
theme: 'love' // Possible values are winter, love, and water
}
},
{
module: 'MMM-ip',
disabled: false,
config: {}
},
{
module: 'clock',
disabled: false,
config: {
clockBold: false,
displaySeconds: false,
dateFormat: 'dddd, ll'
}
},
{
module: 'MMM-TextClock',
disabled: false,
config: {
layout: 'Field', // options are 'Line' and 'Field'
its24: 'ES IST', // text before hour
to24: ' ', // text between hour and minute
after24: 'UHR', // text after minute
marked: 'color: white; font-weight: 400;', // css code to mark current time in Field layout
offset: 2 // standard: 2
}
},
{
module: 'newsfeed',
disabled: false,
config: {
// The config property is optional.
// If no config is set, an example calendar is shown.
// See 'Configuration options' for more information.
feeds: [
{
title: 'Tagesschau',
url: 'http://www.tagesschau.de/xml/rss2'
}
]
}
}
], // top_bar, top_left, top_center, top_right, upper_third, middle_center, lower_third, bottom_left, bottom_center, bottom_right, bottom_bar, fullscreen_above, and fullscreen_below
pages: {
tag: {
'clock': 'bottom_left',
'newsfeed': 'bottom_bar'
},
abend: {
'clock': 'bottom_left',
'newsfeed': 'bottom_bar'
},
nacht: {
'MMM-TextClock': 'bottom_center' // Bottom Center nur für MMM-TextClock verwenden. CSS verändert!!!
},
wochenende: {
'clock': 'bottom_left',
'newsfeed': 'bottom_bar'
},
annika: {
'clock': 'bottom_left',
'newsfeed': 'bottom_bar'
},
phillip: {
'updatenotification': 'top_bar',
'clock': 'bottom_left',
'newsfeed': 'bottom_bar'
},
kinder: {
'clock': 'bottom_left',
'newsfeed': 'bottom_left'
},
system: {
'updatenotification': 'bottom_bar',
'MMM-ip': 'bottom_right',
'MMM-Remote-Control': 'bottom_right' // uncomment the following line to show the URL of the remote control on the mirror
},
test: {
'updatenotification': 'bottom_bar'
}
},
exclusions: {
}
};
/** ************* DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {
module.exports = config;
}