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.

    MMM-Wallpaper notification and MMM-ModuleScheduler

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 271 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.
    • S Offline
      sankum
      last edited by

      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.

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sankum
        last edited by

        Thanks Sam.
        I had it as schedules but it has to be notification_schedule. This works now.

        1 Reply Last reply Reply Quote 1
        • S Offline
          sdetweil @sankum
          last edited by

          @sankum the payload should just be the string of the source name

          Dont need module name etc

          EVERY Notification goes to all modules

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sankum
            last edited by

            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?

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

              @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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sankum
                last edited by

                Thanks Sam.
                I had it as schedules but it has to be notification_schedule. This works now.

                1 Reply Last reply Reply Quote 1
                • S sdetweil has marked this topic as solved on
                • 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