• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Switching MMM-pages with MMM-ModuleScheduler

Scheduled Pinned Locked Moved Solved Troubleshooting
4 Posts 2 Posters 1.1k Views 2 Watching
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 Offline
    rabbit83ka
    last edited by rabbit83ka Dec 25, 2019, 8:24 AM Dec 24, 2019, 10:46 AM

    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 Offline
      rabbit83ka
      last edited by Dec 26, 2019, 8:25 AM

      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

      D 1 Reply Last reply Sep 26, 2024, 11:22 AM Reply Quote 0
      • D Offline
        davidboisducafe @rabbit83ka
        last edited by Sep 26, 2024, 11:22 AM

        @rabbit83ka Thank you for your post, I was struggling to figure this out. Still relevant after five years!

        R 1 Reply Last reply Sep 29, 2024, 9:00 AM Reply Quote 0
        • R Offline
          rabbit83ka @davidboisducafe
          last edited by Sep 29, 2024, 9:00 AM

          @davidboisducafe Thanks. And also still running on my mirror.

          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy