• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 395 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 Nov 28, 2024, 12:22 PM

    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 Nov 28, 2024, 12:30 PM Reply Quote 0
    • S Online
      sdetweil @yonika
      last edited by Nov 28, 2024, 12:30 PM

      @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 Nov 29, 2024, 4:46 AM Reply Quote 0
      • S Online
        sdetweil @yonika
        last edited by sdetweil Nov 28, 2024, 4:56 PM Nov 28, 2024, 4:56 PM

        @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 Nov 29, 2024, 4:46 AM

          @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 Nov 29, 2024, 1:24 PM
          • Y Offline
            yonika @sdetweil
            last edited by sdetweil Dec 9, 2024, 12:51 PM Dec 9, 2024, 6:00 AM

            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
            1 / 1
            • First post
              4/5
              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