MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MMM-ModuleScheduler stops working if MMM-PIR is active



  • Hi everyone,

    I need some help here please 🙂

    I’m on latest master and everything works fine. BUT when I active MMM-PIR, one of my MMM-ModuleScheduler schedules stops working. When I comment out MMM-PIR from the config everything works as expected.

    Any Idea what I could be doing wrong?

    Thanks!!

    Here is my config:

    /* 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: "", // 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: [],  // Set [] to allow all IP addresses
    	             //["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:10.10.10.51"],                                          // 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: "en",
    	timeFormat: 24,
    	units: "metric",
    	electronOptions: {
    		fullscreen: true,
    	  },
    
    	modules: [
    		{
    			module: "alert"
    		},
    		{
          module: 'MMM-Remote-Control'
        },
    		{
    			module: 'MMM-ModuleScheduler',
    			config: {
    					notification_schedule: [
    					// RESTART THE MAGICMIRROR PROCESS AT 2am EVERY day
    					{notification: 'REMOTE_ACTION', schedule: '0 2 * * *', payload: {action: "RESTART"}},
    					],
    					// SHOW MODULES WITH THE CLASS 'go2work_scheduler' AT 06:00 AND HIDE AT 10:00 EVERY DAY
    					global_schedule: {from: '0 6 * * *', to: '0 10 * * *', groupClass: 'go2work_scheduler' }
    				  },
        },
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    		  module: 'worldclock',
    		  position: 'top_left', // This can be any of the regions, best results in top_left or top_right regions
    		  config: {
    		    timeFormat: 'HH:mm', //defined in moment.js format()
    		    style: 'top', //predefined 4 styles; 'top', 'left','right','bottom'
    		    clocks: [
    		      {
    		        title: "Bali", // Too long title could cause ugly text align.
    		        timezone: "Asia/Makassar", //When omitted, Localtime will be displayed. It might be not your purporse, I bet.
    		        flag: "id",
    		      },
    		    	]
    		  	}
    		},
    		{
    			module: "calendar",
    			header: "Termine",
    			position: "top_left",
    			config: {
    			  displaySymbol: false,
    				calendars: [
    					{
    						url: '',
    						auth: {
    						    user: '',
    						    pass: '',
    						    method: 'basic'
    							  }
    					},
    					{
    						url: '',
    						auth: {
    								user: '',
    								pass: ''
    								method: 'basic'
    								}
    					},
    				],
    			}
    		},
    		{
    			module: "calendar",
    			header: "",
    			position: "top_left",
    			config: {
    			  maximumEntries: "3",
    				displaySymbol: false,
    				calendars: [
    					{
    						url: '',
    						symbol: 'trash',
    						auth: {
    								user: '',
    								pass: '',
    								method: 'basic'
    								}
    					},
    				],
    			}
    		},
    		{
    			module: "currentweather",
    			position: "top_right",
    			config: {
    				location: "",
    				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: ""
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "",
    				locationID: "",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: ""
    			}
    		},
    		{
    			module: "newsfeed",
    			position: "bottom_bar",
    			config: {
    				feeds: [
    					{
    						title: "Der Postillion",
    						url: "http://feeds.feedburner.com/blogspot/rkEL?format=xml"
    					},
    					{
    						title: "Tagesschau",
    						url: "http://www.tagesschau.de/xml/rss2"
    					}
    				],
    				showSourceTitle: true,
    				showPublishDate: true
    			}
    		},
    		{
        module: 'MMM-PIR',
        position: 'bottom_center',
        config: {
            sensorPin: 22,
            delay: 30000,
            turnOffDisplay: true,
            showCountdown: false
        		}
    		},
    		{
    			module: 'MMM-DWD-WarnWeather',
    			position: 'top_right',
    			config: {
    				region: '',
    				changeColor: true,
    				minutes: false,
    				displayRegionName: true,
    				interval: 10 * 60 * 1000, // every 10 minutes
    				longversion: true,
    				loadingText: 'Warnungen werden geladen...',
    				noWarningText: 'Keine Warnungen'
    				}
    		},
        {
    	    module: 'MMM-DWD-WarnWeather',
    	    position: 'top_right',
    			classes: 'test_scheduler',
    	    config: {
    				region: '',
            changeColor: true,
            minutes: false,
            displayRegionName: true,
          	interval: 10 * 60 * 1000, // every 10 minutes
          	loadingText: 'Warnungen werden geladen...',
          	noWarningText: 'Keine Warnungen'
          	}
        },
    		{
      		module: 'MMM-GoogleMapsTraffic',
       		position: 'top_left',
    			classes: 'scheduler',
        	config: {
    				module_schedule: {from: '0 6 * * *', to: '0 10 * * *' },
    	  		key: '',
    	  		lat: ,
    	  		lng: ,
    	  		height: '300px',
    	  		width: '300px'
    				}
        },
    		{
    			module: 'MMM-rfacts',
    			position: 'bottom_bar'
    		},
    		{ module: 'MMM-NiceThings',
    			position: 'lower_third'
    	  },
    		{
    	 		module: 'DailyXKCD',
     			position: 'lower_third',
     			config: {
    	 			invertColors: true,
    				randomComic: true,
    				titleFont: 'small',
    	 			title: true,
    	 			altText: false
     				}
    		},
    	]
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    
    

    Here is the pm2 out log:

    Starting MagicMirror: v2.3.1
    Loading config ...
    Loading module helpers ...
    No helper found for module: alert.
    Initializing new module helper ...
    Module helper loaded: MMM-Remote-Control
    Initializing new module helper ...
    Module helper loaded: MMM-ModuleScheduler
    Initializing new module helper ...
    Module helper loaded: updatenotification
    No helper found for module: clock.
    No helper found for module: worldclock.
    Initializing new module helper ...
    Module helper loaded: calendar
    No helper found for module: currentweather.
    No helper found for module: weatherforecast.
    Initializing new module helper ...
    Module helper loaded: newsfeed
    Initializing new module helper ...
    Module helper loaded: MMM-PIR
    Initializing new module helper ...
    Module helper loaded: MMM-DWD-WarnWeather
    No helper found for module: MMM-GoogleMapsTraffic.
    Initializing new module helper ...
    Module helper loaded: MMM-rfacts
    Initializing new module helper ...
    Module helper loaded: MMM-NiceThings
    Initializing new module helper ...
    Module helper loaded: DailyXKCD
    All module helpers loaded.
    Starting server on port 8080 ... 
    You're using a full whitelist configuration to allow for all IPs
    Server started ...
    Connecting socket for: MMM-Remote-Control
    Starting node helper for: MMM-Remote-Control
    Connecting socket for: MMM-ModuleScheduler
    Starting node helper for: MMM-ModuleScheduler
    Connecting socket for: updatenotification
    Connecting socket for: calendar
    Starting node helper for: calendar
    Connecting socket for: newsfeed
    Starting module: newsfeed
    Connecting socket for: MMM-PIR
    Starting module helper: MMM-PIR
    Connecting socket for: MMM-DWD-WarnWeather
    MMM-DWD-WarnWeather helper started...
    Connecting socket for: MMM-rfacts
    Starting module: MMM-rfacts
    Connecting socket for: MMM-NiceThings
    Starting node_helper for: MMM-NiceThings
    Connecting socket for: DailyXKCD
    Starting node helper: DailyXKCD
    Sockets connected & modules started ...
    Launching application.
    MMM-ModuleScheduler is removing all scheduled jobs
    MMM-ModuleScheduler received CREATE_NOTIFICATION_SCHEDULE
    MMM-ModuleScheduler is scheduling REMOTE_ACTION using "0 2 * * *
    MMM-ModuleScheduler has scheduled REMOTE_ACTION
    MMM-ModuleScheduler will next send REMOTE_ACTION at Mon Apr 23 2018 02:00:00 GMT+0200 (CEST)
    Create new calendar fetcher for url: - Interval: 300000
    Create new calendar fetcher for url: - Interval: 300000
    Create new calendar fetcher for url:  - Interval: 300000
    Create new news fetcher for url: http://feeds.feedburner.com/blogspot/rkEL?format=xml - Interval: 300000
    Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
    I made this website for you.
    Notification: GET_COMIC Payload: [object Object]
    
    


  • Hello again!

    Does anyone have any idea where I could look or what I could do? 🙂

    Yesterday I even setup everything from scratch (same config though) and had the same issue again…

    Any hint/help is highly appreiciated!

    Cheers
    Flo



  • Hi @flo269 - are you able to review the console in the browser and see if there are any errors there?



  • Don’t forget to check the error logs and dmesg.