MagicMirror Forum

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

    MMM-ModuleScheduler for Monitor control

    Troubleshooting
    2
    16
    375
    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.
    • T
      tootiemac3 last edited by sdetweil

      Hi All, I am VERY new to all this so apologies.

      I am having trouble using the scheduler to control my monitor.
      I installed both MMM-Modulescheduler and MMM-RemoteControl
      When i try to place the module in my config.js it causes the Mirror to fail to load.
      my config is an identical copy of the example given and yet it still falls over.
      any help is greatly appreciated.

      {
              module: 'MMM-ModuleScheduler',
              config: {
                  notification_schedule: [
                      // TURN THE MONITOR/SCREEN ON AT 07:30 EVERY DAY
                      {notification: 'REMOTE_ACTION', schedule: '30 7 * * *', payload: {action: "MONITORON"}},
                      // TURN THE MONITOR/SCREEN OFF AT 22:30 EVERY DAY
                      {notification: 'REMOTE_ACTION', schedule: '30 22 * * *', payload: {action: "MONITOROFF"}},
                      // RESTART THE MAGICMIRROR PROCESS AT 2am EVERY SUNDAY
                      {notification: 'REMOTE_ACTION', schedule: '0 2 * * SUN', payload: {action: "RESTART"}}
                  ]
              }
          },
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @tootiemac3 last edited by

        @tootiemac3 what is the error displayed

        Sam

        Create a working config
        How to add modules

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

          @sdetweil it tell me it could not validate the config file.
          then this is below that "SyntaxError: Invalid destructuring assignment target
          "

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

            @tootiemac3 what line number is shown? I don’t see an error like that. show rest of module section in config. use code block pleasr

            Sam

            Create a working config
            How to add modules

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

              @sdetweil im not 100% sure what you mean

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

                @sdetweil its showing line 201 has the error.

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

                  @tootiemac3 ok, I can’t see line 201. show the config. paste the text, select it, and use the code block marker ‘</>’ button to mark the selected text

                  Sam

                  Create a working config
                  How to add modules

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

                    Line 201 according to the config file is the line
                    module: “MMM-ModuleScheduler”,

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

                      @tootiemac3
                      ok, that means the real error occurred BEFORE line 201, and was detected there. so. show us before

                      Sam

                      Create a working config
                      How to add modules

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

                        above that is the working news feed module.

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 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