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.

    CustomText change contents with notification?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 9 Views 3 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
      snerk4000
      last edited by

      hey all. noob time.

      from their descriptions, using ModuleScheduler i should be able to change the contents of CustomText via a notification, but it’s a little unclear to me how this is supposed to work.

      what the docs seem to describe:

      {       module: "MMM-CustomText",
              position: "top_center",
              config: {
                      initialMessage: "change with notification?",
                      uniqueID: "ct_event",
                      animationspeed: 1000,
              },
      },
      {       module: "MMM-ModuleScheduler",
              config: {
                      notification_schedule: [ // sched = cron format
                              { notification: "CUSTOMTEXT_UPDATE", schedule: "33 * * * *", payload: { type: "notification", uniqueID: "ct_event", title: "test 1"}},
                              { notification: "CUSTOMTEXT_UPDATE", schedule: "34 * * * *", payload: { type: "notification", uniqueID: "ct_event", title: "test 2"}},
                      ]
      
              }
      },
      
      

      which is clearly not correct because it does nothing, but i’m stuck as to why. any help is appreciated!

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

        @snerk4000 and you have the schedule set to fire at 33 or 34 minutes after the hour

        Only once every hour for each, right?

        If you install MMM-Notifications you should able to see it.

        The payload looks ok. Doesn’t need the type: only the values the receiving module would accept/need

        You could try my MMM-CurlToNotification module to test the notification without schedule
        https://github.com/sdetweil/MMM-CurlToNotification

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil right now the 33/34 mins were just for testing, it’s aiming to be more like an MOTD / “don’t forget to put the trash out tonight” sort of thing

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

            @snerk4000 understood. I only mention that cause once an hour is hard to test

            Trying to give you other ways to test and verify

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 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