A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Switching MMM-pages with MMM-ModuleScheduler
-
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 -
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
-
@rabbit83ka Thank you for your post, I was struggling to figure this out. Still relevant after five years!
-
@davidboisducafe Thanks. And also still running on my mirror.