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.

    My second Magic Mirror (without a mirror)

    Scheduled Pinned Locked Moved Show your Mirror
    18 Posts 7 Posters 14.6k Views 11 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
      cyberphox @MadsChaves
      last edited by

      @MadsChaves how are you changing pages? hidden button somewhere?

      Full time Dad, DJ and entertainer and lover of technology.

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MadsChaves @cyberphox
        last edited by

        @cyberphox - the pages just cycle through every 30 seconds, I am thinking of adding options for external intervention i.e. voice commands but am not there yet :)

        Be nice! Peace!

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          OldSunGuy @MadsChaves
          last edited by

          @MadsChaves Very nice. What non default modules are you using?

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MadsChaves @OldSunGuy
            last edited by

            @OldSunGuy I used: calendar_monthly (tweaked to also show previous and next month), MMM-BackgroundSlideshow, MMM-pages, MMM-Page-Indicator, MMM-GooglePhotos,worldclock…

            Be nice! Peace!

            1 Reply Last reply Reply Quote 0
            • L Offline
              Leobo
              last edited by

              Hi @MadsChaves,
              Nice job. Can you explain to me how did you calendar_monthly Next and Prev do that? Please

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mrdenmark @Leobo
                last edited by

                @Leobo said in My second Magic Mirror (without a mirror):

                Hi @MadsChaves,
                Nice job. Can you explain to me how did you calendar_monthly Next and Prev do that? Please

                I was going to ask the exact same question!

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MadsChaves @mrdenmark
                  last edited by

                  @mrdenmark & @Leobo - I am not a programmer but I can understand a little bit of code :) Anyways, I essentially replicated/tweaked the calendar_monthly module of Ashley M, Kirchner - big thanks (& apologies as well) to him for this module!!
                  This calendar_monthly is basically using the moment() function. So for the next month module I used the "moment().add(1,‘months’)"to re-define the var month variables and for the previous month I used the “moment().subtract(1,‘months’)”…and since I was going to show prev, currrent and next months at thesame time, I removed the days (grayed days) of the other months that did not belong. I also played with the font size that was pre-defined in the wrapper as well as tweaked the cssStyle. Hope this helps :)

                  Be nice! Peace!

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    Leobo
                    last edited by

                    Thank you for your answer @MadsChaves . I do not understand about programs and code. I like this calendar_monthly module and I won’t show next month. Can you post your next month code here? Please.

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MadsChaves @Leobo
                      last edited by

                      @Leobo Oh, if you just want the monthly calendar, checkout the calendar_monthly module by KirAsh4 under the Utility / IOT / 3rd Party / Integration modules. The same one I used.

                      Be nice! Peace!

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        Leobo
                        last edited by

                        Sorry for asking so many, I want two calendars, one with this month and second with next month. I do not know in which place I have to integrate the moment.add (1, ‘months’). Sorry vor my bad English (translator).

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MadsChaves
                          last edited by

                          So sorry for the late reply…here’s an example of what I changed…
                          // Override dom generator
                          getDom: function() {

                          	if ((moment() > this.midnight) || (!this.loaded)) {
                          
                          		var month = moment().add(1,'months');
                          		var year = moment().year();
                          		var monthName = moment().add(1,'months').format("MMMM");
                          		var monthLength = moment().add(1,'months').daysInMonth();
                          
                          		// Find first day of the month, LOCALE aware
                          		var startingDay = moment().add(1,'months').date(1).weekday();
                          

                          Be nice! Peace!

                          1 Reply Last reply Reply Quote 1
                          • L Offline
                            Leobo
                            last edited by

                            Thank you very mutch @MadsChaves . You are the best. That works really well. Thank you for your answer.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              maxs
                              last edited by

                              Hi, I would like to have also 3 calendars like @MadsChaves have, but it only shows me 1 calendar, and over the hole width from the screen, so too big. Can you help me a little bit more? Greetings Maxs.

                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                Leobo
                                last edited by

                                You have to rename all three calendars module. For example one with "calendar_monthly Prev’ one ‘calendar_monthly’ and one ‘calendar_monthly Next’. In your config.js you must also enter the three calendars.

                                {
                                				module: 'calendar_monthly Prev',
                                				position: 'top_left',
                                				config: {
                                				}
                                			},
                                {
                                				module: 'calendar_monthly',
                                				position: 'top_left',
                                				config: {
                                				}
                                			},
                                {
                                				module: 'calendar_monthly Next',
                                				position: 'top_left',
                                				config: {
                                										}
                                			}
                                
                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  maxs
                                  last edited by maxs

                                  Thanks gone a give it a try.
                                  Update, now it works…

                                  1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    Leobo
                                    last edited by

                                    Nice.:thumbs_up_light_skin_tone:

                                    1 Reply Last reply Reply Quote 0
                                    • earnestrichardsE Offline
                                      earnestrichards
                                      last edited by

                                      Very nice mirror. I really like the framing as well as your content choices.

                                      I’m working on copying some of what you did… I successfully installed the before-current-next month calendars. I figured out how to copy what you did with the ‘extra’ days on the beginning and end of each month. What I can’t seem to get going is how to have only the current month’s current day highlighted.

                                      Pointer? Please.

                                      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