@BigDanT
Hi,
you need another module to get it work: MMM-ProfileSwitcher
The idea is to define a “normal” class to which all modules do belong that will be displayed if motion is detected. The Slideshow will be in class “slideshow”.
The Screensave module is configured to not shutoff the monitor but change to the “slideshow” profile.
If SCREEN_ON is triggered the Screensave module will change back to the profile that was used before the screensave (in our case “nomal”).
I updated the config example to do the job (but i could not test it at the moment):
var config = {
address: '0.0.0.0',
electronOptions: {},
ipWhitelist: [],
modules: [
//Screen on & off timer{
{
module: 'MMM-ModuleScheduler',
config: {
notification_schedule: [
// TURN THE MONITOR/SCREEN ON AT 07:30 EVERY DAY
{
notification: 'SCREEN_ON',
schedule: '00 07 * * *',
payload: {
'forced': true
}
},
// TURN THE MONITOR/SCREEN OFF AT 22:30 EVERY DAY
{
notification: 'SCREEN_OFF',
schedule: '30 22 * * *',
payload: {
'forced': true
}
},
]
}
},
{
module: 'alert',
config: {},
classes: 'normal'
},
{
module: 'updatenotification',
position: 'top_bar',
config: {
ignoreModules: []
},
classes: 'normal'
},
{
module: 'clock',
position: 'top_left',
config: {},
classes: 'normal'
},
// top Right Calenar
{
module: 'calendar',
header: 'Family Calendar',
position: 'top_left',
config: {
calendars: [{
symbol: 'calendar-check',
url: 'https://calendar.google.com/calendar/ical/xxx.ics',
}
],
},
classes: 'normal'
},
// Weather Section
{
module: 'currentweather',
position: 'top_right',
config: {
location: 'UK',
locationID: 'xxx',
appid: 'xxx',
},
classes: 'normal'
}, {
module: 'weatherforecast',
position: 'top_right',
header: 'Weather Forecast',
config: {
location: 'false',
locationID: 'xxx',
appid: 'xxx',
},
classes: 'normal'
},
//Screencast
{
module: 'MMM-Screencast',
position: 'bottom_right',
config: {
position: 'center',
height: 600,
width: 800,
castName: 'MagicMirror',
},
classes: 'normal'
},
//PLex Slideshow
{
module: 'MMM-PlexSlideshow',
classes: 'Digital-Pictureframe',
position: 'fullscreen_above',
config: {
plex: {
hostname: '192.168.1.123',
port: 32400,
username: 'xxx@xxx.com',
password: 'password',
},
transitionImages: true,
},
classes: 'slideshow'
},
//MM Remote Control
{
module: 'MMM-Remote-Control',
header: '',
config: {
customCommand: {},
customMenu: 'custom_menu.json',
showModuleApiMenu: true,
apiKey: ''
}
},
//News Headlines
{
module: 'newsfeed',
position: 'top_bar',
header: '',
config: {
feeds: [
{
title: 'BBC News',
url: 'http://feeds.bbci.co.uk/news/rss.xml'
}
],
startTags: [],
endTags: [],
prohibitedWords: []
},
classes: 'normal'
},
{
module: 'MMM-GPIO-Notifications',
config: {
'4': {
gpio_state: 1,
gpio_debounce: 0,
delay: 30000,
notifications: [{
notification: 'SCREEN_ON',
payload: {
'forced': false
}
}, {}
]
}
}
},
{
module: 'MMM-Screen-Powersave-Notification',
config: {
delay: 60,
hideInsteadShutoff: true, //do not shutoff the screen
changeToProfile: "slideshow" //change to this profile instead of hiding the modules
}
},
{
module: 'MMM-ViewNotifications',
position: 'bottom_left',
header: 'Notifications',
config: {
timeout: 0,
format: '{time}: "{module}" sent "{notification}" with {payloadData}', // See below for configurable options
includeModules: ["MMM-GPIO-Notifications", "MMM-Screen-Powersave-Notification"]
},
classes: 'normal'
},
{
//https://github.com/tosti007/MMM-ProfileSwitcher
module: "MMM-ProfileSwitcher",
config: {
defaultClass: "normal",
ignoreModules: [
"MMM-ModuleScheduler",
"MMM-Remote-Control",
"MMM-GPIO-Notifications",
],
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== 'undefined') {
module.exports = config;
}