Read the statement by Michael Teeuw here.
MMM-Wallpaper notification and MMM-ModuleScheduler
-
Hi,
I am trying to use MMM-ModuleScheduler to send notification to MMM-Wallpaper for changing the source in config. However, it does not seem to change. Is there something wrong with the Scheduler as set up below:
{
module: ‘MMM-ModuleScheduler’,
config: {
schedules: [
{
schedule: “0 17 * * *”,
notification: “UPDATE_WALLPAPER_CONFIG”,
payload: {
module: “MMM-Wallpaper”,
config: {
source: “chromecast”,
}
}
},
]
}
},
No errors in running and the wallpaper module works fine but the source does not change as per the scheduler? Any help will be appreciated. Thanks. -
Thanks Sam.
I had it as schedules but it has to be notification_schedule. This works now. -
@sankum the payload should just be the string of the source name
Dont need module name etc
EVERY Notification goes to all modules
-
Thanks. I changed the payload to as follows:
payload: “chromecast”Still the source in Wallpaper does not change?
Anything else I should I look for? -
@sankum I do not know
Have you tried the Chromecast source directly to ensure it works?
You could use
My MMM-CurlToNotification
https://github.com/sdetweil/MMM-CurlToNotification
as a test tool to make sure the notification works
You can also install MMM-ViewNotifications
to see if the notification is being sent -
Thanks Sam.
I had it as schedules but it has to be notification_schedule. This works now. -