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.

    We card for alcohol

    Scheduled Pinned Locked Moved General Discussion
    13 Posts 3 Posters 4.9k Views 3 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.
    • J Offline
      jonathancole85
      last edited by

      Like the title says, I’m building a mirror for a friend’s bar. Going to display mmm-clock, mmm-compliments for the daily specials, mmm-news for sports. But we’d like to find a way to display must be born on or before this date… And have it display the current days date but the year be 21 years prior, example today would show 27, January 1998. Any suggestions?

      justjim1220J 1 Reply Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @jonathancole85
        last edited by justjim1220

        @jonathancole85
        Is this what you are looking for?
        0_1548628788782_Screenshot (15).png

        https://github.com/justjim1220/MMM-BornBeforeDate

        Let me know if there is anything you want changed… :smiling_face_with_sunglasses:

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        J 1 Reply Last reply Reply Quote 4
        • J Offline
          jonathancole85 @justjim1220
          last edited by

          @justjim1220 yeah that’s pretty much along the lines of what we’re aiming for. We put the mirror up yesterday, looks pretty good. Still trying to figure out a better, easier way to update it daily. Not all the bartenders are exactly the brightest bulbs in the box. For now we’re using remote control to change the compliments as we’re using that to show daily specials.!

          justjim1220J 1 Reply Last reply Reply Quote 0
          • J Offline
            jonathancole85
            last edited by jonathancole85

            link text

            justjim1220J 2 Replies Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @jonathancole85
              last edited by

              @jonathancole85

              Ok, the one I posted above will change the date daily.
              It will show today’s date minus 21 years

              Get it here: https://github.com/justjim1220/MMM-BornBeforeDate

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              1 Reply Last reply Reply Quote 0
              • justjim1220J Offline
                justjim1220 Module Developer @jonathancole85
                last edited by

                @jonathancole85

                Updated… Current code will get this:
                0_1549217156325_Screenshot (38).png

                the date, IE: Feb 03, will change daily on it’s own. The year, will change yearly on it’s own.

                the message above the date, can be changed to say whatever you like.

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                1 Reply Last reply Reply Quote 0
                • justjim1220J Offline
                  justjim1220 Module Developer @jonathancole85
                  last edited by

                  @jonathancole85

                  I fixed the message so you can change it to however you want it worded.
                  Please do a git pull && npm i to update
                  Thanks!

                  "Life's Too Short To Dance With Ugly People"
                  Jim Hallock - 1995

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jonathancole85
                    last edited by

                    link text
                    Thanks looks great!

                    justjim1220J 1 Reply Last reply Reply Quote 1
                    • justjim1220J Offline
                      justjim1220 Module Developer @jonathancole85
                      last edited by

                      @jonathancole85

                      How does this look?
                      0_1554850198663_Screenshot (43).png

                      "Life's Too Short To Dance With Ugly People"
                      Jim Hallock - 1995

                      J 1 Reply Last reply Reply Quote 2
                      • justjim1220J Offline
                        justjim1220 Module Developer
                        last edited by

                        https://github.com/justjim1220/MMM-DailySpecials

                        "Life's Too Short To Dance With Ugly People"
                        Jim Hallock - 1995

                        Mykle1M 1 Reply Last reply Reply Quote 1
                        • 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