MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-ModuleScheduler for Monitor control

    Troubleshooting
    2
    16
    377
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sdetweil @tootiemac3 last edited by

      @tootiemac3 can u show the config please. change 1 or 2 char in any API key to something to make it garbage

      Sam

      Create a working config
      How to add modules

      T 1 Reply Last reply Reply Quote 0
      • T
        tootiemac3 @sdetweil last edited by sdetweil

        @sdetweil

        {
        			module: "newsfeed",
        			position: "bottom_bar",
        			config: {
        				feeds: [
        					{
        						title: "BBC UK",
        						url: "https://feeds.bbci.co.uk/news/rss.xml?edition=uk"
        					}
        				],
        				showSourceTitle: true,
        				 showPublishDate: true,
        				broadcastNewsFeeds: true, 
        				broadcastNewsUpdates: true
        			}
        		},
        	]  // < --- this?
        },  // < --- this?
        {
                module: "MMM-ModuleScheduler",
                config: {
                    notification_schedule: [
                        // TURN THE MONITOR/SCREEN ON AT 07:30 EVERY DAY
                        {notification: 'REMOTE_ACTION', schedule: '20 15 * * *', payload: {action: "MONITORON"}},
                        // TURN THE MONITOR/SCREEN OFF AT 22:30 EVERY  DAY
                        {notification: 'REMOTE_ACTION', schedule: '25 15 * * *', payload: {action: "MONITOROFF"}},
                        // RESTART THE MAGICMIRROR PROCESS AT 2am EVERY SUNDAY
                        {notification: 'REMOTE_ACTION', schedule: '0 2 * * SUN', payload: {action: "RESTART"}}
                    ]
                }
            };   //< --- ';' this
        
        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @tootiemac3 last edited by

          @tootiemac3 said in MMM-ModuleScheduler for Monitor control:

          ] //< — what is this?
          }, // < - what is this?
          {
          module: “MMM-ModuleScheduler”

          ]; // < – what is ‘;’ this?

          Sam

          Create a working config
          How to add modules

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @sdetweil last edited by

            @tootiemac3

            i would guess that you pasted the ModuleScheduler module block in the wrong place, after the end for the modules ;[] array closure

            Sam

            Create a working config
            How to add modules

            T 1 Reply Last reply Reply Quote 0
            • T
              tootiemac3 @sdetweil last edited by tootiemac3

              @sdetweil thank you so much for this. i think this is what i did then messed up the rest of the coding when i tried to move it around.
              the advice you gave above about looking at the ] and } was great! i actually managed to get the mirror to boot with scheduler coded and i am now just testing if it will actually work.
              Fingers crossed!

              1 Reply Last reply Reply Quote 0
              • S
                sdetweil last edited by

                temporary fix for npm config:check

                edit ~/MagicMirror/js/check_config.js
                

                change line 57 to look like this

                		const messages = linter.verify(data);
                

                change line 66 to look like this

                	//		throw new Error("Wrong syntax in config file!");
                

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy