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

Made a birthday module

Scheduled Pinned Locked Moved Entertainment
39 Posts 4 Posters 3.6k 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.
  • C Offline
    cgillinger @sdetweil
    last edited by cgillinger Jan 24, 2025, 8:53 AM Jan 24, 2025, 8:53 AM

    @sdetweil said in Made a birthday module:

    @cgillinger the other thing you can do is add support for the

    suspend(){}
    and resume{}

    methods in your modulename.js

    suspend means being hidden

    resume means being shown

    Done, but haven’t tried it with MMM-Pages yet, a bit to busy at work to install and try it that way. But its in the repo now.

    P 1 Reply Last reply Jan 24, 2025, 11:57 PM Reply Quote 0
    • P Offline
      plainbroke @cgillinger
      last edited by Jan 24, 2025, 11:57 PM

      @cgillinger
      Works on the fireworks, but not on the MESSAGE part, It stays on the screen.
      The fireworks came and went with the page it was supposed to.

      Slow learner. But trying anyways.

      C 1 Reply Last reply Jan 25, 2025, 9:54 AM Reply Quote 0
      • C Offline
        cgillinger @plainbroke
        last edited by Jan 25, 2025, 9:54 AM

        @plainbroke said in Made a birthday module:

        @cgillinger
        Works on the fireworks, but not on the MESSAGE part, It stays on the screen.
        The fireworks came and went with the page it was supposed to.

        This annoys the hell out of me, if I get the time, I’ll try to set up a MM with MMM-Pages to test it here.

        But to be clear:

        The fireworks (and confetti?) works
        But the message a) doesn’t show or b) shows, but does not get removed when MMM-Pages initiate page change?

        S 1 Reply Last reply Jan 25, 2025, 11:08 AM Reply Quote 0
        • S Offline
          sdetweil @cgillinger
          last edited by Jan 25, 2025, 11:08 AM

          @cgillinger b

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Jan 25, 2025, 2:43 PM Reply Quote 0
          • C Offline
            cgillinger @sdetweil
            last edited by Jan 25, 2025, 2:43 PM

            @sdetweil said in Made a birthday module:

            @cgillinger b

            Huh?

            S 1 Reply Last reply Jan 25, 2025, 4:16 PM Reply Quote 0
            • S Offline
              sdetweil @cgillinger
              last edited by Jan 25, 2025, 4:16 PM

              @cgillinger you said a or b

              I responded he said b

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              P 1 Reply Last reply Jan 25, 2025, 5:09 PM Reply Quote 1
              • P Offline
                plainbroke @sdetweil
                last edited by Jan 25, 2025, 5:09 PM

                @cgillinger
                As Sam said b it stays on the screen always. Just the message though.
                Sorry it annoys you so.
                Take your time I am not in a hurry, never am.
                Just thought I would let you know. I am sure others are watching this to add to their pages too…

                Slow learner. But trying anyways.

                1 Reply Last reply Reply Quote 1
                • X Offline
                  xIExodusIx
                  last edited by Jan 28, 2025, 9:51 AM

                  Unfortunately I have a few problems with your MMM-Birthday module. When I start the MM and there is a birthday, it is immediately displayed in the
                  middle (middle_center) on all pages without taking the position from config.js into account. The display is not yet dimmed on all pages.
                  Confetti is displayed in the correct position (lower_third) on the specified page as specified in the config.js, fireworks only sometimes but the
                  icons are missing!
                  On the 2nd and all subsequent runs of the pages, the birthday is also displayed in the correct position (lower_third) but without a name (undefined!)
                  with confetti (always) and fireworks (only sometimes) but still without icons. The display now will be dimmed on all pages.
                  If I start the MM and there is no birthday, everything is fine, nothing is displayed.
                  If a birthday is coming up from 00:00, it will be displayed as described above in the correct position (lower_third) with confetti but without a
                  name (undefiend!), without fireworks and without icons. The display is darkened on all pages so that it is barely legible.

                  See Pictures!

                  Hardware:
                  Raspberry Pi4 4GB RAM RaspiOS: Bookworm
                  Software:
                  MM 2.30 with MMM-Pages
                  MM2.30_Birthday-1_First_Run.jpg MM2.30_Birthday-2_All_other_Runs.jpg MM2.30_Birthday-3.jpg

                  C 1 Reply Last reply Jan 28, 2025, 2:49 PM Reply Quote 0
                  • C Offline
                    cgillinger @xIExodusIx
                    last edited by Jan 28, 2025, 2:49 PM

                    @xIExodusIx Yes, there is an issue with it working alongside MMM-Pages. It seems that the methods I use to make it display interfere with MMM-Pages. MMM-Birthday doesn’t play well with others and tends to do its own thing, which doesn’t work with MMM-Pages. I’m working on a solution, but I haven’t had much time to spare lately.

                    S 1 Reply Last reply Jan 28, 2025, 7:06 PM Reply Quote 0
                    • S Offline
                      sdetweil @cgillinger
                      last edited by Jan 28, 2025, 7:06 PM

                      @cgillinger

                      see the

                      suspend() and resume() functions you can add to be notified when being hidden (suspend) and shown (resume)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      P 1 Reply Last reply Jan 28, 2025, 10:59 PM Reply Quote 2
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        18/39
                        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