MagicMirror Forum

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

    SOLVED Switching MMM-pages with MMM-ModuleScheduler

    Troubleshooting
    1
    2
    762
    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.
    • R
      rabbit83ka last edited by rabbit83ka

      Hi,

      I’m trying to switch the pages with ModuleScheduler. But it doesn’t change the page, it just “leaves” the pages (no page highlighted in page indicator, no page shown). Any hints whats wrong with my config.js?

              {
              module: 'MMM-ModuleScheduler',
      		config: {
                  		notification_schedule: [
                     	{notification: 'PAGE_CHANGED', schedule: '0 7 * * 1-5', payload: {type: "notification", message: 0}},
                      	{notification: 'PAGE_CHANGED', schedule: '30 5 * * 1-5', payload: {type: "notification", messsage: 1}}
                 	 				]
              		}	
      	},
      

      Regards
      Jan

      1 Reply Last reply Reply Quote 0
      • R
        rabbit83ka last edited by

        The solution is that the payload has to be just the number of the page, so

        {notification: 'PAGE_CHANGED', schedule: '0 7 * * 1-5', payload: 1},
        

        does the trick. Thanks @edward-shen

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