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.

    Standard calendar Determine text alignment

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    16 Posts 3 Posters 6.1k 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.
    • S Do not disturb
      sdetweil @Clubjack
      last edited by sdetweil

      @Clubjack so, how did you do 5 calendars?

      affects how to fix them
      left edge of 2 looks too far left compared to 1

      show the config.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • C Offline
        Clubjack
        last edited by

        Hey.
        Here is the config from the first an second calendar. the others are created same way

        {
                                module: "calendar",
                                header: "Test1",
                                position: "top_left",
                                config: {
                                        maximumEntries: "7",
                                        timeFormat: "absolute",
                                        urgency: 1,
                                        getRelative: 12,
                                        fullDayEventDateFormat: "DD.MMM",
                                        dateFormat: "DD.MMM HH:mm",
                                        calendars: [
                                                {
                                                        symbol: "toolbox",
                                                        url: "https://calendar.google.com/calendar/ical/.../basic.ics"   }
                                        ]
                                }                                                                                                                                                                                            },
                        {
                                module: "calendar",
                                header: "Test2",
                                position: "top_left",
                                config: {
                                        maximumEntries: "7",
                                        timeFormat: "absolute",
                                        urgency: 1,
                                        getRelative: 12,
                                        fullDayEventDateFormat: "DD.MMM",
                                        dateFormat: "DD.MMM HH:mm",
                                        calendars: [
                                                {
                                                        symbol: "calendar-check",
                                                        url: "https://calendar.google.com/calendar/ical/.../basic.ics"   }
                                        ]
                                }
                        },
        ......
        
        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Clubjack
          last edited by

          @Clubjack said in Standard calendar Determine text alignment:

                              position: "top_left",
          

          and the other positions?

          top_right?

          do you have any custom.css entries?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Clubjack @sdetweil
            last edited by Clubjack

            @sdetweil
            Oh yes.
            Calendar 4 an 5 are with the same settings, only Position is top_right.

            I have an entry in custom.css, but without the entry it is the same alignment.

             body {
            
             }
            
            .MMM-DarkSkyForecast .module-content {
                    width: 550px;
            }
            .calendar .module-content {
                    width: 550px;
            }
            
            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @Clubjack
              last edited by

              @Clubjack right, .module-content doesn’t mean anything

              U are lucky most modules don’t support multiple instances like that.

              My ‘guess’ is that there is some padding wrap in front of the tables for the calendar.

              I would use the developers window, elements tab, to explore the css tree for each.

              Note that because they are the same module name, one css entry will affect all of them

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Clubjack
                last edited by

                What Do You mean with “developers window, elements Tab”? Where can i find it?

                S 1 Reply Last reply Reply Quote 0
                • C Offline
                  Clubjack @sdetweil
                  last edited by

                  @sdetweil
                  Hey…
                  I tried something.
                  If one of the displayed event titles (calendar 3) gets longer, then the alignment fits.
                  This means that the calendar symbol and the event title align together.
                  It would be better if the calendar symbol were always aligned to the left and the event title follows it.

                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Clubjack
                    last edited by

                    @Clubjack said in Standard calendar Determine text alignment:

                    What Do You mean with “developers window,

                    the developers window is opened with

                    keyboard = ctrl-shift-i (its a toggle, once, its on… next time its off)
                    at startup time = npm start dev

                    note that if you use a windows machine for development and a pi to display, you can ALSO display on your windows box, by going to http://pi_address:port (the config.js has to allow any system to connect so whitelist=[], and address= “”)
                    and then use the dev window THERE

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    C 1 Reply Last reply Reply Quote 0
                    • C Offline
                      Clubjack @sdetweil
                      last edited by

                      @sdetweil
                      Hey…
                      In the meantime I managed to align everything. Via the custom.css.
                      Now I installed the MMM-GoogleTasks module according to the instructions and inserted my API ID.
                      Then I restarted the MM and since then I only have a black screen in a window called electron.
                      I hope I don’t have to set everything up now. My brain is starting to smoke.

                      S S 2 Replies Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Clubjack
                        last edited by

                        @Clubjack so, when a module dies in the modulename.js file, it will usually kill the screen display.

                        so you need to open the developers window (ctrl-shift-i) and look thru the console for any errors reported

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          Clubjack @sdetweil
                          last edited by

                          @sdetweil oh man. What would i do without You. 🙈
                          Found the error… Suddenly the node_helper was not found.
                          I get it back with an older Thread from You.
                          Thank You for all

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @Clubjack
                            last edited by

                            @Clubjack the next release has a fix so that the node_helper error should never happen anymore

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              Clubjack
                              last edited by

                              Unfortunately, a new little question. Is it possible to change the color of today’s events in the standard calendar module?

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @Clubjack
                                last edited by

                                @Clubjack looking at the code, it appears there is no distinction between today and any other day in handling the class for the event title . so no…

                                it only checks for the config option colored and titleClass

                                titleWrapper.innerHTML = this.titleTransform(event.title) + repeatingCountTitle;
                                
                                			var titleClass = this.titleClassForUrl(event.url);
                                
                                			if (!this.config.colored) {
                                				titleWrapper.className = "title bright " + titleClass;
                                			} else {
                                				titleWrapper.className = "title " + titleClass;
                                			}
                                
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 1
                                • S Offline
                                  shiring @Clubjack
                                  last edited by

                                  @clubjack

                                  Can you share the Solution? Thanks

                                  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