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.

    Time countup or down wrong MMM-CoupleDays, MMM-CountUp.

    Scheduled Pinned Locked Moved Bug Hunt
    8 Posts 2 Posters 115 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.
    • plainbrokeP
      plainbroke
      last edited by

      MMM-CountUp 19 yrs 40 months 3 days
      MMM-CoupleDays 29yrs 31months 15days.
      Both are showing more months than there are in a year.
      Is there a fix for this by chance?

      Slow learner. But trying anyways.
      MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
      Running Trixie and the latest MM version.

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

        @plainbroke can you show the config you are using?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        plainbrokeP 1 Reply Last reply
        Reply Quote 0
        • plainbrokeP
          plainbroke @sdetweil
          last edited by

          @sdetweil

          Here is that section of the config.js:

                          {
                                  module: "MMM-CountUP",
                                  position: "middle_center",
                                  config: {
                                  header: "Time Since We Took Possession of this House",
                                          date: "2006-10-02",
                                          time: "00:00:01",
                                          showFullDate: true,
                                          showSeconds: false,
                                          showOnlyWeeks: false,
                                          textColor: "red"
                                      }
                          },
                          {
                                  module: "MMM-CoupleDays",
                                  position: "middle_center",
                                  config: {
                                          name1: "Stacey" ,
                                          name2: "Jeff Have Been Married", // If name2 is>
                                          date: "1996-09-28", // year-month-day
                                          transitionDuration: 5000, // in ms
                                          language: "en", // (filename without the .json >
                                          textColor: "yellow" // any valid CSS color valu>
                                  }
                          },
          
          

          Slow learner. But trying anyways.
          MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
          Running Trixie and the latest MM version.

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

            @plainbroke thx… I changed the Countup config like this

                  {
                    module: "MMM-CountUP",
                    position: "middle_center",
                    classes:"page1",
                    header: "Time Since We Took Possession of this House",
                    config: {
                            date: "2006-10-02",
                            time: "00:00:01",
                            showFullDate: true,
                            showSeconds: false,
                            showOnlyWeeks: false,
                            textColor: "red"
                     }
                  },
            

            just moved the header outside config.
            and got this (running on MM 2.37)
            Screenshot at 2026-09-27 07-03-40.png

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            plainbrokeP 1 Reply Last reply
            Reply Quote 0
            • plainbrokeP
              plainbroke @sdetweil
              last edited by

              @sdetweil
              Ok that works for MMM-CountUp.

              The MMM-CoupleDays is actually 29 years 11 months and 41 days.
              Is that possibly correct, with leap years in there?
              We keep laughing because there only a maximum of 31 days in a month…

              Slow learner. But trying anyways.
              MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
              Running Trixie and the latest MM version.

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

                @plainbroke
                online calc says
                It has been 29 years, 11 months, and 30 days since September 28, 1996 (or a total of 10,956 days). Tomorrow will mark exactly 30 years since that date.

                code has a bug

                    const totalDays = this.getDuration("days");
                    const yearMonthDays = years * 365 + months * 30; <----
                    const days = totalDays - yearMonthDays;
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                plainbrokeP 1 Reply Last reply
                Reply Quote 0
                • plainbrokeP
                  plainbroke @sdetweil
                  last edited by

                  @sdetweil
                  So I need to put in a thing to the module developer?
                  By the way thank you for all the help we thought we where getting senile.

                  Slow learner. But trying anyways.
                  MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
                  Running Trixie and the latest MM version.

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

                    @plainbroke yes, I think an issue on the module github repo is the right thing…
                    I’m old too… ask that same question every day!!

                    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