• 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.

MMM-CountUP (COVID19 example)

Scheduled Pinned Locked Moved Utilities
29 Posts 5 Posters 6.5k Views 5 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 Away
    sdetweil @Bromley47
    last edited by sdetweil May 8, 2020, 12:36 PM Apr 18, 2020, 11:45 AM

    @Bromley47 ok, so the problem is in default (showFullDate = false) he truncates the year/month/week count,
    but does NOT adjust number of days… my original guess was wrong, so the date is the one u want to count from.

    I have submitted a pull request to fix this…

    ||
    || bibaldo’s repo has integrated the fix i provided, I am closing my repo
    || May 8, 2020
    ||

    when he merges my fix, you can git pull in the .original folder
    rename them back and delete mine

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    B S 2 Replies Last reply Apr 18, 2020, 2:32 PM Reply Quote 1
    • B Offline
      Bromley47 @sdetweil
      last edited by Apr 18, 2020, 2:32 PM

      @sdetweil Fantastic Sam - many thanks - managed to edit with the help of my son who’s well into JavaScript (says it pays the mortgage!) and now shows the correct number of days etc. The remaining problem I have is that to restart the MM when I have done any mods. (such as this one) I have to power off the Raspberry O, which is a bit of a faff. I have tried to use the instructions on git hub by MichMich (Auto starting Magic Mirror) but when I run pm2 restart mm it says Process or Namespace mm not found.
      I can only think the Magic Mirror is called by another name but how do I find that out?

      pi@raspberrypi:~ $ pm2 restart mm
      Use --update-env to update environment variables
      [PM2][ERROR] Process or Namespace mm not found

      S 2 Replies Last reply Apr 18, 2020, 2:43 PM Reply Quote 0
      • S Away
        sdetweil @Bromley47
        last edited by Apr 18, 2020, 2:43 PM

        @Bromley47 pm2 status will show the names… if u used my installation script it is call MagicMirror
        you can also use the number pm2 restart 0

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Apr 18, 2020, 2:45 PM Reply Quote 0
        • S Away
          sdetweil @Bromley47
          last edited by Apr 18, 2020, 2:44 PM

          @Bromley47 so you didn’t use my repo with the fix?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Apr 18, 2020, 2:47 PM Reply Quote 0
          • B Offline
            Bromley47 @sdetweil
            last edited by Apr 18, 2020, 2:45 PM

            @sdetweil id │ name │ mode │ ↺ │ status │ cpu │ memory │
            ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
            │ 0 │ mmstart │ fork │ 0 │ online │ 0% │ 2.4mb │
            └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴───

            S 1 Reply Last reply Apr 18, 2020, 2:50 PM Reply Quote 0
            • B Offline
              Bromley47 @sdetweil
              last edited by Apr 18, 2020, 2:47 PM

              @sdetweil yes used yours and reverted back to 3 for the month and now showing correct number of days

              1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil @Bromley47
                last edited by Apr 18, 2020, 2:50 PM

                @Bromley47 so pm2 restart mmstart

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Apr 18, 2020, 3:01 PM Reply Quote 0
                • B Offline
                  Bromley47 @sdetweil
                  last edited by Apr 18, 2020, 3:01 PM

                  @sdetweil that worked thanks again for your valued assistance I will get the hang of this one day (I’ve got plenty of time!)

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sonicgoose @sdetweil
                    last edited by May 5, 2020, 3:10 PM

                    @sdetweil I’m using your fixed repo on two installs of MagicMirror, both completely up to date. One shows the correct number of days, hours, minutes and seconds, and the second does not. I copied my config from the working one to the not working one to ensure they are the same, and even deleted and reinstalled your repo on the not working one just now. I’m really confused by this.

                    Screen Shot 2020-05-05 at 11.05.37 AM.png

                    Not working on left; working on right. Date I’m basing this on is 2020-03-17. Any ideas what could be wrong?

                    S 1 Reply Last reply May 5, 2020, 3:27 PM Reply Quote 0
                    • S Away
                      sdetweil @sonicgoose
                      last edited by sdetweil Mar 17, 2021, 10:17 PM May 5, 2020, 3:27 PM

                      @sonicgoose I think on the left is the original repo, not my updated version

                      Please do git remote -v from the module folder to see the source repo

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 2 Replies Last reply May 5, 2020, 5:33 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • 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