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.

    Set MagicMirror time of compliments for specific durations

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

      Hello everyone,

      My MMM-compliments.js code has to be modified so that certain compliments are only shown on particular days (Friday, Saturday, and Sunday) and at particular hours (around beer o’clock, which is 6 to 8 p.m.).
      The problem is that, despite my complete confidence that it is feasible, the module’s documentation makes no indication of how to proceed.

      Therefore, it would be very appreciated if someone could explain how to accomplish it or has already done it and is willing to share the code!

      Many thanks, and enjoy your day!

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @yonika
        last edited by

        @yonika the default compliments module provides that ability today.

        Using a new key type, a Cron expression

        From the documentation

        IMG_0490.png IMG_0491.png

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        Y 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @yonika
          last edited by sdetweil

          @yonika there is an MMM-Compliments module too.
          It does not provide support for cron entries.

          Which module were you asking about?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yonika @sdetweil
            last edited by

            @sdetweil said in Set MagicMirror time of compliments for specific durations:

            @yonika the default compliments module provides that ability today.

            Using a new key type, a Cron expression

            From the documentation

            IMG_0490.png IMG_0491.png

            Thanks! That Helps! Got My Solution! ;)

            1 Reply Last reply Reply Quote 0
            • S sdetweil has marked this topic as solved on
            • Y Offline
              yonika @sdetweil
              last edited by sdetweil

              That’s one good solution, It was really helpful, Now i know why, Saved my hell of time Time! Thanks

              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