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.

    Help with MMM-ModuleSchedule - not hiding

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    11 Posts 2 Posters 1.7k 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
      sdetweil @cheminge
      last edited by sdetweil

      @cheminge thats crontab type

      0 0 for hour minute means ONLY Then .not 1 min after midnight

      * * 1 1
      means anytime on 1/1

      we support crontab in compliments, and i recommend
      this site to get the 1st 5 tokens like needed here
      https://crontab-generator.org/

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        cheminge @sdetweil
        last edited by

        @sdetweil

        I have noticed something strange with this module.

        In my log I get this message :

        [2025-02-01 09:42:27.196] [LOG]   MMM-ModuleScheduler is scheduling MMM-EasyPix using "* * 1 1 *" and "59 23 31 1 *" with dim level undefined
        [2025-02-01 09:42:27.206] [WARN]  Month '1' is limited to '29' days.
        
        

        February has “29” days. Not January.

        So the month in my config file that I use from “https://crontab.guru/” doesn’t match what you would expect from this scheduler.

        In the documentation it say
        “Months 0-11 (Jan-Dec)”

        I have updated to use this as a key:

        Month
        1 = February
        2= March
        3 = April
        4 = May
        5 = June
        6 = July
        7 = August
        8 = September
        9 = October
        10 = November
        11 = December

        I noticed month “0” doesn’t work for January.

        Now that we are in February, it seems to be working after I set what I want to see in February as the month to be “1”

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

          @cheminge yes cron uses 0-11 for month

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            cheminge @sdetweil
            last edited by

            @sdetweil

            I’m just saying that’s not what crontab.guru says:

            crontab.png

            it makes it confusing.

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

              @cheminge yes, you are correct.
              The Gen I linked to also uses 1 for January

              Weird

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                cheminge @sdetweil
                last edited by

                I have updated my months to be words instead of numbers, and at first it was working, but now it is not hiding the second example module:

                1st Example

                module_schedule: {from: '* * * FEB *', to: '59 23 28 FEB *', dimLevel: '100'},
                

                For March I am using:

                2nd Example

                module_schedule: {from: '* * * MAR *', to: '59 23 30 MAR *', dimLevel: '100'}, 
                

                I would expect as of today (February 23rd, 2025) , the FEB would show, and it does. I don’t expect to see the MAR module, but it continues to show.

                For now I have it committed it out, but How can I get this to hide for now, and start showing March 1st?

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

                  @cheminge i think dimlevel 0 is hidden
                  100 is shown

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @cheminge also, what is the default behavior if the module(s) are not in the ‘current’ timeframe? or not in any schedule?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 1 / 2
                    • 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